Hi
I would like to write a code that involves finding a point and then Working forwards from this to another point and then working forwards from this potentially with another instruction
Any quick instruction I could use
Have been playing with loops having done the tutorial but cant work out how to get my desired outcome
The outcome I am aiming for is :-
Touch Upper Bollinger Bar then Higher High and Close – Show Arrow
I then want to show arrow on subsequent bar index until either 25 Periods have elapsed without repeating the above or Touching The lower Bollinger Bar
Attached is the first part I have done which works fine
All help and advice would be appreciated
//Bollinger Calculations
AVG = average[20](close)
BOLLUP = AVG+std[20](close)*BollingerDeviation
BOLLDOWN = AVG+std[20](close)*-BollingerDeviation
I’m not sure to have perfectly understood what you are requesting, but try the below code to find out if it can help:
//Bollinger Calculations
AVG = average[20](close)
BollingerDeviation = 2
BOLLUP = AVG+std[20](close)*BollingerDeviation
BOLLDOWN = AVG+std[20](close)*-BollingerDeviation
bollbreak = close crosses over bollup
if bollbreak[1] and high>high[1] and close>close[1] and barindex-signalbar>25 then
signalbar=barindex
drawarrowup(barindex,high)
endif
return