Why doesnt this code work
-
have a look at it please. between a given period it draws the lines, it is supposed to draw an arrow when a candle opens above the lower line and closes below it.
https://fxdreema.com/shared/lHrHvOfnd -
Here is something that still does not work, but I'm using variables here instead of formula blocks and I also use the newest "Draw Line" block to draw lines. I also added "Indicator tester" for you to actually see where the low price is. The problem is that it is recalculated on every tick and look at what value it gets: http://prntscr.com/7kghqw Candle 0 is used in this calculation!
-
After countless repetitions, it finally worked! I needed to multiply the values by 1.0 instead of 1
don't know why but it works that way...thanks.