EURUSD Mini overnight trading strategy 3 minutes TF

EURUSD Mini overnight trading strategy 3 minutes TF
Good afternoon,

This strategy is designed for the Eur / Usd mini 1 € with a 3-minute timeframe and a spread of 0.6 pips. It only works in the evenings. Let's see what you think and if anyone is encouraged to improve it. ;) I have already put it with real money for a month and the backtest corresponds to what the robot does in real.

Buenas tardes,

Esta estrategia esta diseñada para el Eur/Usd mini 1€ con un timeframe de 3 minutos y un spread de 0,6 pips. Exclusivamente funciona por las noches. A ver que os parece y si alguno se anima a mejorarlo. ;) Ya lo tengo puesto con dinero real desde hace un mes y el backtest se corresponde a lo que hace el robot en real.

DEFPARAM CumulateOrders = true // Acumulación de posiciones desactivada
DEFPARAM FlatAfter = 080300
// No se abren nuevas posiciones después de la vela que se cierra a las 5:15 p.m.
HoraEntradaLimite = 070000
// El análisis de mercado empieza en la vela de 15 minutos que cierra a las 9:30 a.m.
HoraInicio = 010000
IF ((Month = 6 AND (Day = 23 or day=24))or (month=11 and day=9)) THEN
 DiaTrading = 0
 DiaTrading = 1

capital= 3000 + strategyprofit
posicion= capital/3000
if posicion>1then
if posicion<1then

if Time >= HoraInicio and time < HoraEntradaLimite and diatrading=1 then
// Condiciones para entrada de posiciones largas
 indicator1 = ExponentialAverage[35](close)-2*std[5](close)
 c1 = (close < indicator1[1])

 indicator2 = RSI[11](close)
 c2 = (indicator2 < 30)

 IF c1 AND c2 THEN
  buy posicion CONTRACT AT MARKET

