jmclean907 2 posts msg #87135 - Ignore jmclean907 |
1/27/2010 12:35:10 PM
My variable Projected High "PH" is the high plus the low plus the close divided by 3.
set{(ph, high + low + close)/3} Is this correct?
I am looking for a trigger where todays close is greater than or equal to the highest high of the last 14 days.
I then want to backtest it with a stop of the lowest low of the last 14 days using the the same variable.
I have the advanced subscription but am new and not sure how to write this.
Thanks for any assistance.
John
|
chetron 2,817 posts msg #87136 - Ignore chetron modified |
1/27/2010 12:47:54 PM
NO, ONLY 1 MATH OPERATOR PER SET COMMAND LINE, SO YOU WILL NEED 3 SET LINES TO GET TO YOUR RESULT.
|
jmclean907 2 posts msg #87138 - Ignore jmclean907 |
1/27/2010 12:56:32 PM
So should it read?
set{HL, high + low}
set{HLC, HL + close}
set{PH, HLC/3}
Then how do I write the code for close is greater than or equal to the highest high of PH for the last 14 days?
Thanks
John
|
chetron 2,817 posts msg #87140 - Ignore chetron |
1/27/2010 1:08:22 PM
DOESN'T SF DO PIVOTS???????????
|
four 5,087 posts msg #87317 - Ignore four |
1/28/2010 2:00:18 PM
|