Opening Range Breakout: something wrong, but how to find it?
-
Hi There!
I'm trying to build a very basic London Opening Breakout EA.
I think the logic is right and there are no errors when compiling but... when i test it nothing happens; i can't see any pending order. Here's the project:
https://fxdreema.com/shared/l2Q6QwUHdI decided to insert a comment block just to understand something more.
The Hour Filter is working because the comment is shown on the graph... so probably there's an error in the "check trading conditions" block...In this block i'm comparing the variable "NR", that is a price difference (maximum-minimum price of the last 40 candles on a 15min chart), with an input constant "Max_NR" considered as "pip value" and "price fraction". I'm checking if NR <= Max_NR.
What can be wrong here?Thanks!
Malfy -
you are working wrong with variables ... terminal variables is something else ...
this is wrong:

this is correct:

-
Thanks! I understood and solved the problem
I also changed the trade managing using an "on trade" condition.
Now the strategy is working fine, even if i'm still in trouble understanding the trailing stop configuration.
I'm going to look if i can find some discussions about it in the forum. -
@miro1360 Hi How did you get the box below value and numeric as a blue NR ? Thanks so much
-
@cavery23 said in Opening Range Breakout: something wrong, but how to find it?:
@miro1360 Hi How did you get the box below value and numeric as a blue NR ? Thanks so much
read this help, here it is well explained:
https://fxdreema.com/help/working-with/constants-and-variables