|
QuantShare
2010-05-22 08:04:05
0
|
|
Please do not use capitalized words
- Here are the Hammer Candle rules:
1- Small real body
2- Long lower shadow
3- No, or very short, upper shadow
4- Body below or near the lows of the previous candle
Mahindra & Mahindra Finance and GLENMARK did not pass because of rule 3 or rule 4.
There are several implementations of the Hammer; here are two other implementations:
Hammer 1:
a = (((high-low) > 3*(open-close)) AND ((close-low) / (0.001 + high - low) > 0.6) AND ((open - low) / (0.001 + high - low) > 0.6));
Hammer 2:
a = iff(absolute((high + low) / 2) < Ref(ema(close,10),1), iff(Min(open,close) > high - ((high - low) / 3),iff(close < Ref(close,1),iff(open < Ref(open,1), 1,0),0),0),0);
- Close prices are almost never equal to SMA values (Simple Moving Average)
If you want to close price to be near 50-bar moving average then use:
absolute(close - sma(50)) < threshold
- To update the indicator name, you have to change the description parameter of the "Plot" function.
- Graphs do open in default layout. To update the default layout, right click on a chart and select "Set current layout as default".
|
|