Click here to Login





                                                   Hammer

  0

0
felik
2010-10-31 08:45:50


i want to write a rule for a hammer which satisfies ur all 4 conditions and additionally it has a open and close difference not more then 3% and the difference between low and close is 5% or more then open and close difference with a very small /no upper shadow i.e. lower shadow > 5% of body and body shud be of a differece of 2%
You had sent me this on my qn related to hammer earlier;
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

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);


Read more: http://www.quantshare.com/title-50-wrong-screening-in-cdl-patterns#ixzz13wIfJZ2u



QuantShare
2010-11-01 06:59:08

  0

Best Answer
No, or very short, upper shadow is already implemented.

- open and close difference not more then 3%
absolute((open - close) / open) <= 0.03

- difference between low and close is 5% or more then open and close difference
absolute(low - close) >= 0.05 * absolute(open - close)



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Simple hammer
Hammer
Doji
Equity Data to Ticker Symbol
Industry Name of an External Symbol

How-to Lessons
How to automatically start a downloader every few minutes?
How to export trading data to a CSV file
How to create a strategy-based portfolio
How to display Forex economic calendar data in a chart
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
wrong screening in cdl patterns
Data time-frame
Conversion error importing data
How to get the last day of the month in C#
AMM scripting - error and some questions

Blog Posts
Composite Indicators
Backtesting Process
Short Index - Part 2
Stock split & dividend
Trading orders - Part 2









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.