Registered User Joined: 10/6/2009 Posts: 54
|
Hi Bruce,
Can you write the real code for -- price to close above the top of the highest high during the last 7 days of NR7.
I used 'if price.Close > price.MaxHigh(7) then pass' . but I think this is wrong.
Thanks
leelaja
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
Try this:
if price.Close > price.MaxHigh(7, 1)) then pass
This will return true if the close is above the 7 day high as of yesterday.
|
Registered User Joined: 10/6/2009 Posts: 54
|
Thankyou Stockguy.
Its working
leelaja
|