oAction= condition ? orderAction.Buy : orderAction.Sell;
SubmitOrder(.... oAction ... )..
I want to achieve similar with managed orders, so, there should be need to use separate functions (like I am using at this moment):
if( Condition) { EnterLong(....); // <------ "long" appears inside FUNCTION name } else { EnterShort(....); // <------ "short" appears inside FUNCTION name }
i.e.
action = "enter";
direction= "short";
ExecuteTrade(action , direction ) ; // instead of EnterShort()
Comment