Set

Reference tnarrow Trade Functions tnarrow Set

SET

Set a value to the session field (see Session Fields)

(Set
numeric : field
numeric : value
)


Parameters

field : Field name
value : New value for the field in the session

Returned value

none

Example:

(IF (AND (= T_LASTORDERTYPE OP_BUY)
(< (SValue EMA_34 S_ANGLE P_H4)
-10)
)
(SET T_RECOVERYMODE M_K)
(SET T_MAXCOUNT (+ T_MAXCOUNT 1)
)