intraday DAX strategy 5min mini1€ spread 1
Forums › ProRealTime English forum › ProOrder support › intraday DAX strategy 5min mini1€ spread 1
- This topic has 502 replies, 34 voices, and was last updated 4 years ago by Asteriks.
-
-
01/21/2017 at 1:28 AM #21930
Let’s try this code:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// Definición de los parámetros del códigoDEFPARAM CumulateOrders = false // Acumulación de posiciones desactivadaDEFPARAM FlatAfter =172900once ordersize=1HoraEntradaLimite = 090600HoraInicio = 090500capital=10000+strategyprofitn=capital/5000if Ordersize>50 thenOrdersize=10endifif Time >= HoraInicio and time <= HoraEntradaLimite then// Condiciones de entrada de posiciones cortasc1 = open < close-2if not onmarket thenIF c1 THENIF PositionPerf(1) < 0 THENOrderSize = OrderSize-1if ordersize<1 thenordersize=1ENDIFELSIF PositionPerf(1) > 0 THENOrderSize =OrderSize+2if ordersize<1 thenordersize=1ENDIFendifbuy ordersize+n shares AT close+2 stopendifc2= open > close-1IF c2 THENiF PositionPerf(1) < 0 THENOrderSize = OrderSize-1if ordersize<1 thenordersize=1ENDIFELSIF PositionPerf(1) > 0 THENOrderSize =OrderSize+2if ordersize<1 thenordersize=1endifENDIFsellshort ordersize+n shares AT close-2 stopendifendifendifSET STOP ploss 10set target profit 501/21/2017 at 7:23 AM #2193301/21/2017 at 8:21 AM #21934How come the latest strat you posted gives a worse G/L-ratio then the earlier one you posted? (Gives better totalt result aswell, more gains)
Whats the diference?01/21/2017 at 9:59 AM #21943Hi,
first of all i have optimize the maximun lot..I have insert 18 instead of 38. Thanks
01/21/2017 at 10:05 AM #21944Alright,does that optimize the strategy? how and why?
01/21/2017 at 10:20 AM #21945Live and backtest result of Raul 1st version in libary were different with v10.2
Live short on yesterday 8:05 at 11555.2, and close at 11560.2, result was lose.
But backtest result was win, why cause this situtation? V10.2 problem? really confuse….
01/21/2017 at 10:31 AM #21946hi,
I think that in real we must consider slippage that in backtest not there. I hope not to bring the strategy at the loss in the long run. In this moment there aren’t other parameters to optimize. If I have other idea i send other post. Thanks
01/21/2017 at 10:47 AM #2194701/21/2017 at 11:48 AM #21950when backtesting you have no problem with execution of the trade you get filled instant
but maybe in real trading you get a small delay from signal to execution specially around open and news when volatility is high, price can move much in a second
and sadly when trading with real money it can be even worse
01/21/2017 at 11:57 AM #21951@ALCO
Yes, now i set 38 max lots. The strategy from me it’s efficient because the system increment the lots only if there are funds in the account created by the strategy itself. Then the maximum number of lots to choose also depends on the amount of risk that one wants in addition to the optimization of the same strategy.
01/21/2017 at 12:38 PM #2195201/21/2017 at 2:22 PM #21957Hi volpiemanuele,
Good job, I’ve modified the code a little, to see what you think:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152// Definición de los parámetros del códigoDEFPARAM CumulateOrders = false // Acumulación de posiciones desactivadaDEFPARAM FlatAfter = 173000once ordersize=1HoraEntradaLimite = 090600HoraInicio = 090500Margin = 60Lottfree = 0orderSize = max(1,5+ROUND((strategyprofit-lottfree)/Margin))ordersize=min(40,ordersize)n=1if n>=10 thenn=10endifif n<=1 thenn=1endifif Time >= HoraInicio and time <= HoraEntradaLimite thenif not onmarket thenc1 = open < close-2*pointsizec2= open > close-1*pointsizeIF PositionPerf(1) < 0 THENn = n-1ELSIF PositionPerf(1)> 0 THENn =n+2endifordersize=max(ordersize,1)IF c1 THENbuy ordersize+n contract AT close+2 stopendifIF c2 THENsellshort ordersize+n contract AT close-1 stopendifendifendifSET STOP ptrailing 501/21/2017 at 2:30 PM #2195801/21/2017 at 3:27 PM #21960Very Good. Similar drowdown, equal % profit but much gain in order to much loots trade. I prefer to start with my version because I want to start with 1 lot. Your version start with 6 lots.
Do you trade in real account with this system ? I start yesterday and I loss 0,98 euro. Starting from monday I trade with my version posted with max 38 lots.
Tanks a lot
01/21/2017 at 4:04 PM #21962Volpiemanuele, I have a question about your risk management. As of January 22, 2016, with a profit of about € 2250, it always puts 38 contracts. From what I understand, he adds a contract by earning 60 euros (2250/38 = 60). And if it drops 60 euros, a contract remains. That is, from 2250 euros of profits, will always use 38 contracts. Do not you think that if with 2,250 euros of benefit you can risk using 38 contracts, if you reach 15,000 euros of profits could you use more than 38 contracts?
-
AuthorPosts
Find exclusive trading pro-tools on