(See image inside) How to make my MA indicator/MA Crossover indicator or EA trigger a signal AT THE CONTACT of the current candle with the MA line/contact of both MA lines?

 

It's not for all cases, retractions are natural in this enviroment, I know, but for, let's say, assorted high probability pullbacks.


 
Show your attempt if you need coding help.
 
P Ter Almeida Granados:

It's not for all cases, retractions are natural in this enviroment, I know, but for, let's say, assorted high probability pullbacks.


You haven't understood the timing of trading yet. The values (high, low, close) of actual bar and those of indicators are volatile up the moment this bar is close and new bar appears. That's why mostly this bar is not taken a basis for trading decisions and that's why you see the opening of the position not where you would like to see it. You'll get many other problems if you use the actual bar for an algorithmic trading.
 
P Ter Almeida Granados:

It's not for all cases, retractions are natural in this enviroment, I know, but for, let's say, assorted high probability pullbacks.


You could create two variables, current_tick and previous_tick, where you store the close price of the previous and current tick and then you use it like a crossover with the MA line.