If i write the code below, it seems to be doing what i want in the backtest, but will this work with live trading?
Or should i be trying to do this on an intraday chart?
Currently I'm using a daily chart, and the backtest is working, but i'm affraid it might not work in real, and it might actully just try and buy the next day
Code: Select all
Buy ("Night") this bar at close;
Sell("Sell") next bar at open;