Hi coders, I'm learning programming now to develop a simple Stochastic indicator. I don't know what codes are lack of resulting the indicator wasn't updated automatically. FYI, I'm using "indicator_separate_window" for my testing.
Upon a New Bar is launched, there are 2 issues :-
1) Stochastic "< 80" or "> 20", the DotLine and the line at sub-window won't be removed automatically
2) My settings are for(int i=0; i<=20; i++), i.e. up to Max Shift of 20, but from Shift 21 onwards, the DotLine and the line at sub-window won't be removed automatically
Kindly help to modify my indicator so that it can update the DotLines and the line at sub-window automatically without any human intervention. Thanks.
Upon a New Bar is launched, there are 2 issues :-
1) Stochastic "< 80" or "> 20", the DotLine and the line at sub-window won't be removed automatically
2) My settings are for(int i=0; i<=20; i++), i.e. up to Max Shift of 20, but from Shift 21 onwards, the DotLine and the line at sub-window won't be removed automatically
Kindly help to modify my indicator so that it can update the DotLines and the line at sub-window automatically without any human intervention. Thanks.
Attached File(s)