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/22/2017 at 5:06 PM #22047
HoraEntradaLimite = 090600
HoraInicio = 090500
123HoraEntradaLimite <span class="token operator">=</span> <span class="token number">080600</span>HoraInicio <span class="token operator">=</span> <span class="token number">080500</span>01/22/2017 at 6:30 PM #22054To see that you think some changes I have made in the program, n = 3 is the contract multiplier. Has an adder: +5 contracts in the event that it succeeds, / 2 in the event of failure. These contracts are multiplied by the multiplier n = 3. that is to say, Starts with 1 * 3 = 3, hits and adds 5 * 3 = 15, the second day will put 18 contracts, if you add another 15 contracts, if it fails divide between 2. N = 3, can be changed by n = 1 to reduce risks.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061// Definición de los parámetros del códigoDEFPARAM CumulateOrders = false // Acumulación de posiciones desactivadaDEFPARAM FlatAfter =173000once ordersize=1HoraEntradaLimite = 090600HoraInicio = 090500if Ordersize>40 thenOrdersize=30endifn=3if Time >= HoraInicio and time <= HoraEntradaLimite thenc1 = open < close-2if not onmarket thenIF c1 THENIF PositionPerf(1) < 0 THENOrderSize = OrderSize/2if ordersize<1 thenordersize=1ENDIFELSIF PositionPerf(1) > 0 THENOrderSize =OrderSize+5if ordersize<1 thenordersize=1ENDIFendifbuy ordersize*n contract AT close+2 stopendifc2= open > close-1IF c2 THENiF PositionPerf(1) < 0 THENOrderSize = OrderSize/2if ordersize<1 thenordersize=1ENDIFELSIF PositionPerf(1) > 0 THENOrderSize =OrderSize+5if ordersize<1 thenordersize=1endifENDIFsellshort ordersize*n contract AT close-1 stopendifendifendifSET STOP ptrailing 5set target profit 1001/22/2017 at 11:20 PM #22070Hi Raul
Your screen shot (attached) does not show any positions below the equity curve, why is this? How many ‘zerobars’ do you have to get the results below?
Do you not at any stage get the tick-tick warning screen attached?
Regards
GraHal01/23/2017 at 9:25 AM #2208401/23/2017 at 9:28 AM #22085Good morning guys
I had gained 40 euros with trailling 5 points, nice way to start a hard Monday.
HappyTrading guys!!!
01/23/2017 at 9:29 AM #22086@volpiemanuele. Contrats! Did you enter with 1 contract? I followed your robot in demo and it did 6 dax short 11532 and closed 11517.
01/23/2017 at 9:35 AM #22087Hello again guys,
I worder if there was a option to create something similar for SP500, it would be something like this i think, but the problem when i try the backtest is that i don’t get any result so i think that i have to change somehing else.
Basicly I only changed the date parameters.
Some else is more than welcome and thanks guys to be patient with me.
123456789101112// Definición de los parámetros del códigoDEFPARAM CumulateOrders = false // Acumulación de posiciones desactivadaDEFPARAM FlatAfter =223000once ordersize=1HoraEntradaLimite = 153600HoraInicio = 153500.......01/23/2017 at 9:40 AM #2209201/23/2017 at 9:41 AM #22095hi,
Should be enough to change the time … tonight I check today can not do it. I start in realwith my version that starts with 1 contract. Thanks
01/23/2017 at 9:43 AM #22096hi,
the different results dipend on slippage.
01/23/2017 at 9:52 AM #22100@volpiemanuele thanks,
I’ll try to attach the files tonight. Basicly this an idea, it would be nice do something like this for some indices or some pairs.
Have a good day
01/23/2017 at 10:09 AM #22102Good morning guys, today has given good result, the important thing is that it results several days in a row winner. To see that such goes what remains of the month. And to see if it returns jonjon and test other robots that I have with 200,000 bars
01/23/2017 at 10:09 AM #22103good idea !!
Another similar idea would be to store the maximum and the minimum of one day of an index and go to the end of the session (in the last 10 minutes). If, 10 minutes before the end of the session is greater than the maximum enter long and vicevesa. What do you think ? If anyone has time now to write the code we can see that the results we have. Thanks
01/23/2017 at 10:37 AM #22110@volpiemanuele good idea as well, it is a diffrent point of view. I need some more time in the day to do everything i like, that’s the big problem we have all of us.
Right now, I keep in the mind create the code for SP500, EUR/USD , EUR/GBP and USD/JPY
The pair EUR/USD open at 08:00 for example, i just need to figure out why only changing the date parameter doesn’t work, I think the code sould be work for any instrument because the conditions are the same for any instruments regularly.
Regards
01/23/2017 at 10:53 AM #22113What’s your start capital with the code you are using?
-
AuthorPosts
Find exclusive trading pro-tools on