Plotting Coloured Volume Bars in Metastok Charts

#1
Dear Metastock Users,

Is there anyone who could help me out to the write the following formula...

1.When Close is Higher than the Previous Close
2.When Close is Lower than the Previous Close
3.When Close is the Same as the Previous Close
4.When is Close equal to Open

I want to plot coloured volume bars for No.
1.Blue
2.Red
3. Brown
4. Brown

I greatly appreciate if any expert here help me out.
Thank you in advance.
 
Last edited:

mastermind007

Well-Known Member
#2
Dear Metastock Users,

Is there anyone who could help me out to the write the following formula...

1.When Close is Higher than the Previous Close
2.When Close is Lower than the Previous Close
3.When Close is the Same as the Previous Close
4.When is Close equal to Open

I want to plot coloured volume bars for No.
1.Blue
2.Red
3. Brown
4. Brown

I greatly appreciate if any expert here help me out.
Thank you in advance.
Formulas are

1.
Code:
C > Ref(C, -1);
2.
Code:
C < Ref(C, -1);
3.
Code:
C == Ref(C, -1);
4.
Code:
C == O;
Coloring of any indicator in metastock can be done through front-end after it is plotted, not before.
 
#3
Thank you very much Mastermind007.

But How do you plot it?
Do you go to the indicator builder and write it out?
Appreciate it.
 

KelvinHand

Well-Known Member
#5
Formulas are

1.
Code:
C > Ref(C, -1);
2.
Code:
C < Ref(C, -1);
3.
Code:
C == Ref(C, -1);
4.
Code:
C == O;
Coloring of any indicator in metastock can be done through front-end after it is plotted, not before.
item 3 & 4 not correct in metastock but ok in Amibroker.
I think the ';' may cause issue also in Metastock.
 
Last edited:

Similar threads