logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
hanhao  
#1 Posted : Wednesday, March 8, 2006 10:36:33 AM(UTC)
hanhao

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 UserPostedImage 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
StorkBite  
#2 Posted : Wednesday, March 8, 2006 2:52:47 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey hanhao- I can't test this for you at the moment, but if you relabel your plot sections to 'red', 'green' and 'orange' then plot them individually, you can change the colors that way. You'll just have to overlay the plots. Instead of State, you'll wind up with something like red; green; orange There is an example of this type of coloring scheme on the forum... particularly as it applies to volume. Also, check the main Equis site for forumal examples. I seem to remember there being an example there too.
henry1224  
#3 Posted : Wednesday, March 8, 2006 11:01:51 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
try this link as an example http://forum.equis.com/viewtopic.php?t=307
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.