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
|
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
|