Exit

Reference tnarrow Trade Functions tnarrow Exit

 

EXIT

Exit a strategy session.

(Exit)

Exit from all orders in a strategy session. It check the Exit Minimum profit to exit. if Minimum profit is not set (equal to -1) it exit if not to exit the session profit must  be equal or greater to minimum profit.

If a session of type BUY has exited the Buy Orders, this function is automatically called.
If a session of type SELL  has exited the Sell Orders, this function is automatically called.
If a session of type BUYSELL has exited the Buy Orders and Sell Orders, this function is automatically called.

  


Parameters

none

Returned value

none

Example:

(IF (AndS BAR S_CHANGED P_D1)
(EXIT)
)