SHORT EUR USD (m15) // PAC MAN STRATEGY
Forums › ProRealTime English forum › ProOrder support › SHORT EUR USD (m15) // PAC MAN STRATEGY
- This topic has 85 replies, 16 voices, and was last updated 4 years ago by Vonasi.
Tagged: Break Even, BreakEven
-
-
05/04/2018 at 8:42 AM #69768
The condition :
Cv3 = STD[10](close) >= 10.93 * pipsize
is made to avoid taking position in a small range = FALSE SIGNALS !!
I have choise 10.93 after a walk forward backtest with 6 occurencies. You can try and tou will see that the results are good.
Personnaly I prefer the original version of the code without Training Stop :
121314151617181920// PAC MAN STRATEGY – PIP HUNTER// SHORT EUR USD (M15)// SPREAD = 1 PIPDEFPARAM CumulateOrders = falseDEFPARAM Preloadbars = 4000N = 7 //MINI LOT $1Cv1 = (close < Average[100]) and (Average[50] < Average[50](close[1]))Cv2 = RSI[14](close) <= 28Cv3 = STD[10](close) >= 10.93 * pipsizeCv4 = close <= BollingerDown[13](close[2])OKSHORT = cv1 and cv2 and Cv3 and Cv4IF OKSHORT thenSellshort n CONTRACT at marketSET STOP pLOSS 52SET TARGET PPROFIT 25ENDIFBut i think the code can be improve with less optimisation and more “price action”…
1 user thanked author for this post.
05/17/2018 at 6:10 AM #7066105/17/2018 at 7:56 AM #7067805/18/2018 at 11:11 AM #70752Hi Inertia , Balmora,
I’am playng with your code … I added : tprofit 11 + Nicolas Trailing and doesn’t work on Friday
What do you think ?
PAC MAN + trailing1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162// PAC MAN STRATEGY - PIP HUNTER// SHORT EUR USD (M15)// SPREAD = 0.8 PIP// Modifiche dall'originale : TP 11 , +trailing stopDEFPARAM CumulateOrders = false//DEFPARAM Preloadbars = 4000N = 1 //MINI LOT $1Cv1 = (close < Average[100]) and (Average[50] < Average[50](close[1]))Cv2 = RSI[14](close) <= 28Cv3 = STD[10](close) >= 10.93 * pipsizeCv4 = close <= BollingerDown[13](close[2])OKSHORT = cv1 and cv2 and Cv3 and Cv4if currentdayofweek <> 5 thenIF OKSHORT thenSellshort n CONTRACT at marketSET STOP pLOSS 52SET TARGET PPROFIT 11//SET TARGET PPROFIT 25ENDIFendif//***************************************************************************************trailingstart = 5 // 5, 10, 21 trailing will start @trailinstart points profittrailingstep = 1 //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)>=trailingstart*pipsize THENnewSL = tradeprice(1)+trailingstep*pipsizeENDIF//next movesIF newSL>0 AND close-newSL>=trailingstep*pipsize THENnewSL = newSL+trailingstep*pipsizeENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstart*pipsize THENnewSL = tradeprice(1)-trailingstep*pipsizeENDIF//next movesIF newSL>0 AND newSL-close>=trailingstep*pipsize THENnewSL = newSL-trailingstep*pipsizeENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPEXITSHORT AT newSL STOPENDIF/// -----------------------------------------05/18/2018 at 11:26 AM #7075405/18/2018 at 12:07 PM #70755Thx JR1972.
However ratio between Drawdown/Runup is >15% (high and risky IMHO)
Not to compare stupidly but the one with the EMA filter shared ealier show a ratio <8% which makes it stronger over time (if I may).
Perhaps, % instead of points could be more adaptative over time as well…
05/19/2018 at 9:57 AM #70841You can try this new versus of the code with an exit instruction after 100 units in negative performance :
12345678910111213141516171819202122232425262728293031// PAC MAN - PIP HUNTER// EUR / USD (M15)// By BALMORA74 19.05.2018DEFPARAM CumulateOrders = falseDEFPARAM Preloadbars = 4000//VARIABLESONCE BarShort = 100 //EXIT ZOMBIE TRADEN = 5 // POSITION SIZE $1// STRATEGYCv1 = (close < Average[100]) and (Average[50] < Average[50](close[1]))Cv2 = RSI[14](close) <= 28Cv3 = STD[10](close) >= 10.93 * pipsizeCv4 = close <= BollingerDown[13](close[2])OKSHORT = cv1 and cv2 and Cv3 and Cv4IF OKSHORT thenSellshort n CONTRACT at marketSET STOP pLOSS 52SET TARGET PPROFIT 25ENDIF//EXIT ZOMBIE TRADEIF POSITIONPERF<0 THENIF shortOnMarket AND BARINDEX-TRADEINDEX(1)>= barshort THENEXITSHORT AT MARKETENDIFENDIFHave a nice day !
05/19/2018 at 10:34 AM #7086205/19/2018 at 12:57 PM #70874I thought I’d check out the importance of some of the variables. The one that worried me the most upon first inspection was this one set at 10.93
1Cv3 = STD[10](close) >= 10.93 * pipsizeSo I graphed the results for other potential values:
So it seems that 10.93 is a very optimized value. This is not to say that it will not work into the future (and you would not have lost any money either side of this optimized value but the further future markets move from this ideal value the rougher the equity curves are likely to get I suspect.
A walk forward test with different values showed that earlier on a value around 15 would have been the best value to run with but since then around 9 or 10 would have been better.
One to put on demo and watch I think…..
05/19/2018 at 1:18 PM #7087805/19/2018 at 4:10 PM #7088905/19/2018 at 5:56 PM #7089405/19/2018 at 6:53 PM #70897Just Excel. Arrange the optimized results from low value to high value and then drag the window into Excel and create a chart. Worth doing for every strategy you create just to get an idea of results either side of your perfect value.
IMHO I think that this strategy could be profitable. Whether everyone could stomach the equity curve when it is not as perfect as the perfect variable values makes everyone think the results should be is the bigger question. Going for three years with small losses and no profits is difficult to follow through with despite the fact that year four eventually makes up for all of it. A big starting bank balance and lots of other strategies and a strong psychology will only make up for this. No one strategy is a get rich quick in a straight line possibility unless you are lucky and luck cannot be quantified so should never be a part of a traders portfolio.
Small starting balance = one strategy and trade and hope for luck.
Big starting balance = lots of strategies diversified across markets and trade and make money with some big draw downs.
Sorry – all a bit heavy but a lot of full time paper trading and analysing has led me to this conclusion.
Still this one may work for a while and some may make some money and some may lose some money eventually!
1 user thanked author for this post.
05/19/2018 at 7:08 PM #7089805/19/2018 at 7:58 PM #70900Would you personally use this algorithm and if so with what value the conditions on the RSI and STD?
I would not put any strategy live until it has had at least several months successful forward testing on demo and after that only with minimum stake. money is difficult to make but very easy to lose. It is boring and a difficult thing to just sit on your hands and not have the excitement of real money on the table but if you look back on this forum and find strategies that were posted over a year ago and then backtest them now with the new out of sample period that you have it will be rare that you will find one that you would be happy to trade now. Unfortunately simplicity and ability to withstand massive draw down always seem to work.
I like your strategy because it is simple, it has few variables and is profitable over a large range of variables even if the equity curve is not always positive. What I don’t like is the limited back test period available due to the short time frame chart.
Looking at the graphs I made the values you chose are the optimum and either side is profitable so I would demo test with them and see how things go. I think the amount won per trade is very low and it will not take much for this to become a losing strategy due to this. A slightly off optimum variable value moving forward, a trade or two with increased spread and some slippage is all it needs to turn it to a losing strategy as nice as the equity curve is IMHO.
1 user thanked author for this post.
-
AuthorPosts