Reference Trade Functions Buy
Buy Order in a strategy session.
By calling this function the order size is automatically calculated from the strategy properties by looking to the Recovery, MaxLot, InitialLot and it is executed if it is coherent with the Direction and Direction Type, PipStep and TimeStep.
// if the number of buy trades is less than the number of sell trades we buy
(IF (<= T_BUYNBRTRADE T_SELLNBRTRADE)