NexusFi: Find Your Edge


Home Menu

 





Same Strategy, Same Market, Same Time = Different trades!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MXASJ with 13 posts (0 thanks)
    2. looks_two RJay with 4 posts (1 thanks)
    3. looks_3 mrticks with 2 posts (0 thanks)
    4. looks_4 max-td with 2 posts (1 thanks)
    1. trending_up 11,308 views
    2. thumb_up 2 thanks given
    3. group 0 followers
    1. forum 22 posts
    2. attach_file 2 attachments




 
Search this Thread

Same Strategy, Same Market, Same Time = Different trades!

  #21 (permalink)
 
mrticks's Avatar
 mrticks 
Dublin, Ireland.
 
Experience: Advanced
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Trading: FDAX, cable/yen, FX, options on commodities
Posts: 67 since Jun 2009
Thanks Given: 16
Thanks Received: 10


MXASJ View Post
Just to update this thread. My problem was solved with Action #1 above. A single typo in my strat code had it trading against an indicator parameter that was different than the plotted parameter.

I've found the bug, and it was me.

On the ATM-like hard code, I'm still playing around with it. To be honest the only reason for it seems to be the issue of backtesting using data from different time frames. Important, but I need to prioritize what I need to do in NT.


Hi MXASJ - Any chance you could post the code from the completed strategy? I'm trying to make one work with long and short entry conditions but I keep getting errors in the log, then it stops running. I've added in TraceOrders = true ; and print () statements everywhere then viewed the output window but it doesn't show where it falls down as the errors all happen at once. I keep getting method errors that say orderid and strategy id don't exist. Am working on it now but have spent a long time at it.

If you could put up the code with an entry condtion calling on an ATM I'd really appreciate it.


Thanks,

Gavin.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #22 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Hi Gavin,

Man that seems like a long time ago... I actually don't have that strat any more and I've moved all my development over to NT7. Also, I haven't been using strats to fire ATM strategies in quite some time.

Where are you stuck?

The basic logic was like this pseudo code:

//Go long

If (Its going up!
&& marketposition is flat)
Launch MyLongAtm

//Go short

If (Its tanking!
&& marketposition is flat)
Launch MyShortATM

My thing was based on the sample ATM strategy code at the Ninja site.

Started this thread Reply With Quote
  #23 (permalink)
 
mrticks's Avatar
 mrticks 
Dublin, Ireland.
 
Experience: Advanced
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Trading: FDAX, cable/yen, FX, options on commodities
Posts: 67 since Jun 2009
Thanks Given: 16
Thanks Received: 10



MXASJ View Post
Hi Gavin,

Man that seems like a long time ago... I actually don't have that strat any more and I've moved all my development over to NT7. Also, I haven't been using strats to fire ATM strategies in quite some time.

Where are you stuck?

The basic logic was like this pseudo code:

//Go long

If (Its going up!
&& marketposition is flat)
Launch MyLongAtm

//Go short

If (Its tanking!
&& marketposition is flat)
Launch MyShortATM

My thing was based on the sample ATM strategy code at the Ninja site.

Thanks for the reply. I stripped down the NT6 sample ATM cs and now I only have one error which is "ATMstrategycancelorder" orderId does not exist.

I'll keep at it, will get there eventually, have spent a log time on it though.

Have a good weekend.

Reply With Quote




Last Updated on January 29, 2010


© 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