Type : Signal, Name : Dual Time Frame Moving Average
Inputs:
Price(Close),
Length(13);
IF XAverage(Price,Length) > XAverage(Price,Length)[1] and
XAverage(Price,Length) of data2 > XAverage(Price,Length)[1] of data2
then Buy this bar on Close;
IF XAverage(Price,Length) < XAverage(Price,Length)[1]
then ExitLong this bar on Close;
IF XAverage(Price,Length) < XAverage(Price,Length)[1] and
XAverage(Price,Length) of data2 < XAverage(Price,Length)[1] of data2
then Sell this bar on Close;