Kenneth , In fact I had asked Francesco, even for not writing here.
Hi Carras:
here is no stop if the price moves immediately against any new trade position? (either long or short). Also i’d be interested in hear how you decided on TGL = 18 and TGS = 24 ?
Yes that is correct there is not global stop, you can add a stop as suggested by Kenneth. 18 and 24 came from optimization.
Regards
Kenneth or Francesco , You can describe the conditions, i want to try to im metatrader and see the differences. Thank you for your contribution. mik
Hi Miguel.
hammerup = min(open[1],close[1])>high[1]-(high[1]-low[1])/3 //and timeok
hammerupnegated= max(open,close)<min(open[1],close[1]) and abs(open-close)/(high-low)>x
cs = hammerup and hammerupnegated and bear
hammerdown = max(open[1],close[1])<low[1]+(high[1]-low[1])/3 //and timeok
hammerdownnegated = min(open,close)>max(open[1],close[1]) and abs(open-close)/(high-low)>x
cl = hammerdown and hammerdownnegated and bull
if cs then
sellshort p contract at market
endif
if cl then
buy p contract at market
endif
The code looks for hammerstyle candle that are negate in the following candle i.e you have an hammer up and then you have a candle whose body is all below the body of the hammer up candle. There are also momentum filter as below:
av1 = average[5](close)
av2 = average[10](close)
av3 = average[50](close)
bull = close> av1 and close >av2 and close > av3
bear = close <av1 and close <av2 and close <av3
Hope this help
Best
Francesco
Hi Francesco,
this strategy is very interesting; do you have a last version of the code?
Thanks!
Thanks Stenozar, havent changed anything from the one I posted at the beginnning, you can use that.
Regards
Francesco
The initial code that francesco78 posted is still the original one. But some of us(like me) gets a divition zero error when we run it in autotrading. This might be fixed with the last solutiin francesco78 wrote. But seems like I still have to wait until next week to get a tradingopertunety and veryfi that the fix was good.
Thank you Francesco,
Did you even have an indicator?
hi, Francesco… what is the average profit ?
it is very important..you need to know if the TS can be in gain with slippage and trading fee..
thanks in advance
hi Enzo, you can find the average profit by running the backtest and looking at the details.
regards
Francesco
How is your backtest with your fix francisco78?
When I use this upgrade/fix the system changes quite abit.
Can I use 0.001 insted?
Doesnt change much, the smaller the twick the better in my opinion. Have you tried it live with the trick? Doest it work properly?
Best
Still waiting for a automaded trade with juanj’s fix.
I just tested your fix in backtest and it got from 2 max losses to 4.
Havent done so much more then that, just waiting for new trade at the moment 🙂
hi all ,
thanks for the system francesco .
i ve put three version in live , in demo but in live .
i ve put a stop loss at 100 in a system and 190 in another and the results are a little better .
but for me the problem is that system only works on crude ( oil …) .
I va tried indices ( france , germany and wall street ….) in several timeframes ans no one seems to work well …..
Does anyone found something were the system works well ?