Buy

Reference tnarrow Trade Functions tnarrow Buy

BUY

Buy Order in a strategy session.

(Buy)

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.

 


Parameters

none

Returned value

none

Example:

// if the number of buy trades is less than the number of sell trades we buy
(IF (<= T_BUYNBRTRADE T_SELLNBRTRADE)
(BUY)
)