StockFetcher Forums · Filter Exchange · 2 standard deviation pull back on prior 10 bars<< >>Post Follow-up
drand11
19 posts
msg #146924
Ignore drand11
3/14/2019 1:28:34 PM

I want to figure a good way to program my stop loss and trailing stops based on prior price activity.
I am thinking I can look at prior 10 day bars. A Way to calculate what the 2 Standard Deviation typical pull back is for a stock. Lets assume I want to do a Buy trade. EMA 9 is above EMA 50 so I am only lookign for buys. So I want to calculate the 2ST pull back for the past 10 trading days. and I can use this value as my Trailing stop. Thoughts? or 1.5 SD etc.. Could make this a variable, and than input it into an indicator to find the best results for a given stock.

xarlor
93 posts
msg #146925
Ignore xarlor
3/14/2019 2:44:14 PM

You'll have to check the accuracy, but I believe this draws a line 2SD above the current close and 2SD below the current close as calculated over the last 10 days.

The variable "lower" would be your stop loss.

Fetcher[
market not otcbb
average volume(30) > 1234567
close > 10
ema(9) > ema(50)

set{2SD,Standard Deviation(10)*2}
set{upper,close+2SD}
set{lower,close-2SD}

draw price line at upper
draw price line at lower

add column 2SD
add column upper
add column lower
]



StockFetcher Forums · Filter Exchange · 2 standard deviation pull back on prior 10 bars<< >>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 2018 - 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