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

+27 more likes

Related users ' posts
Doddge Bonjour Nicolas, savez-vous s'il existe un indicateur pour Prorealtime similaire au ST-TL fi...
Nicolas Pour les demandes de conversion de code, et si vous possédez le code source de l'indicateur ...
Doddge Merci beaucoup Nicolas, j'ai utilisé le formulaire avec les informations que j'ai sur cet in...
Juan Salas Hi FULVIO09, Nice piece of work. It seems to work very well. Does only work for INDEXES??...
Johann Hi @FULVI09, I understand the instructions however I'm not too sure how to determine the "p...
Player8520 Hello, It doesn't work with me either. However, I changed AA to 180 on line 15, added th...
ALE Hi the color is given by a numerical value derived from the oscillator in use. If you comp...
efahmy Thanks mate
Jo-01-R Hello, it is possible to have this indicator but instead of colors rather have numbers rangi...
Nicolas Add it on price using the wrench on the left upper side of the price chart.
Stenozar thanks Nicolas, I' ll try again!
Radetzky Buongiono e grazie : l'immagine sopra ritrae l'indicatore sul TF 15 min ma a me funzio...
GraHal Is this the Discussion Topic you need @Gregg https://www.prorealcode.com/topic/scalping-i...
bertrandpinoy bonjour Nicolas y a t il une possibilité de signal sonore dès qu une vente ou un achat serai...
Nicolas Oui cela nécessitera une adaptation du code cependant, merci de formuler une demande sur le ...
Madrosat Bonjour Nicolas la formule du stop loss est elle vraiment valable ?? il n'y a pas au depart ...
Nicolas Il y a peut-être un erreur en effet, essayer avec: set stop ploss (averagetruerange[14] * ...
Madrosat ok merci Nicolas c'est avec /pipsize que ça fonctionne
TAC Bolsa This indicator give trading signals depending of the crosses of overbought and oversold area...
Juanjo Hola. El indicador es válido para acciones en periodo diario? Gracias
TAC Bolsa Hola Juanjo la información del indicador y otros la puede encontrar en el BLog. https://w...
alex Im looking for a entry when EpicMA crosses over/under trigger. Then look for exits when Epic...
haseluis Hello, who can help me why the screener does not work // Der folgende Code bezieht sich auf...
Nicolas Hello, please ask your question with a new forum topic, this is not the place to ask for sup...
Pier
7 years ago
Cris48  Nice Pier, I put inside also the adx .... //settings//b=20 if low < low[1] thenllv = (...
parthdesai11 Indicator not working in Beta Version 11.1 , Any idea ??
Nicolas What is the issue with version 11 and this indicator please?
Wing There's a few threads on the forum about backtest and live trades being different at times. ...
ET I agree with verdi55. As it is now, the code will only test for a breakout on the upside (li...
Philipjonasson are u still active Wing?
majid52026 Hi I want MBXF Timing for mq5 Does anyone have this indicator???
dertopen Hi Nicolas good work for the code translation when i chek the mbfx system site i see in t...
Nicolas Yes, just change the color by yourself in the indicator settings window.
Nicolas All conditions under parenthesis for the c1 to c4 conditions should be inverted. 
tomus Can you give an example of the overbought codes please? Thanks.
ams123 Frank Merci Nicholas -:)
wtangsiri Bonjour J'ai importé le fichier ITF en question, mais cela me donne, en bas de l'écran, un...
Nicolas Il faut ajouter l'indicateur sur le graphique du prix.
skuggan89 This is a great indicator, works very well!! Is there any algo based on this indicator that ...
wtangsiri Bonsoir Qu'appelez vous l'axe vertical et comment le définir ? Merci pour votre aide.
rafadonl2 Pardonnez-moi mais je ne sais pas ce que vous entendez par "axe vertical". Serait-ce la lig...
rafadonl2 Je viens de voir ce que vous voulez dire. Comme pour tout autre indicateur, vous devez défin...
gregus bonjour a tous quelqu un pourait il recodé en prt il sagit  du dynamique zone ma, je n arri...
Nicolas Merci de faire une requête spécifique sur le forum. 
Nicolas
7 years ago
GraHal Forked code I mention above is here ... GraHal wrote: So below is the PRC Stochastic RSI v...
GraHal Try again (quite limited what you can do as Comments in the Library) https://www.prorealco...
AutoFlanders Thanks GraHal, that's what i was looking for

Top