Hi,
I am trying to do something that should be very simple, but I am really struggling to find the good method.
How can I program an algorithm that only buy/sell on the closing price of a stock?
For instance, the backtest I am performing here is to buy when the closing price is above the MVG10 and sell if it gets bellow. The buy/sell signal trigged on Intraday prices and that is not the behaviour I am trying to get.
Thank you,