I want to separate my entry conditions logic from my entry submission logic
Conditions Logic
In OnBarUpdate I want to have something like:
{
if (condition == true)
GoTrade("Long");
}
Submission Logic
When calling "GoTrade("Long")" in my conditions logic I want the code to do the following in each state (simplified):
- In OnBarUpdate: EnterLong();
- In ExecutionUpdate: Submit a StopLossOrder;
- In OrderUpdate: Assign an order object;
Thanks!
Kirk

Comment