Forum on trading, automated trading systems and testing trading strategies
I need help to put a simple alert on this indicator
Muzaffar Ergashaliev, 2016.09.10 08:48
Hi my friend !!
Open job freelancer
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Everyone,
I wrote this indicator to calculate number of up bar and down bar within a certain window which I called "lookback".
To my surprise, when I change lookback value, this indicator is not changed (still show the old value)
But if I delete this indicator on chart and re-attach to chart, it work with correct value.
I don't know what's going on and quite worry about my other code.
Could you help me to fix it?
Thanks so much.
HHC
PS. If I don't use the window input but type the number in as below, the indicator update anytime I change value
for(int j1=i; j1<=i+lookback; j1++)