Stochastic Gold Trader

Stochastic Gold Trader

I have been trading Gold more than usual recently and made an interesting observation regarding the trend waves moving very much in sync with the stochastic. So this prickled my curiosity enough to quickly code-up a strategy based on my observation. And despite the fact that I purposefully fine tuned (aka curve fitted) the stochastic parameters I still think the result is rather promising considering there really isn’t that many essential moving parts outside of the stochastic settings. Also as a professional PRT developer I no longer have the liberty of sharing as many strategies to the community as before, so I sincerely hope there is something that someone here might find useful.

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. avatar
    Anonymous • 08/14/2020 #

    Hi Juanj,
    Thank you very much for sharing, at first glance this looks great. I look forward to testing further!
    Thanks

  2. Gaspare • 08/14/2020 #

    Ottimo TS grazie Juanj
    Si puo’ adattare anche agli indici? Magari ci puoi suggerire qualche dritta per il mini SP500?
    Grazie

  3. pranik • 08/14/2020 #

    Hi juanj, I don’t undestand line 39 on the uploaded code. There is a stoch -1 on the if statement. Maybe you wanted to write stoch = -1.
    Thanks

  4. juanj • 08/14/2020 #

    @Pranik that is exactly what I did? Line 39 looks at stoch = -1 and line 45 looks at stoch = 1

  5. juanj • 08/14/2020 #

    The ‘=’ sign probably got lost during the copy/paste. It is always better to rather import the ITF file to avoid these formatting issues.

  6. bertrandpinoy • 08/14/2020 #

    hi Juanj, thank you. TF 1 h?

  7. pranik • 08/14/2020 #

    Hi @Juanj, I imported itf file and the ‘=’ sign is missing. If I put stoch = -1 as you suggest the results are very different from yours. If I remove ‘=’ sign the results are the same.
    Thanks

  8. Poiloulou • 08/14/2020 #

    The question is how the program understand “Stoch -1”. Because if we remove it, or if we put Stoch = -1 it is not working at all.

  9. pranik • 08/14/2020 #

    If stoch -1 then
    is equivalent to
    if stoch -1 <> 0 then

  10. Gaspare • 08/14/2020 #

    io l’ho messo live e qualcosa non va: apre posizioni short, in accordo con lo stocastico che punta al ribasso, mentre sul backtest apre posizioni long.
    Per adesso sono posizioni positive

  11. Gaspare • 08/14/2020 #

    ho inserito una loss di -25 e un profit di +50 per cui dopo l’ottimizzazione i parametri dello stocastico sono 22 5 4

  12. juanj • 08/14/2020 #

    Just be careful, this strategy has not been tested live

  13. delynot • 08/14/2020 #

    Superbe stratégie, elle marche plutôt bien en H1 et H4. Merci 😉

  14. avatar
    Anonymous • 08/14/2020 #

    Hi – I’ve had a lot of fun testing this out, and trying various iterations and tweaks. Thank you once again for sharing. A nice little strategy in an asset class I don’t currently trade. A useful stop loss mechanism is what I am currently looking to incorporate, along with the ability to exit the market if the direction changes to that of the current trade. Will share when I have something that works.
    Thanks once again, and keep posting!

    • Lespa212 • 08/14/2020 #

      Hi Samsampop,
      are you using this strategy? did you add a SL and an exit in case of a trend reversal? I will be happy to see any improved version of this nice starting point .
      Thank you.

  15. Jan • 08/14/2020 #

    This strategy is more than 90% in the market, do you reckon overnight interest costs in your strategy ?

  16. juanj • 08/14/2020 #

    Hi Jan, I did not include swap fees for this strategy as it is primarily a ‘concept strategy’. I do not personally trade this strategy live neither do I intend to,

  17. jebus89 • 08/14/2020 #

    heres a pic of 200K bars: https://imgur.com/JNKCJ6u

  18. bibiyanki • 08/14/2020 #

    doesn’t work , not start

  19. philnunn14 • 08/14/2020 #

    hi!
    Can you confirm which gold market, Minutes and units?
    On pro real time?

  20. Jan • 08/14/2020 #

    Thanks for sharing ! I tested it on the hourly graph, it gives very good profits, but also huge drawndowns. I tried a percentage stoploss, that reduces losses per trade, but that also reduces overall profit and % winners significantly.

    • annepfw • 08/14/2020 #

      Hello Jan, i like to have your little programm of stoploss. thank

  21. LaurentBZH35 • 08/14/2020 #

    It certainly need an other filter to run less time than 90% on market.
    Any suggestion ?

  22. CLAUDIOZ8 • 08/14/2020 #

    Hi Juanj, thank’s. good work.

  23. jissey • 08/14/2020 #

    Bonjour Juanj , avez-vous un programme qui tourne en réel depuis au moins une année et avez-vous fait un backtest pour comparer les résultats ? Pour moi, je trouve qu’il y a des différences entre un backtest et la démo et encore une différence entre la démo et le réel, avez-vous constaté cela? Merci pour votre réponse, cordialement, jc

  24. jissey • 08/14/2020 #

    bonjour Juanj , avez-vous un programme qui tourne en réel depuis plus d’un an et comprer les résultats avec un backtest ? Merci pour votre réponse, cordialement

  25. juanj • 08/14/2020 #

    Hi Jissey, your observation is correct. There are most certainly differences between the backtest, demo and live. Please see the screenshots attached to my 2 strategies listed in the marketplace. They contain live results. Sometimes I update strategies after a few months meaning it is rare that I run the same version unchanged for a year.

  26. superfalcio • 08/14/2020 #

    Hello, on the 2h timeframe I got a better performance in terms of win% and profit factor. I just optimized some parameters of stochastic.

  27. Jiankyr82 • 08/14/2020 #

    Juan thanks for sharing, I had played with it few days, as also try to catch up on my pro-real-time coding skills. Your codes are always great training. The philosophy’ of this strategy for gold is impressive good- that I noticed is the strategy is very effective on upside gold waves when gold goes up while work terribly on downsize waves. That I try to add if a supper trend flag – till now tried couple. I believe even if the simple pro-real-time super trend(3-10) may work, if solve it I will share it with you.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+28 more likes

