Files:
hollyc2ma2nsounds.mq4
6 kb
it is accurate because it repaints. It repaints because you are counting up. Always count down.
WHRoeder:
i didn't got u master please explain me further.
it is accurate because it repaints. It repaints because you are counting up. Always count down.
ansimuskan:
i didn't got u master please explain me further.
i didn't got u master please explain me further.
What WHRoeder ment is that the bar iteration should be from past to present, and not the other way around. If not, your accurate indicator "sees the future". Should be like this:
int start() { // Start, limit, etc.. int start = 0; int limit; int counted_bars = IndicatorCounted(); // nothing else to do? if(counted_bars < 0) return(-1); // do not check repeated bars limit = Bars - 1 - counted_bars; // Iteration from past to present for(int pos = limit; pos >= start; pos--) { // Blabla } }
flaab:
Flaab master there is no word such as iteration in code
What WHRoeder ment is that the bar iteration should be from past to present, and not the other way around. If not, your accurate indicator "sees the future". Should be like this:
ansimuskan:
Flaab master there is no word such as iteration in code
Flaab master there is no word such as iteration in code
LOL . . . let me help . . iteration
Run this script . . .
//+------------------------------------------------------------------+ //| iteration.mq4 | //| Copyright © 2012, MetaQuotes Software Corp. | //| https://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, MetaQuotes Software Corp." #property link "https://www.metaquotes.net" //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { int iteration=0; while(iteration < 10) { iteration++; Print("Iteration number ", iteration); } Print("All 10 iterations finished . . . thank you."); return(0); } //+------------------------------------------------------------------+
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