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
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
marcara Hi, Thank you very much for the Moving Average Daily indicator, I am using it as indicator i...
Nicolas Je l'ai converti depuis un code pinescript. De mémoire il s'agit bien d'une variation d'une ...
Captain_Walker @Nicolas, I've copied your code into PRT indicator panel to create it. When I attempt to sav...
Nicolas Download the itf file and import it.
Nicolas Please post any question on forums, thanks.
Lavallette Bonjour Nicolas. J'utilise la version 11 et moi aussi j'ai une ligne horizontale malgré l'a...
Nicolas il faut modifier la ligne 20 avec: if adaptive=1 and averagePeriod > 1 and barindex>(...
dakaodo Hi, Wilko. Acc to the original FRAMA paper by Ehlers, Ehler's own code only takes inputs for...
dakaodo For reference, here is Ehlers' original paper: http://www.mesasoftware.com/papers/FRAMA.p...
dakaodo Here is the code with only SC included, per ETFHQ. pri=customclose //len>=4, even on...
Nicolas The code is correct, don't know if the label and color are the same as other trading softwar...
peppe novellino Hi Nicolas, the settings of the alligators are not editable. How can I change it? Thanks in ...
pabo_swe I got very bad performance with this script, it was slow... it seems like if one breaks out ...
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...
gianlox I added a simple momentum indicator (MACD). I think much better results:   achat = 0v...
gianlox achat = 0 vente = 0 MACD12M = MACDline[12,26,9](close) MACD12S = ExponentialAverage[9](MA...
Nicolas Thank you for contribution. Please consider that advertising is tolerate as long as you cont...
triss1965@gmail.com  Hi, I cant make it work. And if you doing so much money. Why do you have to sell it? It don...
T-rader Eva... He dosen´t sell anything. He is just a nice guy that want to share on of his strategy...
Fabio Anthony Terrenzio this strategy works only in a well defined trend
brosly Good afternoon I am trying to get the complete code of lex strategy made by adolfo since I s...
dreif123 hi Adolfo, is Alex Auto Trading Botindex working on DAX as well ? if so , can you post the...
GraHal Ooops got that excited I sent that last one twice! ha (and can't delete it, sorry) I got it...
Eric n = 3  dont forget to allow 3 contract in proorder
UkCoopDownUnder Tried EURUSD GMT and GMT -1, as far back as I can go, Nov 2018 on 15mn Tf, 22% loss
Benjamin Costa Ok thank you for your answers. Gianpiero, i have an Interactive brokers account. Noisette, i...
oldup It works on ProOrder - but  I don't like the maxWin = MaxLoss.    
oldup Just divise StopLoss /2 - Result is better  
phili711 Bonjour Si la moyenne 100 est au dessus de la moyenne 20 le trend est baissier zlors pourqu...
Nicolas La comparaison se fait entre la valeur de la moyenne actuelle et telle qu'elle était il y a ...
Thomas007 we should definitely open a new thread for intraday trading - can we post the link once it's...
Denis Bonjour Nicolas, j'ai une question à propos de ce code, il faut que je la pose en anglais ca...
Nicolas En français pas de problème
Blue Sky A great job Nicolas, thanks. A question about averages, what period is the fast average and ...
Lotech123 This Indicator is very useful if the Risk number is altered to suit the time frame, volume o...
Bern error displaying, code must end with RETURN. Any idea hot to fix it?
Yantra "i believe this indicator could help any trend followers in trading decision. " I'm wonderin...

Top