RSI-EMA EurUsd M15
Forums › ProRealTime English forum › ProOrder support › RSI-EMA EurUsd M15
- This topic has 79 replies, 14 voices, and was last updated 1 year ago by fifi743.
-
-
05/17/2021 at 7:11 AM #169771
Here is a little strategy from me. Profitable over a full 200,000 bars in a small time unit. Unfortunately, the yield is not huge. But the interesting thing is that you can trade well with just a single filter for such a long time. Also works with a Bollinger entry and EMA60 as a filter.
Maybe someone has an idea how to get more yield out.
Unfortunately, I have not yet found any other currency pair that works consistently well in a similar manner.
Ideas and improvements are very welcome.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101//-------------------------------------------------------------------------// Hauptcode : #KISS RSI5 EurUsd M15//Spread = 1//-------------------------------------------------------------------------DEFPARAM CumulateOrders = falsedefparam preloadbars = 2000Nlong = 1Nshort = 1MAXSHARES = abs(COUNTOFPOSITION) <= 1//EMA-TrendEMA1 = ExponentialAverage[45](close) //50//EMA2 = ExponentialAverage[ma*1](close)//H1EMA3 = ExponentialAverage[45](close) //60EMAlong = close > EMA3EMAshort = close < EMA3steigunglong = EMA1 > EMA1[1]steigungshort = EMA1 < EMA1[1]myATR = AverageTrueRange[12](close)//RSI5-EingangmyRSI = RSI[5](close)rsilong = (myRSI[1] > 30) and (myRSI < 30)rsishort = (myRSI[1] < 70) and (myRSI > 70)rsilongraus = myRSI > 75rsishortraus = myRSI < 30IF Time >= 010000 AND Time <= 230000 THENIF rsilong and EMAlong and steigunglong and MAXSHARES THEN //and emalongkurzBUY Nlong shares at market//SET STOP %LOSS 0.35 //120//Set target %profit 0.975 //40SET STOP LOSS myATR*6 //120Set target profit myATR*7ENDIFIF rsishort and EMAshort and steigungshort and MAXSHARES THEN //and emashortkurzsellshort Nshort shares at market //BollUp[1]limit//SET STOP %LOSS 0.975 //130//Set target %profit 0.9 //40SET STOP LOSS myATR*10 //120Set target profit myATR*9.25ENDIFendifif longonmarket and rsilongraus then //c2sell at marketendifif shortonmarket and rsishortraus then //c1exitshort at marketendif//if time = 230000 then //and dayofweek = 5 then//sell at market//EXITSHORT at market//endif//************************************************************************//trailing stop functiontrailingstartL = 23 //30 15 trailing will start @trailinstart points profittrailingstartS = 18 //30 15 trailing will start @trailinstart points profittrailingstepL = 9 //2 1 trailing step to move the "stoploss"trailingstepS = 2 //2 1 trailing step to move the "stoploss"//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstartL*pipsize THENnewSL = tradeprice(1)+trailingstepL*pipsizeENDIF//next movesIF newSL>0 AND close-newSL>=trailingstepL*pipsize THENnewSL = newSL+trailingstepL*pipsizeENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstartS*pipsize THENnewSL = tradeprice(1)-trailingstepS*pipsizeENDIF//next movesIF newSL>0 AND newSL-close>=trailingstepS*pipsize THENnewSL = newSL-trailingstepS*pipsizeENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPEXITSHORT AT newSL STOPENDIF3 users thanked author for this post.
05/19/2021 at 2:36 PM #169985Can one of the coders please help me? Unfortunately, my abilities are limited. If I understand correctly, my strategy here is a greatly simplified variant of the Vectorial DAX system. The trend is only given via the slope of an EMA. With WF in different variants, I always got EMA45 as a result. So I assume that it seems to be quite robust.
Can someone give me the code snipet with which I can calculate the slope directly? Or the angle of the slope? Or even incorporate it into my strategy? Many Thanks!
05/19/2021 at 2:48 PM #169987These are some links where you can find info about slope and angle of indicators:
https://www.prorealcode.com/prorealtime-indicators/moving-average-slope/
https://www.prorealcode.com/prorealtime-indicators/tma-slope/
https://www.prorealcode.com/prorealtime-indicators/b-m-i-angle-of-ma/
https://www.prorealcode.com/topic/indicator-angle-of-sma-20/#post-119113
https://www.prorealcode.com/topic/angle-oscillateur/#post-37563
https://www.prorealcode.com/topic/ema-45-degres-uptrend/#post-70279
1 user thanked author for this post.
05/19/2021 at 9:13 PM #170007Thank you Roberto for pointing this out. I can now see how simple my code is. But maybe this simplicity also makes it so robust? 8 years in M15 and always a winner almost every quarter. I’ll try to work my way into the topic and maybe even tinker something.
06/28/2021 at 12:24 PM #172642Lovely system
06/28/2021 at 12:29 PM #172644Sehr einfach, aber profitabel über Jahre hinweg. Hast du einen Vorschlag für Verbesserungen? Ich habe festgestellt, je mehr Filter man verwendet, desto eher landet man bei Überoptimierung.Very easy, but profitable for years. Do you have a suggestion for improvements? I’ve found that the more filters you use, the more likely you are to end up over-optimizing.
06/28/2021 at 1:32 PM #172647Only post in the language of the forumthat you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Thank you 🙂
06/28/2021 at 2:24 PM #17265506/28/2021 at 3:18 PM #172659Hello phoentzs,
Great strategy with potential of improvment^^.
You must be careful with spread that has a high impact on performance. Your strategy is running at night and spread can be higher.
Otherwise you have included a trailing stop but it doesn’t improve the performance and you can curve fit results.06/28/2021 at 4:08 PM #172663In the strategy, the spread is: 1, since the spread is 0.9 at night and 0.6 during the day, the maximum risk is for positions over the weekend. In the backtest, however, weekend positions do not have a bad effect. The trailing stop is actually only an emergency solution for large movements. The strategy without a TP also works almost as well.
06/28/2021 at 4:27 PM #172664Hi
I’ve recommended it to viewers of my site, at the moment I have tried a couple of things, will attach the code for you to review
It seems hard to balance the increasing P/L with drawdowns, it feels like there’s another filter needed
I tried making it a day trading system but that didn’t work so maybe as an overnight scalping system?
https://robofuturestrader.com/kiss-eur-usd-system-on-prorealcode-to-pick-up/
1 user thanked author for this post.
06/28/2021 at 4:36 PM #172666Thank you for your interest. I’ll look at the code later. I tried a lot as a filter … EMA tandem, EMA triple, momentum … a rising / falling EMA had the best results. I still have a version with an EMA angle, similar to Vectorial DAX … but this version is only slightly better. I think the “secret” lies in this: you only take / get what the market gives you. The more trades you filter out, the bigger the drawdown will be later. Tonight I’ll have a look at your code.
06/28/2021 at 8:03 PM #17267906/28/2021 at 8:21 PM #17268006/28/2021 at 8:46 PM #172681Yes 2300 seems to the line in the sand
This another shop but i guess IG also do this?
-
AuthorPosts
Find exclusive trading pro-tools on