Hi - I'm new to MQL4 and am a bit confused.
This code processes each bar starting from the right side (bar 0) and works bar by bar towards the left side.
+++++++++++++++++++++++++++++++++++++++++
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for (int i = 0; i<limit; i++)
{
body etc etc
body etc etc
}
return(0);
}
+++++++++++++++++++++++++++++++++++++++
What code should I use if I want to process the left-hand most bar first and then work bar by bar towards the right??
Thankyou for your help.
This code processes each bar starting from the right side (bar 0) and works bar by bar towards the left side.
+++++++++++++++++++++++++++++++++++++++++
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for (int i = 0; i<limit; i++)
{
body etc etc
body etc etc
}
return(0);
}
+++++++++++++++++++++++++++++++++++++++
What code should I use if I want to process the left-hand most bar first and then work bar by bar towards the right??
Thankyou for your help.