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 |

Scanning for three consecutive lower highs and lower lows Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
giomorales
Posted : Wednesday, July 8, 2009 9:07:03 PM
Registered User
Joined: 3/12/2007
Posts: 10
Can you please help me with the code for the following rules?

1.  Two days ago the high and low price of the day is below the previous day's high and low.

2.  Yesterday the high and low price of the day is below the previous day's.

3.  Today's high and low price is below yesterday's.

Thanks,
Gio
jas0501
Posted : Thursday, July 9, 2009 12:09:45 AM
Registered User
Joined: 12/31/2005
Posts: 2,499

if price.high < price.high(1) andalso _
 price..high(1) < price.high(2) andalso _
 price.high(2) < price.high(3) andalso _
 price.low < price.low(1) andalso _
 price..low(1) < price.low(2) andalso _
 price.low(2) < price.low(3) then
   pass
end if
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.