Same Strategy, Same Market, Same Time = Different trades! - NinjaTrader Programming | futures io social day trading
futures io futures trading


Same Strategy, Same Market, Same Time = Different trades!
Updated: Views / Replies:4,777 / 22
Created: by MXASJ Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

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

  #21 (permalink)
Elite Member
Dublin, Ireland.
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Favorite Futures: FDAX, cable/yen, FX, options on commodities
 
mrticks's Avatar
 
Posts: 67 since Jun 2009
Thanks: 16 given, 9 received


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
 
  #22 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

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.

Reply With Quote
 
  #23 (permalink)
Elite Member
Dublin, Ireland.
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Favorite Futures: FDAX, cable/yen, FX, options on commodities
 
mrticks's Avatar
 
Posts: 67 since Jun 2009
Thanks: 16 given, 9 received



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

Reply



futures io > > > > > Same Strategy, Same Market, Same Time = Different trades!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strategy creating 95%-100% winning trades shodson NinjaTrader 85 February 1st, 2015 08:06 PM
The Worst Trades Of All Time kbit News and Current Events 0 June 26th, 2011 07:38 PM
Back to the Future! Back testing multi time frame strategy trades occuring in future mrticks The Elite Circle 10 April 2nd, 2011 10:54 AM
Making an already existing strategy only trade from a certain time to a certain time jmejedi The Elite Circle 6 February 8th, 2011 04:19 PM
Ninja T&S Trades Above and Below the Market Trafford Traders Hideout 3 January 6th, 2011 05:58 PM


All times are GMT -4. The time now is 11:01 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.08 seconds with 20 queries on phoenix via your IP 54.145.16.43