Can anyone help with how we can execute a trade at the Actual Market price instead of waiting for the Close of the candle (or other vectors)

I want to execute a strategy for trading for Example :
Buy at 10EMA High Levels
& Sell at 10EMA Low levels which will also act as a SAR.

I am new with coding & the problem is all the available codes mostly need to put in CLOSE vector which buys at the close of the Candle at 10EMA High or Low & not at the actual 10EMAHIGH or LOW levels thereby losing points. Also can we add some buffers in the levels Eg: Buy at 10EMA HIGH Level (7800) + 5 points. i.e, 7805.

Thanks in advance.

you can use HIGH / LOW instead of CLOSE in EMA like EMA(HIGH,10)

most of the code uses CLOSE because to generate alert at close of the candle

1 Like

Thank you will take a note !