DAX 1Min Long 0930 Breakout…..nothing works..
Forums › ProRealTime English forum › ProOrder support › DAX 1Min Long 0930 Breakout…..nothing works..
- This topic has 18 replies, 9 voices, and was last updated 7 years ago by
Onkeltuga.
-
-
04/05/2018 at 10:19 AM #67220
Hello Guys,
I have been using Pro Realtime for over a year now and the only thing that happens is that I loose Money.
I have used 1 min timeframe the most, perhaps that´s wrong and a difficult choise?
Best timeframe for a newbie?
Breakout or cross over strategy?
I have used top-bottom = amplitude as stop loss/target profit. Used the “Greedy row” you can see in the code but it doesn´t work.
I have used the trailing code by Nicolas but it´s doesn´t matter….I Always loose.
Pro Realtime seems to have it´s limitations, I get the “Tick by Tick limit reached” a bit to often. :/
The code below is a DAX 1Min Long 0930 Breakout strategy, looks fairly good in backtest but not in reality, any advice would be nice. (Warning! Don´t use the code below)
DAX 1Min 0930 Breakout12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970//-------------------------------------------------------------------------Defparam cumulateorders = FalseDEFPARAM PreLoadBars = 5000TradingHour = Time >= 093000 AND Time <= 173000n = 1IF Time = 093000 THENtop = highest[30](high)ENDIF//Trend directionindicator70 = Average[1](close)indicator71 = Average[3](close)indicator72 = Average[7](close)indicator73 = Average[8](close)indicator74 = Average[41](close)indicator75 = Average[51](close)indicator76 = Average[64](close)//Remove wrong setups before position at c10indicator100 = Average[5](close)indicator101 = Average[3](close)indicator102 = Average[4](close)indicator103 = Average[1](close)indicator104 = Average[28](close)indicator105 = Average[4](close)indicator106 = Average[34](close)indicator107 = Average[6](close)//Distance not to bigMADist = (indicator75-indicator76)<=6.2c10 = (indicator100>indicator101) or (indicator102>indicator103) or (indicator104>indicator105) or (indicator106>indicator107)//Trend directionc1 = (indicator70>indicator71) and (indicator71>indicator72) and (indicator72>indicator73) and (indicator73>indicator74) and (indicator74>indicator75) and (indicator75>indicator76)//Directionc2 = (indicator70>indicator70[1]) and (indicator71>indicator71[1]) and (indicator72>indicator72[1]) and (indicator73>indicator73[1]) and (indicator74>indicator74[1]) and (indicator75>indicator75[1]) and (indicator76>indicator76[1])indicator1 = RSI[14](close)c3 = (indicator1>=54.7) and (indicator1<=66.95)indicator2 = Volumec4 = (indicator2>=60) and (indicator2<=315)indicator3 = MACDline[12,26,9](close)c5 = (indicator3 >=1.21) and (indicator3<=4.77)//Not to much movement before positionR1 = Range[3]<=9 and Range[5]<=13 and Range[6]<=9//Limit length of upper tailHTail = (open<close) and abs(high-close)<=5.7IF MADist and HTail and R1 and c1 and c2 and c3 and c4 and c5 and not c10 and TradingHour THENbuy n contract at top stopENDIF//Added Greedy Row//IF LONGONMARKET AND (BarIndex-TradeIndex(1))>=0 AND (close-tradeprice(1))>=1.01 THEN//SELL AT MARKET//ENDIFIF LONGONMARKET AND (TIME>=225500) THENSELL AT MARKETENDIFset stop ploss 9.01set target pprofit 9.9104/05/2018 at 11:43 AM #67235After demoing several 1-minute stategies on different instruments I have dropped them and now I am only testing strategies on TFs no less than 30 minutes and they seem to work better.
Before running them on a real account I want to successfully demo it for 6-12 months.
I can only suggest to demo your strategy for a longer period before going real!
04/05/2018 at 11:55 AM #67250Hi ! I think bigger timeframes are best to begin with (but that’s my opinion).
I don’t see any trailing stop in your code…
Did you really backtested your code ? Cause I tested it and it’s not good… see attached.
What can’t we use the code below ? Could you give us the code you actually use ?
04/05/2018 at 11:59 AM #67252surely below won’t work (from your code) it has to be a whole number of points?
12set stop ploss 9.01set target pprofit 9.91Looks loads better with this
12set stop ploss 45set target pprofit 10I think I’ll give it a go Live! 🙂 but I will watch it’s every move … as always!
04/05/2018 at 12:45 PM #6727704/05/2018 at 1:10 PM #67304Hi, and thanks for all your quick replies.
Robert, I Think I will try to make a strategy for higher timeframes as well, but it feels like the higer timeframe you have the more I can loose. :/
Irioton, In this code I didn´t use trailing, but i have in the passed. Very nice to set a breakeven level at some point to secure profit.
GraHal, Are you sure you want to to do this? Or do I set my stop loss/target profit the wrong way? It feels like it should be a 1:1 ratio between them but that may not be the best practical solution in the real World.
Nicolas, Yes, it is backtested very heavliy, perhaps a bit to much. It seems to me that the backtest tool makes it look good, it picks the history of trades that it wins and then when I run it live it doesn´t behave the same way. Perhaps this is why I should have a bigger stop loss?
04/05/2018 at 1:18 PM #67306It seems to me that the backtest tool makes it look good, it picks the history of trades that it wins and then when I run it live it doesn´t behave the same way.
Hmm I think you’d better explore discussions about equity overfitting, to understand why it fails. Optimizing is like changing the past the way you want (like a time machine), but if you break the machine, future days will never be so sweet.. (I think we might be trapped in a temporal loop here 😆 )
04/05/2018 at 5:15 PM #67325Well, I have looked in to this and my conclusion is that I use to low stop loss or to low volume, or both, or just to low stop loss.
My strategies seems to be fairly ok by just increasing the stop loss to let´s say twice of what I use to have it to. The problem is perhaps me, to much emotions that don´t want to loose, to much chicken in the code.
I have another strategy like the one above but for short trades. If I set the stop loss to 35 and target profit to 10 the backtest gives a 100% win on it. But it this the way to go?
According to my own amature eyes the market seems to reach a breakoutpoint, then it goes back for a while and later on it reaches the point again and even goes over it, then down, then up even more, etc, etc…….and sometimes it´s a true breakout that flies like a rocket… and…… if my thoughts are right, I will (hopefully) only loose when the market have a real trend turn from bear to bull or vice versa.
I mean, it can´t be that bad if GraHal just change the stop loss and then let it run live, or is he the Daredevil in this forum?
04/05/2018 at 5:45 PM #67329GraHal just change the stop loss and then let it run live, or is he the Daredevil in this forum?
Or the madman!? 🙂
The difference is that, recently, I have started to use Auto-Systems as trade entry points and then immediately (screen or on phone app) assess … would I trade this in manual? If the answer is Yes then I let the Autotrade run for while especially if in profit.If I wouldn’t enter a manual trade at that point and it goes to a loss quickly then I exit with maybe 5 to 10 point loss.
So No, not a daredevil at all, scaredy pants actually … scared of long drawn out drawdowns!? 🙂
GraHal
1 user thanked author for this post.
04/05/2018 at 6:43 PM #6734004/05/2018 at 7:06 PM #67343So, a bigger stop loss isn´t recommended then?
I would generally have manually exited / closed the AutoSystem way before it gets anywhere near a big stop loss, but it’s good to have a stop loss as a fail safe for when disaster strikes (instant big spike due to news, war etc).
04/06/2018 at 7:12 AM #67384Hi,
I create an simple moving average time frame daily for intraday time frame (hopefully come multiframe capabilities soon)
for me works very well as a filter for detects the main trend. Hope it works for you as well.
https://www.prorealcode.com/prorealtime-indicators/daily-data-intraday-timeframe/
04/06/2018 at 7:21 AM #67386The more time you spend staring at candles going up and down and testing theories on them the more you realise that the shorter the time frame the greater the noise and the harder it is to make a profit – especially as most of the noise is within the spread difference! You also start to realise that stops do more harm than good. Give a trade some freedom to move and don’t fight the long to mid term trend and work in only longer time frames and you are far more likely to be profitable than trying to zip in and out of a noisy fast moving market for a few pips while using tight stops. Unfortunately you need a bigger starting balance to trade longer time frames with loose or no stops but at least you will be more likely to end up with more money rather than less. IMHO
04/06/2018 at 8:10 AM #67396this system looks not bad. you have an idea for a short version of it?
04/06/2018 at 10:12 AM #67410I second Vonasi on his opinion that shorter timeframes are too noisy and that the trades need some space to grow. When I started I also thought it would be “safer” on shorter timeframes with tighter stops and so on but nowadays most (if I think little closer almost all) of my successful strategies run on daily bars.
-
AuthorPosts
Find exclusive trading pro-tools on