Crossing conditions sometimes valid and sometimes invalid?
-
I'm working on a strategy. I need CCI's prompt. This simple model does not have accurate actual effect. Please ask, why? What can do?
I need CCI to go down 250, that's how I set it

Sometimes it's successful,

Sometimes it's weird:
Nothing happened this time

Nothing happened this time

It's not there yet, it's a signal

Left crossing without signal, right crossing with signal

Please help, thank you! -
Hola @ghq . A mi me ha pasado algunas cosas como las que cuentas y creo que lo he resuelto de la siguiente forma, pruébalo a ver si te funciona.
Asigna el valor numérico que genera el CCI a una variable, y esta variable es la que comparas con el valor numérico de 250.
Pruébalo y espero que te funcione, saludos. -
@ghq Are you backtesting that strategy on an every tick basis? If so this mneans that there was a crossing at the moment the EA was at that point but later on the CCI level was readjusted on screen. Welcome to the repainting phenomenon of indicators.
-
@l-andorrà All of my screen shots were taken on the same 15 minute chart. There is no switching cycle. In addition, the option is "close price". I think it should be the value read after the completion of the Bar. This value should not be changed, right?
-
@nillav I try to understand what you said, but I'm not a programmer, so it's a bit hard. Do you have a similar example to show me? I can try it myself.:)
-
@ghq Ok, but was it a backtesting on the strategy tester or a forward testing on a demo account?
-
Hola @ghq, yo tampoco soy programador, llevo 15 dias con FxDreema, tengo algunos conocimientos de cuando estudié, pero me estoy metiendo a fondo con ello porque quiero automatizar mi estrategia. De todas formas es a esto a lo que me refiero, a mi me funciona, pruebalo tú. Yo lo he probado en MT5, si tu lo quieres en la MT4, copialo, crea un nuevo proyecto y lo pegas.





Aquí te dejo el programa, espero que sea lo que buscas, saludos
https://fxdreema.com/shared/ttgg9QsOd -
@ghq hello, are you backtesting your project with this model ?

-
@l-andorrà oh , it's a backtesting
-
@nillav Salute! Thank you so much. Let me study it. Although there are not many people in this forum, it's really warm-hearted.
-
@ambrogio Oh, I use control point. This may be a problem, I'll try, thank you!
-
@ghq In fact, this is the problem

-
@ghq te hice el programa para que vieses como asignar el indicador a una variable, no se si lo que necesitas es que la flecha te marque la entrada.
De todas formas aquí te lo dejo de nuevo, seguramente es esto lo que buscas.
https://fxdreema.com/shared/O7MzDDd8
Lo he optimizado para que solo te salga una flecha cuando el CCI baje de 250 y abra una operación, a partir de ahí, optimizalo como mejor prefieras,
saludos.
-
@nillav This looks accurate. Let me try,:)