Hell75
Nuovo forumer
Ciao a tutti, come posso convertire questo FOR di metatrader x visualtrader, contando che VT usa il BEGINFOR?
Graciasss
METATRADER
int counted_bars=IndicatorCounted(),limit,shift;
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
limit=Bars-Len-1;
if(counted_bars>Len) limit=Bars-counted_bars-1;
if (limit<2) limit=100;
for (shift=limit;shift>=0;shift--)
VISUALTRADER
beginfor(index, BARRAINIZIO, BARRAFINE);
endfor; }// FINE CICLO FOR
Graciasss
METATRADER
int counted_bars=IndicatorCounted(),limit,shift;
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
limit=Bars-Len-1;
if(counted_bars>Len) limit=Bars-counted_bars-1;
if (limit<2) limit=100;
for (shift=limit;shift>=0;shift--)
VISUALTRADER
beginfor(index, BARRAINIZIO, BARRAFINE);
endfor; }// FINE CICLO FOR