string signalSentAlready="NONE"; //This should not be in start, it should be in init, it is reset every tick. // // } // end loop //---- return(0); } ) //??????? Change to }signalSentAlready should be declared Globally
signalSentAlready should be declared Globally
for(int i = 0; i < limit; i++)
ADX repaint if you using i==0;
All of those indicators repaint, ATR, CCI, RSI, ADX.
ADX repaint if you using i==0;
All those indicators repaint.
Updating value on bar 0 is not repainting.
Repainting is when past data are changed, not current candle.
That is open to interpretation. I think most people consider an indicator that changes its value on the zero bar is repainting, and an indicator that gives a fixed value on the zero bar is NRP.
That is open to interpretation. I think most people consider an indicator that changes its value on the zero bar is repainting, and an indicator that gives a fixed value on the zero bar is NRP.
Edit: can you point me to some indicator which are NRP in your opinion ?
It's wrong interpretation in my opinion. If bar zero has a fixed value, it means the indicator doesn't take into account the data if the current bar (which is weird for an indicator not ?), or it changes the value of this bar when the bar is shifted to 1, so it changes the value of this bar, and you have a repainting indicator following your interpretation
Edit: can you point me to some indicator which are NRP in your opinion ?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I found this indi which looks very promising on backtest, but as soon as i put it in live, well..you can see for yourself. However when I ran through the code it didnt make use of anything that really repaints, merely RSI, ADX ATR and momentum. I'm quote confused as to why the indi messes up in live like this? cheers