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
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
swapping merci gabri, on va le mettre à l'essai ;)
Leo Hi all, I posted a new version of this indicator ( I just add arrows to spot the local maxi...
Trading_En_El_Ibex35 Muchas Gracias por compartir este interesante indicador. Un saludo
xavieralava hola gracias leo
Khaled Thanks, but if I may ask what's EMA Period? The price which reverses the EMA[20] is not the ...
Francesco78 EMA is not a moving average, it is just the name we called the quantity defined above
Khaled My bad. Thank you so much!
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...
Roberto Blázquez Hi David, I just saw your strategy and it's good!!! I'm going to try it from today in real a...
Thomas007 Is there any way to build something similar for FX? I wonder what would be the replacement f...
Kris75 Hi Bolsatrilera, I love this indicator! Thanks; => did you develop a strategy around...
KarlBenjamin This "indicator" alone has completely changed my algorithms for the better! Id even go as fa...
ashee CAN YOU SHARE MT4 FILE
coyP Big thanks ! Can you explain me how can I put this ON my graph and not under the graph 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?
Nicolas We do not offer free assistance for TOS. However, you can send demand for private paid codin...
phanz Hi community. May I know how you use this indicator please? Is it on the zero cross over? ...
sydney43025 Hello, I'm digging up this topic because I uploaded the code on a PRT v11.1 but the indicato...
David Balance thanks for sharing this excellent indicator.  Here are some thoughts.  please ad...
supertiti Il manque 2 slash devant len dans le code dur car la variable ne marche pas bonne journée
bearbull As per PhilipSchultz question above, has anybody managed to add code for when it turns blue,...
Ybr35 Bonjour Nicolas, lorsque je lance l'indicateur, il m'est indiqué que je dois définir les var...
Nicolas L'idéal est de télécharger le fichier itf joint sur cette page et de l'importer dans la plat...
Nicolas Merci dans ce cas d'ouvrir un sujet dans le forum ProScreener svp.
Andrea Hi Nicolas, thx for your code. Please i need your help to understand this part of your code:...
Nicolas the MA200 is ascending since 20 periods.
Leo Hi Gabri, have you ever try this in a trading system?
gabri Leo, I used to crosscheck this indicator a long time ago. For the trading I was doing at tha...
Nolubok Bonjour Gabri, merci pour l'ensemble de vos publications, serait il possible d'avoir le scr...
Krallenmann Hallo Nicolas, kannst du mir die Regeln für den Halftrend Indikator sagen? Aus dem Code kann...
davefransman Dear Nicolas, i want set a alert on the "HalfTrend "custom moving average" met Heikin Ashi w...
Nicolas Please post the question in a new forum topic, that would need custom coding I believe.
Sofitech Ce code n'est valable que sur la V10.3 ? sur le 10.2 il y a une erreur de syntaxe dans le fi...
Nicolas Oui en effet, c'est un indicateur "10.3" à cause uniquement de la mise en forme des courbes ...
Nicolas En effet, c'est le cas si on copie/colle le code. Ces 2 variables sont inscrites en externes...
Salocin Hello Nicolas, my french is not that well. It occurs an error which can not be solved by cop...
Nicolas Just download the ITF file and import it into your platform, follow these easy steps: https:...
Nicolas
7 years ago
Holt EMA
Holt EMA
1
Indicators
robertanthonyuk Hi,What do the each colour represent? Rob

Top