Good morning,
I have found in the forum an efs of alert for renko chart. Unfortunately the alert is built on
the change of color of the box and therefore the signal is wrong because in the same bar
there can be more boxes and the long signal eventually goes off on the closing of the last drawn box.
I have found instead online this indicator code for metastock that points out the change of tendency in the renko at the end of the bar and therefore it would be usable to plan a correct trading system.
Who felt like decoding it would be of great help for the community, i think.
pc:= Input("pc",0,100,1);(here percent.or points)
K:=CLOSE*pc/100; RenkoLine:=If(***(1)=1,CLOSE, If(PREV>=0, If(CLOSE<PREV-
2*K,-(PREV-2*K), Floor(Max(C-PREV,0)/K)*K+PREV), If(CLOSE>Abs(PREV)+2*K,-
PREV+2*K, Floor(Max(Abs(PREV)-C,0)/K)*K+PREV))); RL:=Abs(RenkoLine); RL;
BW:=If(***(1)=1,0, If(RL>Ref(RL,-1),+1,If(RL<Ref(RL,-1),-1,PREV))); BW;0;
gigi
I have found in the forum an efs of alert for renko chart. Unfortunately the alert is built on
the change of color of the box and therefore the signal is wrong because in the same bar
there can be more boxes and the long signal eventually goes off on the closing of the last drawn box.
I have found instead online this indicator code for metastock that points out the change of tendency in the renko at the end of the bar and therefore it would be usable to plan a correct trading system.
Who felt like decoding it would be of great help for the community, i think.
pc:= Input("pc",0,100,1);(here percent.or points)
K:=CLOSE*pc/100; RenkoLine:=If(***(1)=1,CLOSE, If(PREV>=0, If(CLOSE<PREV-
2*K,-(PREV-2*K), Floor(Max(C-PREV,0)/K)*K+PREV), If(CLOSE>Abs(PREV)+2*K,-
PREV+2*K, Floor(Max(Abs(PREV)-C,0)/K)*K+PREV))); RL:=Abs(RenkoLine); RL;
BW:=If(***(1)=1,0, If(RL>Ref(RL,-1),+1,If(RL<Ref(RL,-1),-1,PREV))); BW;0;
gigi
Comment