Hello,
i want to set a Stop Loss on a Donchian Channel value, but it dont works.
I try:
SET STOP LOSS LOWEST[20](Low)
And:
SET STOP PLOSS OPEN - LOWEST[20](Low)
But the StopLoss will never triggered 🙁 Any Idea?
EDIT:
Whole code:
IF not longonmarket AND HOUR = 21 THEN
BUY 1 CONTRACTS AT MARKET
SET STOP LOSS LOWEST[20](Low)
ENDIF
Try:
IF not longonmarket AND HOUR = 21 THEN
BUY 1 CONTRACTS AT MARKET
SET STOP pLOSS (close - LOWEST[20](Low))
ENDIF
To avoid points conversion problem, you should use SET STOP LOSS and not PLOSS. If the pointsize is not equal to 1, and since the stoploss calculation is made with price (close and lowest low), the stop loss value would never be set at the good level.
IF not longonmarket AND HOUR = 21 THEN
BUY 1 CONTRACTS AT MARKET
SET STOP LOSS (close - LOWEST[20](Low))
ENDIF