That's all I need. From this definition this code should be used (I think) :
Yes everything is correct. If you need a bar [i-1], you need to synchronize the origin:
if(rates_total<2 )
return(0);
//---int limit=prev_calculated-1;
if(limit<1)
{
HighestBuffer[0]=0.0;
limit=1;
}
//--- main loopfor( int i=limit; i<rates_total; i++)
HighestBuffer[i]=Func(price[i],price[i-1]);
//--- return value of prev_calculated for next callreturn(rates_total);
That's all I need. From this definition this code should be used (I think) :
Yes everything is correct. If you need a bar [i-1], you need to synchronize the origin:
Yes everything is correct. If you need a bar [i-1], you need to synchronize the origin:
Thank you for the conversation.