BarsWhileTrue returns the number of bars that a given condition is true.

I can use the Zorro functions NumDn and NumUp as templates to create my own BarsWhileTrue test.

// return the number of falling bars
int NumDn(var* Data,int Period,var vThreshold)

// return the number of rising bars
int NumUp(var* Data,int Period,var vThreshold)

Zorro's Lowest Low (LL) and HighestHigh (HH) functions accept Period and Offset as parameters. These should provide the variable periodicity my Stochastic formula needs.

Last edited by OptimusPrime; 11/04/18 21:28.

Thanks so much,

OptimusPrime