Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

highest high in nr7 Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
veeravallileelajaxxxxxxxxxxxxx
Posted : Thursday, March 11, 2010 5:35:30 PM
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
StockGuy
Posted : Thursday, March 11, 2010 6:08:59 PM

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.

veeravallileelajaxxxxxxxxxxxxx
Posted : Thursday, March 11, 2010 6:28:23 PM
Registered User
Joined: 10/6/2009
Posts: 54

Thankyou Stockguy.
Its working

leelaja

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.