I am trying to solve a simple task in developing a strategy and can't figure out the correct way:
As long as an order is online I want to update the stop loss order every day to the low of the previous day. This is not possible if I call the SetStopLoss in the initialize method but it doesn't work as expected if I call it in OnBarUpdate.
What is the common approach on this? Shouldn't be to hard?
BTW: Is there any graphic explaining when is which method called in strategies and indicators? Like the ASP.net page life cylce here: http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx. That would be very very helpful for new developers!
For my experience: I'm new to NinjaTrader and automated trading, a bit experienced in the FX trading and well experienced in software development. Just that you know what I know
Thanks!
Comment