Hi.
I have two questions regarding bars back in time.
- How do i set a stop loss to a bar(low) back in time, say five bars ago etcetera?
if condition AND Not LongOnMarket then
BUY 2 SHARE AT MARKET
SET STOP PLOSS currentBar[-5](low)
endif
- And can i use a for loop to index up five bars ago to find the lowest low from those last five bars?
Best Regards
WingParticipant
Veteran
Question 1:
SET STOP LOSS close-low[5]
Question 2:
SET STOP LOSS close-lowest[5](low)