|
Quote: |
|
 |
|
|
I had a minor bug in the Vidya as well. |
|
|
|
|
Good day Sparrow;
in your code:
double adxMin = MIN( ADX( Low, ADXPeriod ), StochPeriod )[ 0 ];
double adxMax = MAX( ADX( High, ADXPeriod ), StochPeriod )[ 0 ];
are you certain that these lines of code compute
adxmin = LLV(adx, stoch_period) ;
Lowest value of adx in the last stoch_period bars ?
and
adxmax = HHV(adx, stoch_period) ;
Highest value of adx in the last stoch_period bars ?
adx in my implementation is computed on the close. (as is usually done).
Does the Ninja Trader have the HHV and LLV functions?
cheers.
Unicorn.