I have a strategy that is developed / back-tested and is ready to move forward into "production"
I would like to use the strategy in real-time trading with my brokerage account.
I need to ensure that only current session / live orders are submitted to the exchange.
I would like to clarify the usage of two processes.
1. Wait until flat before executing live - I have this enabled. (Tool / Options / Strategy )
2. I have seen references to using a line of code within the OnBarUpdate() routine.
- currently not implemented in my code.
If needed ... I would implement in the following manner:
private void SubmitOrder()
{
// called by OnBarUpdate() routine
if (Historical)
return;
// ** Code to submit mkt limit orders ... etc.
}
The best of all worlds would be ... to allow the strategy to "chalk up" the prior trading sessions and then trade the current market/data stream live, as signaled.
Is there anything else that I should be considering.
Regards,
L. Itter

Comment