Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/24/2006(UTC) Posts: 24
|
anyone knows where can i get an expert or what formular that highlights up swings green, sideways orange and down swings red?
like in this picture
what u guys think of this code?
============
highlight red
============
EL:=H>Ref(HHV(H,20),-1);
CL:=L<Ref(LLV(L,10),-1);
ES:=L<Ref(LLV(L,20),-1);
CS:=H>Ref(HHV(H,10),-1);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND PREV=-1),0,PREV))));
=============
==============
hilight green
=============
EL:=H>Ref(HHV(H,20),-1);
CL:=L<Ref(LLV(L,10),-1);
ES:=L<Ref(LLV(L,20),-1);
CS:=H>Ref(HHV(H,10),-1);
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND PREV=-1),0,PREV))));
State=1
==================
=================
Highlight orange
=================
1
==============
State=-1
|