// Condiciones de entrada de posiciones cortas
 indicator3 = ExponentialAverage[35](close)+2*std[10](close)
 c3 = (close > indicator3[1])

 indicator4 = RSI[5](close)
 c4 = (indicator4 > 70)

 IF c3 AND c4 THEN
  sellshort posicion CONTRACT AT MARKET

 atr = AverageTrueRange[49](close)
 stopus = atr*300000
 TP = atr*80000

 SET STOP pLOSS stopus
Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Nicolas • 27 days ago #

    Thank you Raul for sharing your strategy with the community. Every code sharing is appreciated. I have successfully backtest your strategy with new backtest engine of the new PRT version, and results are accurate. I found that you use averaging down to compensate loosing orders, even if you cut all orders at the beginning of a new day, the drawdown of the money equity can be huge sometimes. Maybe you could de-leverage a bit or avoid stacking orders at each new candle if the takeprofit was not met at the first glance. This is just my own thoughts by now, will be happy to discuss more. 

  2. Raul Vg • 27 days ago #

    Thanks Nicolas, I’m sorry, my English is bad, I will translate it in google hehe. In the code, I have put that it does not operate the night of the brexit or of the elections of the usa,
    These days better not have automatismes. In the code you can change the number of contracts as the benefits of the strategy increase, currently limited to a contract.

  3. Joachim Nilsson • 27 days ago #

    Great code but those drawdowns is huge! 

  4. mbaker15 • 24 days ago #


    Could somebody translate this code into english for me?

    Regards, Mark

    • Nicolas • 24 days ago #

      I think Google Translate can do this job for you 🙂

  5. iramirez55 • 24 days ago #

    Hola, gracias primero de todo.

    Por la mañana entre 7 y 12 también fuciona.


  6. Jesús • 23 days ago #

    Hola Raul VG, muchas gracias por compartir la estrategia, parece muy interesante el concepto.



Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Raul Vg It is true, I had forgotten, for the current configuration is necessary a capital of 3000 € ...
akira220984 I used this on a demo IG account today and used the following values: DEFPARAM FlatAfter =1...
akira220984 I used this on a demo IG account today and used the following values: DEFPARAM FlatAfter =1...
Jake26 Thanks for sharing your work with this code, Doc. Impressive results in backtests with shor...
Doctrading Hello, Actually I'm not trading this strategy. I'm looking to make a good automated tradin...
Rohan Hello Doctrading,  I am also very interested in the Ichimoku (I am trading it but discretio...
Doctrading Interesting concept, good work !  
verdi55 Thank you. This is mainly to show the concept, but I would not trade with this system as it ...
Nicolas I'm sorry, upload of attachments is actually not possible in the comments.
PRT_kok hi Verdi, nice try...I've developed a similar strategy but got poor profit factor...what's y...
verdi55 The profit factor depends very much on the brick size AND on the position of the first bar o... The code dose not work   Syntax error: line 2, character 12One of the following chara... why do I get error ond line whit DAX? Eihter cod works. Can you chare the file?
Elsborgtrading Hi Triss. the File is in the post for download. There is nothing wrong with the code. Your e...
2 months ago
ALE CiaoGuadagno.
alemaliz Ciao Ale scusa se ti disturbo ancora possiamo sentirci in privato per un chiarimento su ques...
ALE Ma certo nel mio profilo trovi le info
Nicolas Hello DonDollar, and thanks a lot for your contribution to our community :) A "keep it simp...
DonDollar Ni Nicolas, thanks for the comment. I started with a 3000$ Position and 1 Pip Spread. I fo...
DonDollar Stupid me, it is indeed 1 POINT Spread....  
mbaker15 How is this system performing live guys? Has anyone been running it?
ellejoe Hi Ale, can you please share your live results and updated version with us? Was this strateg...
ALE Hello ellejoe,since 1th november 2016,I can confirm probacktest results, I cant run it in li...
DANY I did it on demo account; it's too dangerous for mea and I can not resist psychologically  ....
demoz How can a demo account be dangerous? Did you have it run live (on a demo account for exampl...
DANY Yes, I mean that I tried on a demo account for 2 months and it had work fine, like the BackT...
Nicolas Hi David, thank you for the contribution. I have tested the strategy through 200.000 bars an...
David Thanks Nicolas. I assumed that this would be the case when back tested further. 
Dimi.A Awesome mate.
ALE Hello Luca,no this strategy is overfitted. 
traderfred Hello ALE is that mean you are not going to use it live? I don't understand what is "overf...
ALE Hello Traderfed, because it run many operations over the past three years, instead of havin...
3 months ago
enzo_52 Hi Ale, so you have the same results with german 30 mini 1e cash TF 1h?  
ALE no, only with TF 15m
enzo_52 Grazie tante, Thanks so much 
3 months ago
ALE @Nicola Nicolas thanks for your kind attention, the same indicator used with different set c...
miguel33 In piena sintonia . 
Ernesto1 Grazie Ale per aver condiviso con noi il tuo indicatore  P.A.B. aspettiamo il tuo script s...
4 months ago
Matriciel These are the moving averages offset on the vertical axis.
Fabio Anthony Terrenzio It's incredible, this little offset make big difference! dunno why..
PRT_kok Amusante cette petite strat : elle est positive sur 200000 ut mais tu obtiens un DD de 78% d...
4 months ago
Cosmic1 Hi Yngve, Amplitude relates to the range of the price action for the given times stipulated...
GAMMA I try as per your advise and change the time to usa time still no luck, may be I am doing so...
Cosmic1 Post the code you are using, will try and figure it out. What broker?
Elsborgtrading Hi Nicolas, and thanks for updating the file. When I backtest the code now I get a complete...
Elsborgtrading Hi Nicolas. I made a mistake. a FTSE chart had sneaked under the DAX and when backtesting I ...
Nicolas "set stop loss" are individual for each order with IG.
4 months ago
Cosmic1 Hi Vish, Yes it was a good Thursday and Friday where between DAX and DOW breakout +800 point...
JakeDB I cannot get my time conversions correct for Sydney Australia to get any data for this code....
Cosmic1 @JadeDB What times are you putting in?
MikeGC Hi Max, Many thanks for your input. The 5 bar look-back only checks that the condition was...
MaxT Aha! I think that was when it was entering in my tests - on a change so I guess it is workin...
Alco Hi Mike, Thanks for your great code! It is working great on backtests, but I want to test it...
reb ok thks for the info Kenneth
Kenneth Kvistad Hi everyone. I tried to upload a screenshot of my live acc. That i started around 20july an...
demoz Keep us updated!
grizzly Great work - i use the cloud in some of my auto systems and very reliable.
Dymjohn Thanks for the comment grizzly, I like the look of your position sizing coding but won't use...
Elsborgtrading Hi John, and nice to see you took the Ichimoku a step further:-) One thing though, I think t...