StockFetcher Forums · General Discussion · Moving averages and trends<< 1 2 3 4 >>Post Follow-up
graftonian
1,089 posts
msg #128500
Ignore graftonian
5/16/2016 6:42:16 PM

It appears that the ema13 is, indeed a good indicator of beginning trends but backing it up with another indicator increases the chance of success. In this exercise I used Williams %r(60) crossing above -70.
So entry would be x above ema(13) followed shortly(a day, or 2, or 3) by williams%R above -70. I used an average of open, high, low, and close to represent the security, primarily to increase readability, and added a few bells and whistles, to the same end.

For some reason the results for the filter differ here on the forum . Todays pick is CZR

Fetcher[market is not OTCBB
Average Volume(30) > 500000
draw ema(13)
/*COMPUTE AVERAGE OF DAILY HIGH, LOW, OPEN, AND CLOSE*/
set{x1, low}
set{x2, x1 + high}
set{x3, x2 + open}
set{x4, x3 + close}
set{x, x4 / 4}
draw x
set{ema13, ema(13)}
draw ema13 on plot x
/*SHOW DAYS WHEN X CROSSED ABOVE(AND BELOW) EMA13*/
set{X_up, count(X crossed above ema(13), 1)}
draw X_up
set{X_down, count(X crossed below ema(13), 1)}
draw X_down
draw Williams %R(60)
draw Williams %R(60) line at -70
set{W, count(Williams %R(60) > -70, 1)}
draw W
/*THE FILTER*/
Williams %R(60) crossed above -70
x > ema(13)
/*SORT ON BIGGIST MOVERS*/
add column Average Day Range(10)
sort on column 5 descending
chart-time is 6 months
/*BELLS AND WHISTLES*/
set{ENTRY, CLOSE}
DRAW PRICE LINE AT ENTRY
SET{5PCT_TGT, ENTRY * 1.05}
DRAW PRICE LINE AT 5PCT_TGT
]



Mactheriverrat
3,156 posts
msg #128507
Ignore Mactheriverrat
modified
5/17/2016 1:58:06 AM

Nice chart Graff!

There have been some posters here on Stockfetcher in the past that used Average Day Range(30) above 8.00. I like Average Day Range(30) above above 4.00 . One can play with Average Day Range(30) to their own taste. It helps getting slow mover's out of the way . Just saying.

The Key is the trend of the EMA(13) or if one wants to use say EMA(9) how the averages start moving up.
In this chart see how more volume on bullish days head towards the resistance line.


If one could take every thing off the chart and just see a line like EMA(13) or EMA(10) or EMA(9) vs price. When you see the line start moving up or down then thats the trend.

Mactheriverrat
3,156 posts
msg #128508
Ignore Mactheriverrat
5/17/2016 7:20:41 AM

Hey Graff
Here is some code telling how many days EMA(13) has been up or down.

BxB is number of consecutive days Ema(13) above (+)/below(-) previous ema(13) and set{BBb,days( Ema(13) is above ema(13) 1 day ago,100)}
set{BBa,days( Ema(13) is below ema(13) 1 day ago,100)} set{BxB, BBa - BBb} and add column BxB {B_x_B}

do not Draw BxB

graftonian
1,089 posts
msg #128513
Ignore graftonian
5/17/2016 12:05:46 PM

Looking at the volatility of these trades, it strikes me that position sizing is a must. I personally like an initial stop of 2 x atr(10), but this can be changed as well the size of your own poke, and how much you want to win/lose. I add this to my prior filter. Thanks again to my coding mentor, kevin_from_ga.

fetcher[SET{FOLIO_CASH,10000}/*to suit your piggy bank*/
SET{CASH_PER_TRADE, FOLIO_CASH /10}/*how much of stash do you want bet?*/
SET{RISK_PER_TRADE, FOLIO_CASH / 100}/*and how much to risk*/
SET{2ATR, ATR(10) * 2}
SET{STOPLOSS, CLOSE - 2ATR}/*set stoploss at 2 x ATR(10)*/
DRAW PRICE LINE AT STOPLOSS
/*MONEY MANAGEMENT*/
SET{SL, CASH_PER_TRADE / CLOSE}
SET{RL, RISK_PER_TRADE / 2ATR}
SET{LS1, MIN(SL, RL)}/*lot size is minimum of cash or risk*/
SET{LS, ROUND(LS1)}
SET{CASH_REQ, LS * CLOSE}
ADD COLUMN SEPARATOR
ADD COLUMN LS{LOT_SIZE}
ADD COLUMN CASH_REQ
ADD COLUMN 2ATR
ADD COLUMN STOPLOSS]


StockFetcher Forums · General Discussion · Moving averages and trends<< 1 2 3 4 >>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.