Working with indicator values
-
Hello people
My indicator assigns values to each candle different from the candle price.
I want to compare two candles with their corresponding indicator values.
Example:
previous candle (1): close.price = 1.2 | indicator value = 1.4 [ close.price < indicator value ]
current candle (0): close.price = 2.3 | indicator value = 1.6 [close.price > indicator value ]BUY Condition:
current candle (0) : [close.price (0) < indicator value (0)] AND previous candle (1) : [close.price (1) > indicator value (1)]How can I do this??
P.S: Values in Green are the Indicator Values. While the lines are the approx. close prices of each candle
......
PRICE.JPG -
What about the crossover options in "Condition" block? They do this: https://fxdreema.com/documentation/proj ... er%20works
-
Taken you advice and tried so many tricks (including changing the candle ID) to achieve the desired result, still no success.
It would be great if you made a separate function, [on candle close], the [candle close] function is difficult to work with.
Trying to find the right blocks to interpret this:
......
Capture1.JPG -
"Candle Close" is the candle's close price, this is not an event.
The crossover basically works, it's a little bit pain in the .... to control it
Here https://fxdreema.com/shared/V1ekNf88 I decided to work when the new candle opens, so I shifted the Candle Close value and and the indicator value with 1 - to look at the previous candles, not the current one which is newly created and it's still just a point. But it depends.
Are you sure that your indicator is giving you values at all? Check it with "Indicators tester". Sometimes indicators returns only 0 on the current candle, so it's needed to set Candle ID to 1 or more. Just make sure that you are using some values different than 0 or EMPTY_VALUE (which is some giant number).
-
Finally Solved

Used [Candle Open/Candle ID (2)]. It was a huge pain indeed !