PureBytes Links
Trading Reference Links
|
I am having problems with EL using multiple timeframes.
I am charting daily TBonds as data1 and weekly TBonds as data2 and these
charts plot fine. I then want to write a system that will use the
weekly MACD slope as a buy/sell filter and the daily data to enter a
trade as follows:
MAHist = MACD(Close,FastMA,SlowMA) of data2
- XAverage(MACD(Close,FastMA,SlowMA),MacdMA) of data2;
if MAHist<MAHist[1] then SellTrnd = true else SellTrnd = false;
if SellTrnd and H>H[1] then Sell at close;
So if the slope of the line joining the weekly MACD histogram is
negative I want to take a trade during the following week as soon as the
daily high is above the previous day's high.
The problem is the trades only seem to occur when the daily bar
coincides with a weekly bar and does not work for the days in between
the weekly bars.
Thanks in advance for any suggestions to overcome this.
Brian Meads
|