Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
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.
Can you help answer these questions from other members on NexusFi?
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.