Hedge_Sell

Reference tnarrow Trade Functions tnarrow Hedge_Sell

HEDGE_SELL

Hedge Sell Orders in a strategy session.

(Hedge_Sell)

Calling this function hedges all sell orders in the session. An equivalent Buy orders are instantly traded. If Hedge Magnitude of the session is greater than 1, the buy orders are multiplied by this magnitude. If we call this function and after we perform a Sell Order, by calling again this function it adjusts the hedge only by the difference.

  


Parameters

none

Returned value

none

Example:

(IF (AndS PROGRESS S_SELL P_H1)
(IF (>= T_HEDGEBUYPROFIT 0)
(CLOSE_HEDGE_SELL)
)
(ELSE (IF (< T_PROFITSELL -500)
(HEDGE_SELL)
)
)
)