Sorry for posting a new thread
already solved :)
//candle count if(Bars<=3) return(0); int counted_bars = IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) {counted_bars--;} //fixed code
hopefully helping the other coders :D

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
Please help,,
I have an indicator coded by my own, that marks the candle with the red or lime color for the starting point to draw automated fibonacci level,
the problem is, when I close the MT4 terminal and then re-open it , the candle becomes screwed like below:
I'm using indicator buffer to draw the candle as below
the indicator should be like below image, but whenever I re-open my MT4, it becomes screwed.
the correct one:
please help ,
thank you