I was advised to use OnOrderUpdate() but I'm having trouble integrating it as the syntax is somewhat nebulous to me (I'm admittedly not terribly great with C#-esque languages).
As I understand: my order price is predicated OnBarUpdate for the right price of the order. If I put the entry under OnOrderUpdate, does that change how the order price is gathered?
Current Syntax
protected override void OnBarUpdate()
{
My logic for my strategy along with order (stop loss, and target)
}
I imagine the syntax would be
protected override void OnBarUpdate()
{
My logic for my strategy
}
protected override void OnOrderUpdate()
{
Put my order in this way so as not to freak out Rithmic with successive updates
}
I have a series of checks to make sure things don't go haywire in OnOrderUpdate() how do I pass the "ball" back to OnBarUpdate to update the order after the requisite number or ticks/seconds?
Comment