GBPUSD REVERSION BARS

GBPUSD REVERSION BARS

Good Morning,

I share my first code based on a well-known strategy.

I tried to make it as simple as possible and not fill with indicators and triggers. A simple strategy following a reversion pattern of bars and a mean exp of 40 periods.

I would like to improve it and are welcome any of your contributions and opinions of money management, stop loss optimization, etc.

I’ve placed it in ProOrder Autotrading in Demo to see how it behaves.

Regards,

Gbp usd in 4 hour timeframe


Buenos días,

Comparto mi primer código basado en una estrategia por demás conocida.

Traté de hacerlo lo más sencillo posible y no llenar de indicadores y triggers. Una estrategia sencilla siguiendo un patrón de reversion de barras y una media exp de 40 períodos.

Me gustaría mejorarlo y son bienvenidos cualquiera de sus aportes y opiniones de money management, optimización de stop loss, etc.

Lo he colocado en el ProOrder Autotrading en Demo a ver como se comporta.

Saludos,

gbp usd en timeframe de 4 horas

 

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. barbagio • 03/15/2017 #

     Hola David, estaba mirando tu trading system y me preguntaba si ya lo habias probado en un mercado que no sea solo bjista (me parece viendo a la imagen que has puesto que no hubo un mercado alcista en el periodo que lo miraste). 
    De todas maneras voy ya he bajado tu codigo y lo voy a probar para ver como funciona en diferentes condiciones.
    Ya hiciste un proceso de optimizacion? se sì, sobre cuales parametros? 
    Otra pregunta: no entiendo las razones de las formula con raiz cuadrada, logaritmos, etc… me las podrias explicar un poco mas?
    gracias! hasta pronto
    Giovanni

  2. David Somogyi • 03/15/2017 #

    Hola Giovanni,
    Solo lo he probado en libra dólar vs USD, en demás divisas no funciona con esos parámetros, habría que optimizarlos y adaptarlos.  También podría limitarse un poco los horarios para evitar el overnight. Te recomiendo le hagas una optimización por capas para llegar al mejor setup.
    Con respecto a las fórmulas, ese indicador FDI es el índice fractal y ayuda a detectar cuando hay poco movimiento y el mercado se lateraliza brevemente, funciona como filtro para NO abrir posiciones.
    Saludos

  3. David Somogyi • 03/15/2017 #

    Hola Giovanni,
    Solo lo he probado en libra vs USD, en demás divisas no funciona con esos parámetros, habría que optimizarlos y adaptarlos.  También podría limitarse un poco los horarios para evitar el overnight. Te recomiendo le hagas una optimización por capas para llegar al mejor setup.
    Con respecto a las fórmulas, ese indicador FDI es el índice fractal y ayuda a detectar cuando hay poco movimiento y el mercado se lateraliza brevemente, funciona como filtro para NO abrir posiciones.
    Saludos

  4. Pier • 03/15/2017 #

    Very good strategy I try It
    with this target: SET TARGET PPROFIT AverageTrueRange[14](close)*4.8*10000
    and this set: nbar = 5 It seem
    So It seems to get better performance

    • David Somogyi • 03/15/2017 #

      Hello Pier, thanks I’m working in an alternative version and running WF on it.
      What would be the meaning of the 4.8 ?

      Regards,

    • Pier • 03/15/2017 #

      optimisation from 2 to 5 step 0.2 could be overfitting ? whats your opinion ?

    • bertrandpinoy • 03/15/2017 #

      bonjour ce code fonctionne toujours?

    • Nicolas • 03/15/2017 #

      Faites un backtest, vous aurez des réponses.

  5. David Somogyi • 03/15/2017 #

    Hello,

    You should try a WF analysis to see its behavior during 5 periods. Still, don’t understand what this multiplier factor means.

  6. lizmerrill • 03/15/2017 #

    david, what is the well known strategy you are basing this code on?

  7. David Somogyi • 03/15/2017 #

    Hello,

    180º profit booster from Greg Secker.

    Regards,

  8. lizmerrill • 03/15/2017 #

    david, THANKS FOR THE REPLY,
    IN YOUR CODE BELOW:
    FDI=0
    HH = highest[N](close)
    LL = lowest[N](close)

    for Period = 1 to N-1 do
    if (HH – LL) > 0 then
    diff = (customclose[Period] – LL) / (HH – LL)
    if Period > 1 then
    length = length + SQRT(SQUARE(diff – pdiff) + (1 / SQUARE(N)))
    endif
    pdiff = diff
    endif
    next

    if length > 0 then
    FDI = 1 + (LOG(length) + LOG(2)) / LOG(2 * (N))
    else
    FDI = 0
    endif
    endif

    WHERE DID YOU FIND FDI IN YOUR CODE? I HAVE NEVER SEEN THIS CALCULATED, IN THIS CASE BEING USED AS A FILTER FOR THE TRADES?

  9. David Somogyi • 03/15/2017 #

    Hello,

    This is merely a filter indicator for measuring high fractality, which helps to avoid entering positions with lateral price movements.

    Find a topic below. There are lots of books and authors that explains how to use this indicator.

    http://www.x-trader.net/foro/viewtopic.php?t=18769

    R.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Nicolas
1 year ago
f1_maik Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
Nicolas das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
FXtonio Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
supertiti Bel outil si on ne se tape pas sur les doigts avec ! Comment ajoute-on une image avec le co...
magnus59 Hi Nicolas, thaks for your great work here, I need a scanner for the swedish OMX when ma...
Nicolas Yes, sure please open a new topic in the ProScreener forum section, thank you.
paullyons Hello! Thanks for post your indicators. I'd like you to let me know how to draw lines for ...
Rafa Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
Nicolas Add it on the price, see how: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an...
Frankyslo1 No consigo instalarlo en el precio en PRL-version 10
Roland57800 Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Noobywan Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
Fabian This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
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
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
Nicolas c'est exactement ce que je fais entre les lignes 58 et 64 pour pouvoir tracer la ligne complète
Italo Fabian Nicolas, Ces matrices sont-elles des vecteurs unidimensionnels ou multidimensionnels? Depu...
Denis Bonjour Nicolas et RicLg, Merci Nicolas pour cet indicateur intéressant et merci RicLg pour...
Nicolas Il faut l'ajouter sur le prix avec l'icône de la clé situé en haut à gauche du graphique du ...
jerome777 merci de ta réponse
jerome777 bonjour c est bon il fonctionne parfaitement merci beaucoup
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
Alps007 Hi Nicolas. Happy New Year. Can you please program me several MACD divergence screeners ...
Arlei Zanin Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.
ashee i want it in MT4
Marie-Eve Vergoz Bonsoir - Voici l'erreur qui est signalée lorsque je souhaite utiliser cet indicateur : il...
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
Nicolas
5 years ago
LRMA
LRMA
0
Indicators

Top