Related users ' posts
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
AntoGH Bonjour peut-on backtester cela ? Et si vous l'avez fait pourriez vous nous donner le code.....
Nicolas désolé c'est un oubli de ma part, tu peux supprimer cette ligne, elle n'est plus utile dans ...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je suis en effet avec PRT 10.3 , et j'ai bidouil...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Pensera Bravo Nicolas ! Tu es en quelque sorte l’inventeur de Metascore…(oups je viens de lire jusqu...
Nicolas Dans un but d'investissement pure, et non spéculatif.
Enigma08 Hi Juanj. I am new to ProrealTime and I am trying to program the Proscreener. I want the Pro...
woktrade Superbe !
Vonasi An updated version with a bug fix can be found here: https://www.prorealcode.com/topic/dis...
snucke hey Vonasi is it possible you can help me get this indicator to show how much a market mo...
kbrooks323 Hello would someone be willing to release a scan code for this? that would be helpful as I s...
Nicolas You can do easily this screener by using the assisted creation tool. It would take you about...
kbrooks323 I just figured it out thanks!
Vinks_o_7 Vonasi you're a beast !!! ;-)))
pableitor Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
Nicolas
5 years ago
KDJ
KDJ
3
Indicators
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
Sejibi Bonsoir, En remplaçant percentJ = 3 * percentD - 2 * percentK par percentJ = 3 * perc...
JMARTY Bonjour, A la recherche d'un indicateur détectant les divergences sur DMI, je tombe sur ce...
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
Nicolas En effet merci, erreur corrigée, la variable Risk affecte désormais comme il se doit les cal...
nader003 How can we get this indicator on MT4
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
Vinks_o_7 Great, thanks a lot Nicolas !
Teddy Coronak Top Nicolas ! Merci
Andyswede Thank's! Great indicator:)
AntoGH how did you backtest it ?
PastaPesto @AntoGH , I dont know if you are asking me, but my backtest was made in an IS of 4 years bet...
Ridder @PastaPesto Do you still running this and how is the results? Thanks
dau710 Are the Bulls Blue & the Bears Red?
dau710 Many thanks :)
Maik2404 es sind leider nur long Positionen und keine Short zu erkennen.
Maik2404 Vytautas: es bleibt aber nur bei long Auslösungen
ullle73 this one is not a winner, have backtested it on almost all pairs, does not have an edge
teddy58 Ich habe es mit N= 1,5 und N=2,5 getestet mit 200000 Einheiten. Es funktioniert leider erst ...
Matriciel I use this indicator to help me make a decision when there is a divergence. The divergences ...
Jan Wind Hi, I personnaly am not a big fan of ZIGZAG indicator, as it repaints itself during time. ...
XXXXVII Excellent indicateur ! Déterminer une tendance est devenu un jeu d'enfants ! Félicitation......
gregoire bonjour nicolas j ai cherché partout sur le net et impossible de trouvé ce que je recherch...
Nicolas Merci de poster une demande dans le forum des indicateurs, ainsi on pourra le coder dans ce ...

Top