VOLUME DELTA INDICATOR

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
BMS
Posts: 11
Joined: 24 Nov 2012
Has thanked: 1 time
Been thanked: 1 time

VOLUME DELTA INDICATOR

Postby BMS » 10 Mar 2013

Since the new MC 8.5 let us to have a correct volume delta calculation (having a reliable datafeed) I'm wandering if it is possible to plot on a chart a simple delta indicator.

I mean for example to have on a 5 min chart the total delta for that bar, not a cumulative delta but just the delta of that chart, a simple histogram that would be positive if the delta is positive and negative if the delta is negative.

Is something that is already in MC or we need to code it?
tks
BMS

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: VOLUME DELTA INDICATOR

Postby ABC » 18 Apr 2013

BMS,

this might work for you.

If you want to look at the Delta for a specific chart, simply add an additional instrument with the exact same resolution as your first instrument, but as Cumulative Delta. You can set it to hide or make the bars invisible and then add the attached study.
In case the Cumulative Delta is a different datastream than Data2, you just have to change the input called "CumulativeDeltaDataStream" to the correct number.
ABC_BidAskDelta.pla
Delta Study by abctradinggroup.com
(3.85 KiB) Downloaded 807 times
Regards,
ABC

In case there is any problem in importing the attached file, here is the open code.

Code: Select all

{
program name: ABC_Bid Ask Delta
last change: 2013-04-17
version: 1.00

Code Copyright 2013 ABC Trading Group
www.abctradinggroup.com All rights reserved.

Uses a second datastream to calculate the volume traded at bid and ask

ChangeLog:
2013-04-17: First Version

This study may be shared freely, as long as the copyright notice is included.
}


Inputs:
CumulativeDeltaDataStream (2),
UpColor (green),
DownColor (red),
ZeroColor (yellow);


Variables:
MyDelta (0);

if Date <> Date[1] then
MyDelta = Close Data(CumulativeDeltaDataStream)
else
MyDelta = Close Data(CumulativeDeltaDataStream) - Close[1] Data(CumulativeDeltaDataStream);

Plot1(0, "ZeroLine", ZeroColor);

switch(MyDelta)
begin
case > 0: SetPlotColor(2, UpColor);
case < 0: SetPlotColor(2, DownColor);
default: SetPlotColor(2, ZeroColor);
end;

Plot2(MyDelta, "Delta");

BMS
Posts: 11
Joined: 24 Nov 2012
Has thanked: 1 time
Been thanked: 1 time

Re: VOLUME DELTA INDICATOR

Postby BMS » 01 Jul 2013

Tks a lot ABC,
sorry but it is a long time I don't give a lood to the forum...
yes that's what I was looking for!!
I downloaded, compiled it and it works fine.

The only thing I noticed is that to me it works only if on the chart I have already the Cumulative Volume Delta; If I insert your indicator on a bar chart without the CVD it doesn't work
But it's fine also in this way!
Tks again,
regards
BMS


Return to “User Contributed Studies and Indicator Library”