Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/12/2012(UTC) Posts: 44
|
hi
i found this formula for a renko indicator but when i copy into new indicator it gives an error... any ideas?
K:= LastValue( Fml( "Bulli RenkBoxSize") ) ;
RenkoLine:=If(Cum(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(Cum(1)=1,0,
If(RL>Ref(RL,-1),+1,If(RL<ref(RL,-1),-1,PREV)));
BW;0;
thx
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi indexarb
The reason for the formula failure is probably that it expects to find the formula "Bulli RenkBoxSize" and can't. I also see that the "BW" variable does not generate an output, so that could be another problem waiting in the wings.
Roy
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/12/2012(UTC) Posts: 44
|
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.