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?

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

  1. samsampop • 40 days ago #

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

  2. Gaspare • 39 days ago #

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

  3. pranik • 38 days ago #

    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 • 37 days ago #

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

  5. juanj • 37 days ago #

    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 • 37 days ago #

    hi Juanj, thank you. TF 1 h?

  7. pranik • 37 days ago #

    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 • 36 days ago #

    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 • 36 days ago #

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

  10. Gaspare • 34 days ago #

    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 • 34 days ago #

    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 • 34 days ago #

    Just be careful, this strategy has not been tested live

  13. delynot • 34 days ago #

    Superbe stratĂ©gie, elle marche plutĂŽt bien en H1 et H4. Merci 😉

  14. samsampop • 33 days ago #

    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!

  15. Jan • 28 days ago #

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

  16. juanj • 28 days ago #

    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 • 24 days ago #

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

  18. bibiyanki • 13 days ago #

    doesn’t work , not start

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Albaran Hi Vonasi, Could you explain what "$perc[a]" is? I tried to apply it but it keeps telling...
Nicolas Code compatible only with version 11, as it is written in bold in the text of this post: Thi...
Albaran Ah I had hoped it was a problem unrelated to the version of prorealtime! We'll keep waiting ...
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
9 months ago
KDJ
KDJ
1
Indicators
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
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...
scarphace38 Bonsoir, je découvre PRT et je n'arrive pas a afficher le meme résultat pour l'indicateur de...
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 !
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:)
Gubben When an automatic trade goes against you this much as it has this week (given that your vers...
PastaPesto I personally never do anything with my bots when their in position. I know some people do, b...
Gubben It's probably my version then. And it can take cumulative trades, so it took another win now...
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. ...
luxrun Good evening Nicholas, I can not see the colors on the line of the moving average, but only ...
Nicolas Yes, you must choose the oscillator that will color the moving average. Example: ONCE UseC...
XXXXVII Excellent indicateur ! DĂ©terminer une tendance est devenu un jeu d'enfants ! FĂ©licitation......
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...
kuroobi Parfait , merci beaucoup .
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...

Top