JayRogers

Open Close Cross Strategy V2

FX:EURUSD   Euro / Dólar Americano
2047 vizualizações
7
2047 4
Script Revision: 2

*** USE AT YOUR OWN RISK ***
There are drawing/painting issues in pinescript when working across resolutions/timeframes that I simply cannot fix here.. I will not be putting any further effort into developing this until such a time when workarounds become available.

V2 Changes:
  • Simplified and cleaned up plotting, now just shows a Moving Average derived from the average of open/close.
  • Tried very hard to alleviate painting issues caused by referencing alternate resolution..
Description:
  • Strategy based around Open-Close Crossovers.
Setup:
  • I have generally found that setting the strategy resolution to 3-4x that of the chart you are viewing tends to yield the best results, regardless of which MA option you may choose (if any) - can cause a lot of false positives, be aware of this.
  • Don't aim for perfection. Just aim to get a reasonably snug fit with the O-C band, with good runs of green and red.
  • Option to either use basic open and close series data, or pick your poison with a wide array of MA types.
  • Optional trailing stop for damage mitigation if desired (can be toggled on/off)
  • Positions get taken automagically following a crossover - which is why it's better to set the resolution of the script greater than that of your chart, so that the trades get taken sooner rather than later.
  • If you make use of the stops/trailing stops, be sure to take your time tweaking the values. Cutting it too fine will cost you profits but keep you safer, while letting them loose could lead to more drawdown than you can handle.
Hello Jay

How do I get version 2
+1 Resposta
Great strategy - was impressed with the nice smooth equity curve. Thanks for sharing. As it is not possible to auto-trade in tradingview to-date I modelled the same strategy (DEMA) Open/Close Cross in another package that allows me to use bid/ask broker data. The results were markedly different with a trade win rate no higher than 40%, despite the trade entries being almost identical. At first I thought this is because of the spread - which does have some impact. However, upon low-level examination of the entry/exit prices in the two models it appears that your model evaluation is done on bar close, however you take the open (or near open) price as your entry from the same bar. In live trading this is obviously not possible. Have I understood this correctly? Or is this a limitation of the back testing framework? All comments made in a positive light - I'm just trying to understand the differences. Thanks a lot - again, great work.
Resposta
amscales amscales
@amscales, FYI - just read the other thread relating to v1 of this strategy which I guess comes to the same conclusion. Anyway, cheers.
Resposta
Any plans on unlocking it for beta testing?
Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Sinais Criptomoedas Calendário econômico Como Funciona Recursos gráficos Planos Regras da Casa Moderadores Soluções para sites e corretoras Widgets Soluções em Gráficos Obter Ajuda Solicitação de recurso Notícias do & blog FAQ Wiki Twitter
Perfil Configurações de perfil Conta e cobrança Obter Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar