Price X Indicator
-
I am using the Price X Indicator and I see it calculates after the candle close. Is there a way to initiate the Buy Now the exact instance that the price crosses the MA ? The close is a little late maybe. Any help would be appreciated.
-
@roar Do you know how I would do this?
-
@fxDreema Could you shed some light on this please?
-
@7434be
Well, all candles have only 4 points: open, high, low, and close.
Close doesn't necessarily mean history, it is also the most current reading.In fxdreema we control the time aspect with candle ID.
ID 0 = the current candle, that is constantly changing
ID 1 = the first completed candle
ID 2 = the second completed candle
etc -
@roar So if I read you correctly you are saying that the Price X Indicator passes the block "immediately" as it crosses the MA. Or you are saying I would need a Candle block with ID 0 for the program to recognize the crossing of the MA "immediately as it happens.
-
@7434be
Correct, the block passes immediately.
ID 0 is set by default. It may work in your project as is, but if you start seeing some weird trades, try setting ID 1.There are many topics in this forum regarding the ID setting, use the search for that
