Breakout M5 / H4 Nasdaq
Forums › ProRealTime English forum › ProOrder support › Breakout M5 / H4 Nasdaq
- This topic has 96 replies, 9 voices, and was last updated 3 years ago by murre87.
-
-
11/10/2021 at 7:57 AM #18135111/10/2021 at 9:01 AM #18135411/10/2021 at 9:21 AM #181357
A version that I didn’t share, but that is based on the description from this post onwards. Plus a trailing SL.
https://www.prorealcode.com/topic/breakout-m5-h4-nasdaq/page/4/#post-181220
11/28/2021 at 2:36 PM #18243811/28/2021 at 3:32 PM #18243911/29/2021 at 8:35 AM #182452“You are welcome to contribute your ideas.”
Well put, I’ll start trying out a short version and post it here if I have any success. Thanks again for sharing the initial idea.
1 user thanked author for this post.
11/29/2021 at 9:40 AM #182457No coder but Ill make it a try 🙂
Feel free make this version better:
Test Breakout H4 Nasdaq M5 Short123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103//Break-H4 Nasdaq M5//================================================DEFPARAM CUMULATEORDERS = falsedefparam preloadbars = 5000//Risk ManagementPositionSize=1timeframe(4hour, updateonclose)barCount = barIndexD1 = lowD2 = (Close < Open) //greenD3 = (Close > Open) //redD4 = (low < low[1])//lowerhighD5 = (low > low[1])//higherhigh//MACDLiniex = MACDline[12,26,9](close) > 0MA5xx = Average[3,1](typicalprice) //closeMA10xx = Average[10,1](typicalprice) //closeMA15xx = Average[15,1](typicalprice) //15,1 closemyshortx = MA15xx < MA15xx[1]timeframe(default)once tradeOn = 1if intradayBarIndex = 0 thentradeOn = 1endiftradeBar = barCountif not onMarket and tradeBar<>tradeBar[1] thentradeOn = 1endif//VolaititätfilterAvgRange = average[20,0](range)TradeOFF = range > (AvgRange * 3) //no trading if the current range > twice its average //3// trading windowONCE BuyTime = 080000ONCE SellTime = 215500// position managementIF Time >= BuyTime AND Time <= SellTime THENIf close crosses under D1 and myshortx and D3 and tradeOn Then //and not c5sellshort PositionSize CONTRACTS AT MARKETSET STOP %LOSS 0.9 //100SET TARGET %PROFIT 1 //125tradeOn = 0ENDIFIf close crosses under D1 and myshortx and D2 and tradeOn Thensellshort positionsize CONTRACTS AT MARKETSET STOP %LOSS 0.8 //100SET TARGET %PROFIT 1 //125tradeOn = 0ENDIFendif////////FOR STOPLOSS MANNGEMENTstartBreakeven = 35PointsToKeep = 52once breakeven = 1//1 on - 0 off//reset the breakevenLevel when no trade are on marketif breakeven>0 thenIF NOT ONMARKET THENbreakevenLevel=0ENDIF// --- BUY SIDE ---//test if the price have moved favourably of "startBreakeven" points alreadyIF LONGONMARKET AND close-tradeprice(1)>=startBreakeven THEN//calculate the breakevenLevelbreakevenLevel = tradeprice(1)+PointsToKeepENDIF//place the new stop orders on market at breakevenLevelIF breakevenLevel>0 THENSELL AT breakevenLevel STOPENDIF// --- end of BUY SIDE ---IF SHORTONMARKET AND tradeprice(1)-close>startBreakeven THEN//calculate the breakevenLevelbreakevenLevel = tradeprice(1)-PointsToKeepENDIF//place the new stop orders on market at breakevenLevelIF breakevenLevel>0 THENEXITSHORT AT breakevenLevel STOPENDIFendifif time = 220000 and dayofweek=5 and (PositionPerf * PositionPrice / PipSize) >= 5 then //EXITSHORT AT Marketendif11/29/2021 at 10:18 AM #18245811/29/2021 at 10:21 AM #18245911/29/2021 at 10:35 AM #18246011/29/2021 at 11:28 AM #182462witch cind of trailing stop?
once trailingstopPC = 1 // Percentage TS, includes break even function
once enableBreakEven = 1 //Break even, can be used in conjunction with ATR TS
once trailingstopATR = 1 //ATR TS
once trailingstopRTS = 1 //RobertoGozzi trailing stop11/29/2021 at 11:38 AM #18246711/29/2021 at 12:39 PM #182470Here is my 1st attempt NASDAQ Short with this strategy. I created in the M5, but maybe even better in M3 or even M1. I have to say, I am positively surprised how well it seems to work. Maybe another work.
@nonethleess: Do you have time to try your knowledge here again?11/29/2021 at 1:47 PM #182473Maybe one more question for the great masters … Nicolas? Robertogozzi? If you manage entries from large time units with a trailing stop … which TF is best used for this? M1… 5? Is more data history better or faster reaction to a trailing stop?
11/29/2021 at 2:05 PM #182474 -
AuthorPosts
Find exclusive trading pro-tools on