I want to create a type code:
long in the market with previous low candle stop If only one is correct,
But more than two are wrong can you help me,Try for a long time can not solve
period=55
XDAY=5
h55=highest[period](high)
once i=0
if h55<=h55[1] and h55<=h55[2] and h55<=h55[3] and h55<=h55[4] and BARINDEX-TRADEINDEX>=Xday then
buy 1 shares at h55+0stop
endif
if HIGH=highest[period](high) and BARINDEX=TRADEINDEX and onmarket then
i=low[1]
endif
r=tradepricE-i
SET STOP loss r
I’d like to help but I’m not sure to understand your request?
Where (price level) do you want to place your BUY order? (at line 6)
Your query is about putting your stoploss at the low of the signal candlestick?