Error

 Previous Topic Next Topic
 ketal #1 Posted : Friday, March 6, 2015 5:17:11 PM(UTC) Rank: MemberGroups: Registered, Registered Users, Unverified UsersJoined: 3/7/2014(UTC)Posts: 17Thanks: 6 times Hi,   Is it possible to color the volume bars as per below mentioned conditions:   1) color blue - price bar H >ref(H,-1) & L>REF(L,-1) - its an high high higher low bar. 2) color red - price bar HREF(H,-1) & L
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 MS Support #2 Posted : Friday, March 6, 2015 7:07:54 PM(UTC) Rank: Advanced MemberGroups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)Posts: 1,953Thanks: 91 timesWas thanked: 155 time(s) in 150 post(s) This should be getting better with version 15 (where we'll be hopefully re-writing the formula language) but as it stands right now you can only define 1 color per plot. So within the current limitations, you have to basically plot the volume multiple times with a conditional statement: Blue:=H > Ref(H,-1) AND L > Ref(L,-1); Red:=H < Ref(H,-1) AND L < Ref(L,-1); Green:=H > Ref(H,-1) AND L < Ref(L,-1); If(Blue,V,0); If(Red,V,0); If(Green,V,0); If(Blue=0 AND Red=0 AND Green=0,V,0) Then, after the indicator is plotted, you have to select the appropriate plot (this can be tricky as you basically have 4 competing plots in the same window - I find using the Tab key is easiest) then click Format-->Selected Object and change the color/style of each plot to match the condition. Note you would also have to define a color for when none of the 3 conditions is true. While this can be a little time consuming initially, once you have the custom volume indicator plotted and correctly colored, you can save it as part of a template to more easily apply the indicator in the future. Edited by user Friday, March 6, 2015 9:32:38 PM(UTC)  | Reason: Not specifiedMS Support attached the following image(s): 1 user thanked MS Support for this useful post. ketal on 3/7/2015(UTC)
 ketal #3 Posted : Saturday, March 7, 2015 3:28:19 AM(UTC) Rank: MemberGroups: Registered, Registered Users, Unverified UsersJoined: 3/7/2014(UTC)Posts: 17Thanks: 6 times Hi MS Support,   Thanks a ton for the formula. It worked very well.   Thanks once again.   Regards, KEdited by user Saturday, March 7, 2015 4:18:44 AM(UTC)  | Reason: Not specified
 Users browsing this topic
 Similar Topics SWING VOLUME INDICATOR (Advanced Coding Techniques) by mahamaya 5/19/2008 9:05:37 AM(UTC)
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.