NexusFi: Find Your Edge


Home Menu

 





Sample Advanced Automated Strategy v1.0


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one dsraider with 36 posts (41 thanks)
    2. looks_two wgreenie with 21 posts (1 thanks)
    3. looks_3 gg80108 with 11 posts (6 thanks)
    4. looks_4 Ducman with 7 posts (0 thanks)
      Best Posters
    1. looks_one MXASJ with 3 thanks per post
    2. looks_two dsraider with 1.1 thanks per post
    3. looks_3 gg80108 with 0.5 thanks per post
    4. looks_4 eman with 0.4 thanks per post
    1. trending_up 48,966 views
    2. thumb_up 64 thanks given
    3. group 27 followers
    1. forum 117 posts
    2. attach_file 15 attachments




 
Search this Thread

Sample Advanced Automated Strategy v1.0

  #91 (permalink)
 aqawle 
Kansas City, Mo
 
Experience: Beginner
Platform: Ninjatrader
Broker: Zen-fire
Trading: ES, Oil
Posts: 19 since Mar 2010
Thanks Given: 1
Thanks Received: 11

Hi MXASJ, I've downloaded this autotrader of yours and it is very intresting. I don't know how it takes trades, but I was wondering if you'd be kind enough to modify it so it uses the TSsupertrend indicator that is on the download section. I'm not a programmer but I'd have done it myself. Thanks in advance.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
Futures True Range Report
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
Battlestations: Show us your trading desks!
26 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
  #92 (permalink)
 dssilver 
New York, NY
 
Experience: Advanced
Platform: NinjaTrader IB
Posts: 2 since Jul 2010
Thanks Given: 0
Thanks Received: 0

Brand new to NinjaTrader and looking for some sample strategy code. Very interested in looking at the posts from dsraider and MXASJ. The downloads contain .cs files. The Import NinjaScript function is looking for a "NinjaScript Archive File". So my newbie question is........how do I import a cs file into NT7?

Followup.......MXASJ says his code runs in NT7. Is dsraider's code compatible as well?

Thanks much.

Reply With Quote
  #93 (permalink)
 dssilver 
New York, NY
 
Experience: Advanced
Platform: NinjaTrader IB
Posts: 2 since Jul 2010
Thanks Given: 0
Thanks Received: 0


Ok, I guess the RAR file that I downloaded IS a NinjaScript archive file. So I'm making things complicated by unzipping it myself.... Sorry.

Reply With Quote
  #94 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

Another ds? There can be only one! Glad you got it figured out.

Dave

Reply With Quote
  #95 (permalink)
 gg80108 
Castle Pines N, CO.
 
Experience: Advanced
Platform: NinjaTrader
Broker: Amp Futures/Zen-Fire)
Trading: ES
Posts: 201 since Jul 2009
Thanks Given: 196
Thanks Received: 132

If u just have a cs file u can copy it directly to the strategy or indicator director in Ninja.. U will then have to go in and edit and compile one of the script or indicatiors,, then the script and any errors will show up . Remember when u compile all scripts or indicators all compile,, so if an error shows up it may not be in the script u are compiling,, look carefully at the bottom errors to see which script its talking about..

Reply With Quote
  #96 (permalink)
 
LostTrader's Avatar
 LostTrader 
Tucson, AZ
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Mirus/Zen-Fire
Trading: CL, TF
Posts: 74 since Sep 2009
Thanks Given: 21
Thanks Received: 64

I tried coding a strategy for the first time, and started with dsraider's sample (Thank you!!).
This uses some of that and roonius' TSSuperTrend v2.3 (which you must already have).
It is specifically written for NT 6.5 -- some things should be re-written if it were NT7 and I am not ready to go there yet. The reverse is klutzy because of NT 6.5 Internal Order handling.

Anyway just wanted to share to pay back some.

No guarantees of profitability! especially if you don't limit the times to trade...
Come to think of it, I've only tested it on a Range chart. LOL

OK, I figured out how to save the file in the Downloads section:

Reply With Quote
Thanked by:
  #97 (permalink)
 
Ducman's Avatar
 Ducman 
The Netherlands
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: NINJATRADER Brokerage / Continuum
Trading: CL
Posts: 473 since Nov 2010
Thanks Given: 413
Thanks Received: 640

Hello Dave,

I like your startegy set-up. It's a good learning tool. I don't seem to get it to do backtesting. I can using the standard build-in strategies but can't get it to work with this one. Do I overlook something?

Regards,

Ducman

Visit my NexusFi Trade Journal Reply With Quote
  #98 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,534


Ducman View Post
Hello Dave,

I like your startegy set-up. It's a good learning tool. I don't seem to get it to do backtesting. I can using the standard build-in strategies but can't get it to work with this one. Do I overlook something?

Regards,

Ducman

Hi, please be more specific "can't get it to work" so we can help.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #99 (permalink)
 
Ducman's Avatar
 Ducman 
The Netherlands
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: NINJATRADER Brokerage / Continuum
Trading: CL
Posts: 473 since Nov 2010
Thanks Given: 413
Thanks Received: 640

Mike,

When it runs the backtest it just doesn't give my any results. 0 trades and 0 profit. Using the same settings on a build in strategy or using the simulation mode works fine.

I just wonder if there are any special things to think about when performing backtesting.

Ducman

Visit my NexusFi Trade Journal Reply With Quote
  #100 (permalink)
 gg80108 
Castle Pines N, CO.
 
Experience: Advanced
Platform: NinjaTrader
Broker: Amp Futures/Zen-Fire)
Trading: ES
Posts: 201 since Jul 2009
Thanks Given: 196
Thanks Received: 132


Was this NT6 or 7? Post the code with the instrument and time frame u are testing, or take some screen shots to show whats working for u and not, so we are all on the same page..

Reply With Quote




Last Updated on November 16, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts