PDA

View Full Version : Order Entry Methods Not Working in Simple Strategy


fosch
06-24-2010, 11:44 AM
I'm at a loss here folks. I have tried to implement the most basic of Strategies via the NT Strategy Wizard, albeit unsuccessfully.

I have been trying to use the NT Strategy Wizard to enter a very simple strategy. Essentially, what I want to do is submit an order to buy (using EnterLong()) when the previous bars high (High[1]) is exceeded by the current bar (Close[0]). I am also drawing a red diamond above the previous bars high when this happens. So, far I have been able to get all of the drawing tools to work, BUT I cannot for the life of me get an order to fire. So, the strategy is running and working, but the EnterLong() command is not working. Four hours into this I'm becoming exasperated.

Help.

NinjaTrader_Brett
06-24-2010, 02:38 PM
Hello,

I gave you a call on your original note and got you taken care of. We found that you had a strategy that ran on historical data and had a strategy position. Consequently you never coded in an exit strategy therefor the strategy never generated another entry signal and you never got another order. We also explained how the NinjaScript option Wait until flat before executing live worked.

Let me know if I can be of further assistance.

fosch
06-24-2010, 03:01 PM
Yes, Brett. You are correct.

And thanks for your help. With the addition of the if (historical) return; code to the OnBarUpdarte(), my strategy is behaving well now. Thanks for your patience.

Joe