Topas
Member
I am trying to do Hull Moving Average and Ema Crossover with shift .... I have coded the crossover part and its working but cannot figure out how to do ema shift, not sure Tos support that option or not but Meta Trader does support that .... any idea how do i incorporate "Shift" to my code .... thank you
Here is a Shift option in meta trader
Here is a Shift option in meta trader
Code:
# Hull Moving Average and Ema Crossover
#Topas
declare upper;
input price = close;
input HMA_Length = 12 ;
input Ema_length = 21;
input Ema_shifts = 3;
plot HMA = HullMovingAvg(price = price, length = HMA_Length);
plot EMA = MovAvgExponential (price = price, length = Ema_length);