sfbug 20 posts msg #102555 - Ignore sfbug |
9/6/2011 10:24:18 PM
Does anyone know how to draw R1 and S1 on the chart?
Sfbug
======
|
tomm1111 202 posts msg #102558 - Ignore tomm1111 |
9/6/2011 11:46:57 PM
Is this what you are looking for?
|
saico 59 posts msg #102571 - Ignore saico modified |
9/8/2011 3:03:52 PM
tomm,
is it possible to have SF backtesting to buy at the current S1 and S2 levels and close positions at the open of the next day?
Thanks
saico
|
Kevin_in_GA 4,599 posts msg #102572 - Ignore Kevin_in_GA |
9/8/2011 3:37:41 PM
Not really. I am assuming that you would have placed a limit order to buy if the price dropped below these levels at some point during the day, and then sell at the open on the following day?
The challenge here is that this would have been an intraday move and SF would have to guess at your entry - what if the stock gaps way below S1 based on bad news, but recovers by the end of the day? SF backtesting would have you in at the S1 value, but in reality you would have been filled at a much lower price.
If you were looking at BUY if the price closed below S1 at the closing price, this would be possible.
And you probably would need to use "S1 1 day ago" as the entry trigger, based on how SF calculates things (which is end-of day).
|
saico 59 posts msg #102573 - Ignore saico |
9/8/2011 4:11:51 PM
Yes Kevin, regarding the gaps you're completely right of course. Thanks for that hint! But isnt possible to code a string that checks if there's a gap between the last day close and the open and if that open is below R1, or R2? Unfortunately SF is a bit limited here as much as I'm when it comes to serious coding ;-)
|
straken 469 posts msg #102574 - Ignore straken |
9/8/2011 10:01:41 PM
You should consider stockfinder. Its a little more expensive than fetcher. I use both. Fetcher is easy to quickly code and backtest end of day data, but finders realtime is the scanner you want to trade with. Finder gives you realtime scanning of any condition and timeframe you run code for and has a very good backtest.
|
mahkoh 1,065 posts msg #102583 - Ignore mahkoh |
9/9/2011 5:44:53 PM
Regarding the original question, if you want a straight line on the chart:
draw price line at s1
draw price line at r1
|
tmaugham 115 posts msg #102584 - Ignore tmaugham |
9/9/2011 7:10:50 PM
Straken, what's the url for stockfinder?
thanks...
|
straken 469 posts msg #102585 - Ignore straken |
9/9/2011 8:29:43 PM
www.stockfinder.com
|
tmaugham 115 posts msg #102593 - Ignore tmaugham |
9/11/2011 10:22:03 AM
Thanks!!!
|