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.