function run()
{
StartDate = 20190101; // start two years ago
BarPeriod = 15; // minutes per bar bars
LookBack = 100; // needed for scale()
var PredictHorizon = -3;
set(RULES); // generate signals
LifeTime = 3; // prediction horizon
Spread = RollLong = RollShort = Commission = Slippage = 0;
adviseLong(SIGNALS+BALANCED+PEEK,0,
MidPrice(0),MidPrice(3),priceOpen(0),priceOpen(-3),MACD(priceClose,12,26,9));
enterLong();
}