oil-10min-hammernegated-pattern-strategy
Forums › ProRealTime English forum › ProOrder support › oil-10min-hammernegated-pattern-strategy
- This topic has 93 replies, 25 voices, and was last updated 4 years ago by nonetheless.
-
-
07/17/2017 at 8:24 PM #40904
HI Paris, thanks for your comment.
In fact, yes , the system work with other indices/currency pair.
I’m not sure I’d like to share all my systems, but I encourage you in trying some variation on the same theme on EURUSD and on AUDJPY.
Good luck and enjoy 🙂
07/17/2017 at 8:56 PM #40906@ francesco .
well in fact i ve tried to backtest it in various indices/currency with no satisfying results , but maybe i ve made it wrong .
to all ,
i encourage you to backtest a variable in stop loss 10 to 200 it improve quite a bit the results .
1 user thanked author for this post.
07/18/2017 at 1:33 PM #40968Francesco sto cercando di fare il codice anche con metatrader per confrontare i risultati . Non avendo con OIL uno storico decente ti chiedo se hai su qualche valuta un settaggio che mi permette di fare un test decente. Grazie. Mik
EDIT BY ADMIN : LAST WARNING : STOP ITALIAN IN ENGLISH FORUM! A LITTLE POLITICAL TO OTHER MEMBERS !!
07/18/2017 at 3:25 PM #40993hi, something decent I could find on AUDJPY 15 min and EURUSD 10 min. But with some tweak..
07/18/2017 at 5:09 PM #41014About the zero division error, I would suggest:
1hammerupnegated= max(open,close)<min(open[1],close[1]) and (abs(open-close)/max(pointsize,HiLo))>0.53 users thanked author for this post.
07/19/2017 at 12:40 PM #41069Hi all,
I had a BUY triggered this am (0350) @ 4657 . Did anyone else see this? Checking the candle I don’t see a Hammer down at 0330, almost but not quite and backtesting the data does not trigger a BUY. Any ideas why this might have happened? If the auto trading used the “worse” case of bid / ask it might suffice a hammer but why wld that happen? if using all Mids or all Bids (or all asks) there is not a 33% hammer.
The code used is as per the OP with a zero divide adjustment (although i don’t think this is related to the Zero div issue).
Thanks
07/19/2017 at 1:26 PM #41076the systeme with *1 or +0.000001 is not good.
i try with hilo……
07/19/2017 at 4:47 PM #41090Juan and Nicolas fix did work. I started both and they both worked today.. athleast on the long trade.
About what Carras explains: Had a longtrade today with profit( juans fix and nicolas fix code) but the backtest showes no trades?
07/19/2017 at 5:46 PM #4109607/19/2017 at 6:31 PM #41102This is the one I use (nicolas fix) I also run juans fix that did just the same as thisone today.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263defparam cumulateorders = trueav1 = average[3](close)av2 = average[20](close)av3 = average[50](close)//x = 0.5bull = close> av1 and close >av2 and close > av3bear = close <av1 and close <av2 and close <av3//n= 1If (high-low) = 0 ThenHiLo = 1ElseHiLo = (high-low)EndIfhammerupnegated= max(open,close)<min(open[1],close[1]) and (abs(open-close)/max(pointsize,HiLo))>0.5hammerup = min(open[1],close[1])>high[1]-(high[1]-low[1])/3 //and timeokhammerupnegated= max(open,close)<min(open[1],close[1]) and (abs(open-close)/max(pointsize,HiLo))>0.5cs = hammerup and hammerupnegated and bearhammerdown = max(open[1],close[1])<low[1]+(high[1]-low[1])/3 //and timeokhammerdownnegated = min(open,close)>max(open[1],close[1]) and (abs(open-close)/max(pointsize,HiLo))>0.5cl = hammerdown and hammerdownnegated and bullif cs and not onmarket thensellshort 1 contract at marketendifif cl and not onmarket thenbuy 1 contract at marketendif//TRAILING STOPTGL =30TGS= 20if not onmarket thenMAXPRICE = 0MINPRICE = closePREZZOUSCITA = 0ENDIFif longonmarket thenMAXPRICE = MAX(MAXPRICE,close)if MAXPRICE-tradeprice(1)>=TGL*pointsize thenPREZZOUSCITA = MAXPRICE-TGL*pointsizeENDIFENDIFif shortonmarket thenMINPRICE = MIN(MINPRICE,close)if tradeprice(1)-MINPRICE>=TGS*pointsize thenPREZZOUSCITA = MINPRICE+TGS*pointsizeENDIFENDIFif onmarket and PREZZOUSCITA>0 thenEXITSHORT AT PREZZOUSCITA STOPSELL AT PREZZOUSCITA STOPENDIFSET STOP ploss 110SET TARGET pPROFIT 523 users thanked author for this post.
07/20/2017 at 1:34 PM #41160hello ! work fine for me, thanks for strategy and for fix !
1 user thanked author for this post.
07/20/2017 at 5:28 PM #4118207/21/2017 at 10:34 AM #41269Great to hear Miguel!
07/27/2017 at 8:44 AM #4176507/27/2017 at 12:51 PM #41799Very interesting strategy Francesco. Thank you for sharing. I must take a closer look at this one!
1 user thanked author for this post.
-
AuthorPosts