Hi Guys,
I am hoping someone may be able to help me create an indicator that will highlight that particular volume bar in a different color like purple.
The criteria would be as follows:
A loss of -0.2% or more on higher volume than the previous session. (I would be using in this on a daily time frame).
Cheers!
JSParticipant
Senior
Hi,
Is this the intention…?
Timeframe(Daily)
If Volume < 0.98 * Volume[1] then
R=128
G=0
B=128
Else
R=0
G=255
B=0
EndIf
Return Volume as "Volume" coloured(R, G, B)
Hi,
Yes that is the intention however with with the following parameters: A loss of -0.2% or more on higher volume than the previous session. (I would be using in this on a daily time frame).
And 3 colors if possible – Green for up day, red for down day and purple of the days that meet the requirements…..It would be much appreciated!
JSParticipant
Senior
Hi,
The percentage can be changed into “0.998”…
The purple color is already for a “down day”…
How do you want to define a “red day”… 🙂
Hi JS – I am sorry my inability to code has me completely lost when trying to make my own adjustments and I keep making a complete mess of it 🙁 ….would you be so kind as to assist?
Below I have taken a screenshot – all the volume bars marked ‘X’ can be any other color of your choosing to highlight them. These bars have higher volume than the previous session and have a equal or greater loss than -0.2% in the session. Sorry to waste your time!
JSParticipant
Senior
Hi @Tradethetrade83
No problem, I see what you mean now…
Timeframe(Daily)
If Close<Close[1] then
R=255
G=0
B=0
ElsIf Close>Close[1] then
R=0
G=255
B=0
EndIf
C1=Close[1]<Close[2]
C2=Close<Close[1]
C3=Volume >= 1.002 * Volume[1]
If C1 and C2 and C3 then
R=128
G=0
B=128
EndIf
Return Volume as "Volume" coloured(R, G, B)