Problem with coding

rafal

New Member
#1
Hi,

I have a problem with coding.
I need 2 things:

1. I want to compute highest value from 20 days, and formula looks as follows:

myHHV = HHV(H,20);

and this works fine

2. I want to compute ADX when HHV was happened (if HHV was 7 days ago, then I want ADX value for 7 days ago)

I wrote something like that:
ADXLastHHV = ValueWhen(myHHV,ADX(14));

but unfortunately this does not work, I receive todays value of ADX.

Can anybody help me, please
Regards
Rafal
 

Similar threads