Traders Laboratory - View Single Post - Playing with the VMAR`s open research
View Single Post
  #504 (permalink)  
Old 11-01-2007, 10:03 AM
unicorn's Avatar
unicorn unicorn is offline
unicorn has no status.

 
Join Date: Apr 2007
Posts: 164
Thanks: 25
Thanked 0 Times in 0 Posts
Re: Playing with the VMAR`s open research

Quote:
View Post
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.

Reply With Quote