ramat gan israel
Posts: 5 since Feb 2015
Thanks Given: 2
Thanks Received: 0
|
Hey
New to ninja script and wants to convert from thinkscript to ninja script part of strategy :
I really appreciate it
def HMA = HullMovingAvg(price = HL2, length = 18);
def deltaH = HMA[1] – HMA[6];
def delta_bar= deltaH / 4;
def next_bar = HMA[1] + delta_bar;
def POR = if HMA > next_bar then 1 else -1;
def T_point = if por[2] != por then HMA else Double.NaN;
def upp = T_point and por == -1 and open< close and open[0] > low[1];
def dnn= T_point and por == 1 and open > close and open[0] < high[1];
TIA
|