Yes, Only exitShort is called on every 16th bar and it is done correctly in the above script.
But here, I want to enter on every bar if a condition is met on BarPeriod = 15.
I want to define TimeFrame for every indicators used in a code.
In MTF strategy, it is very helpful to see what indicator used for what time frame.
This code is wrong?
I defined TimeFrame = 1 here which is on every bar.
Maybe It is wrong to use same Close vars in both TFs.
TimeFrame = 1;
vars Close = series(priceClose());
vars tmp1 = series(SMA(Close,21));