StockFetcher Forums · General Discussion · Need help with my code<< >>Post Follow-up
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

StockFetcher Forums · General Discussion · Need help with my code<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.