Hammer EA no sell positions backtesting
-
Attached is the mq4 file.
Simple eat that takes short positions when there is an inverted hammer and candle 1 high is higher than 2-5.
On backtesting with mt4 ea takes no positions.
I disconnected the buy hammer condition from buy now so it only does sells.
Edit: Also the buys included version only seems to execute only on jpyusd (1660 trades all longs), 3 trades on eurusd and none on usdchf all from 2020-2024.
-
Add a shared link: project screen - projects - open in web browser - copy link and place here
-
-
They both look the same to me, and all candle 1 so looks like it should work
-
left hand side is hammer for buys and right hand side is inverted hammer for sells they have opposite conditions but sells never execute and buys only seem to work for usdjpy
-
I cant see a problem, try replacing blocks, or unlinking blocks 1 at a time until you find where the problem is
-
The problem was using custom price fraction not level for sell now . could you check to see if first condition makes sense for sell side?
https://fxdreema.com/shared/Y8FZhNGnb
If I change candle range from 2-5 to 2-20 I would expect less trades but I am getting the same amount of trades. The condition should be if candle 1 high is higher than candle 2-5 high then pass, changing this to 2-20 makes no difference so I don't think its filtering.
-
2-5 vs 5-20 would be the same if high/low were in the lower range. In your latest project have you got your block connected?
-
I connected only the blocks for sell signals. My first block filtering for the high of candle 1 must be greater than the high of candle 2-10 is not working because if I disconnect the block I get 1323 trades vs 1328 trades with the block attached so it isn't really doing anything. Tested in xauusd 2020 until now. Adjusting the candle range doesn't do anything e.g 2-5 vs 2-20.
-
Put this one condition If you do this and test, you will see how this range works
-
I isolated the first condition, starting with candle 1 high greater than candles 2-10 highest price and then candle 1 high greater than candles 2-100 highest price and got 2100 vs 1600 trades and watching the strategy tester it was taking too many trades I don't think the filter is working properly.
-
It is just the set up, turn things off that are not needed, this should give you a new trade every bar if conditions are met:

-
I think it is working but it is more trades than I expected.
For range of 2-10 is 4732 trades out of 27000 bars
For range 2-100 is 1600 trades
For range 2-1000 is 700 tradesI don't know if this sounds right
https://fxdreema.com/shared/C1Bme5gPb
This was results with all blocks switched off it was the same when they were on
-
To work out if this is right, run on visual backtest, and check if once every candle when the condition is true you get a trade, otherwise, you get none.