Stochastic EURUSD 5min strategy

Stochastic EURUSD 5min strategy

Hello all!,

I wrote this code making probes with the stochastic indicator:

  • Long positions are opened when stochastic is in oversold several candles, price is over a moving average and there is a cross between the “K” and “D” lines.
  • Short positions are opened with the opposite conditions.

Parameters are optimized for 5min EURUSD.

Results are got with 1.2 spread and 1000€.

My conclusion is the strategy could be positive but I think parameters are overfitted to get a good profit curve.

Feel free to comment, change, probe and improve the code!!

Andrés.

 

Share this

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?

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

  1. volpiemanuele • 05/20/2016 #

     Hi,
    I try in EURUSD mini on IG market and It don’t run. Why ?
    Thanks

    • volpiemanuele • 05/20/2016 #

      I correct. It run but If I start the backtest from 1 january 2015. If I want to back starting from 1 January 2016 don’t run. why? Tanks

  2. Andres • 05/20/2016 #

    Hi volpiemanuele,
    The problem is the high number of periods of the exponential average, 50000 (about 6 months). The program it doesn’t start until get this number of candles.
    The solution would be to use
    DEFPARAM PRELOADBARS = 50000
    but I’m trying now and It doesn’t works, I don’t know why.

  3. Doctrading • 05/20/2016 #

    It works on ProRealTime CFD, but backtest begins since May 2014

  4. alex224 • 05/20/2016 #

    Hola Andres, buen trabajo. Algun problema por usar la estrategia con acciones en time frame diario? Valdrian los mismos valores de variables?
    Lo de la media de 50000 periodos no lo acabo de ver
    Saludos

  5. Andres • 05/20/2016 #

    Hola Alex, no lo he probado en otros timeframes, pero con esta configuración específica no creo que funcione porque están muy ajustados los parámetros para este subyacente y para este timeframe.
    La media simplemente es un filtro para entrar a favor de tendencia.
    Por sí sola no es una estrategia que usaría en real. Quizá complementándola con otros indicadores/estrategias sí.
    Un saludo.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Francesco78 does anyone still use this strategy? Seems like it doesnt work anymore
GraHal Hi Francesco78   doesn't work as in not great results? I was just going to give it another g...
GraHal Works good on the DAX @ 30 Sec TF over 100,000 bars ... maybe everything has speeded up by a...
verdi55 At least there should be some moving average that has also reverted into the opposite direct...
verdi55 In addition to the moving average, wait until at least one bar is completely back inside the...
rama This works excellent on range bound I tried , give 90% win rates on dax , 3 min chart. can s...
Doctrading Bonjour, Tu as raison, il faut faire attention à la fiabilité de certains backtests. Le pro...
Duccio Hi DocTrading, I've backtested your strategy and I notice that 75% of position have been cl...
Doctrading Hello,  No, I don't use this strategy on real account, because my own strategies (that you ...
Doctrading Maybe you can also change the hourly beginning of the day (not 23PM but 12AM, OOH in french)...
Duccio Hi Doctrading,there is a way to control the max loss of the positions in this code? For exa...
Doctrading Hello, Yes, there is a command I think, but I don't know it. Nicolas knows it. You can als...
Nicolas
9 years ago
lokbuscas Or in weekly??
Nicolas I don't know, you should make your own studies.
lokbuscas Ok thanks Nico
Nicolas
9 years ago
Vinks_o_7 great, thanks Nicolas !
Vinks_o_7 argh...still nothing even with 10 000 bars on daily or hourly basis...
Vinks_o_7 ok now : had to refresh the indicator.

Top