einok msg #97391 - Ignore einok |
11/8/2010 2:37:04 PM
I have the following code:
I want to take the open, high, low and close from 2 days ago and average them
set { myclose, open 2 days ago + high 2 days ago + low 2 days ago + close 2 days ago /4 }
then yesterdays high must be below 'myclose'
high 1 day ago close below myclose
Not returning what I expected. Anybody able to help?
Thanks
|
machismo 115 posts msg #97392 - Ignore machismo |
11/8/2010 3:05:07 PM
as far as I know you can only add 2 items at a time. so the following should work when broken down.
set { x1, open 2 days ago + high 2 days ago}
set { x2, low 2 days ago + close 2 days ago }
set { x3, x1 + x2 }
set { myclose, x3/4 }
|
einok msg #97394 - Ignore einok |
11/8/2010 4:05:34 PM
machismo,
Thanks, that helped. I've been going through the manual and must have missed that only 2 items could be used at a time.
|