sohailmithani 192 posts msg #109418 - Ignore sohailmithani modified |
12/14/2012 10:59:05 AM
I want to buy here as follows:
1) if open is below certain % from close yesterday then at open
2) else at the % defined
eg. say close yesterday was $100 and I want to buy at $95 but open was $94 so system should buy at $94. However, say open was at $97 then system should wait till it hits $95.
My entry code is as follows:
set{if,count(open > PR,1)}
set{buyprice1,if *PR}
set{else,1 - if}
set{buyprice2,else*open}
set{LP,beta/1.2}
set{P,LP*3}
set{LPP,100-P}
set{PR%,LPP/100}
set{PR,PR%*close 1 day ago}
set{PR1,buyprice1+buyprice2}
PR1
Also, is there any type of order (which broker?) which only buys when limit buy is hit and not when open is below my limit price.
Thanks
|