CandleSize alway returns 0
-
Hi,
I'm very new to fxDreema and am currently trying to create my first EA. However, I'm putting together fractions that I will later combine for my strategy.
Anyway, I try to store once per bar the candle size in a variable (in pips) and for the begining just pront the value after modification in the log.
The result is that it always returns the value 0 regardless of anything. I do the same with ATR as value and that works fine. What am I doing wrong?Bests Guido
-
Btw. see the code in the getAtr Block on onTick tab.
-
Two previous questions. What are those 'Pass' block for? I don't see they are useful. And I recommend you to change block IDs 19 and 20 for each other. In their current order your EA is closing buys before opening them.
-
L'Andorra, thanks for the tipp @IDs
I'm currently adding fractions that I later want to place in the EA logic. I realized that candle size is Calculated right, but my ATR is not in PIPs. Sorry for any confusion, but the values in the log appear in different order and I don't have a clue yet to mix a number and a string in one log entry line. Well, my first day with fxdreema so nevermind.
-
Be sure your current_ATR variable is of a 'double' kind, not string.