Eleminate fuction

I want to convert this function (rewrite code) to equivalent code

Ch = Param("ch", 5,1,15,1);
bi = Cum(1)-1;
cbar = Param("cbar",2,2,50,1);
function GetTop(bars)
Top = H == HHV(H,2*bars) AND Ref(HHV(H,bars),bars) < H;
Top = Top AND LastValue(bi)-ValueWhen(Top,bi) > bars;
return Top;


Only users with "Verified Badge" are allowed to post on this forum. Search "Verified Badge" for more information on how to get verified.

Also see,

1 Like