Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 3/7/2014(UTC) Posts: 17
Thanks: 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 H<REF(H,-1) & L<REF(L,-1) - its an lower high lower low bar.
3) color green - price bar H>REF(H,-1) & L<REF(L,-1) - its an outside bar.
Kindly help.
Regards,
K
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 91 times Was 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 specified MS Support attached the following image(s):
|
1 user thanked MS Support for this useful post.
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 3/7/2014(UTC) Posts: 17
Thanks: 6 times
|
Hi MS Support,
Thanks a ton for the formula. It worked very well.
Thanks once again.
Regards,
K Edited by user Saturday, March 7, 2015 4:18:44 AM(UTC)
| Reason: Not specified
|
|
|
|
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.