Accelerate Buy&Sell VOLUME

Category: Indicators By: 4everTrading Created: May 28, 2018, 7:31 AM
May 28, 2018, 7:31 AM
Indicators
2 Comments

Initially the volume indicates the number of contracts that are linked in the market in a specific time frame. This indicator tries to separate the long and short volume into a candle. Once the volume of each candle is separated, the indicator is calculated based on the simple average (long length) minus the exponential average (short length).

In addition, there is a MACD calculated on volume has been added, which allows us to have confirmation that the volume is correct and not false. Beware, the MACD is not the sum total of the long and short volume !!

Remember, this is not a pure/full volume, that’s why sometimes you’ll see the volume under 0, This is accelerate VOLUME.

You’re comments are welcome.

Regards

Xusto

//Created by Xusto
//v0.1
//Buy and Sell volume acelerate. This is nor a pure volume

  

//PeriodFast --> Bar numbers used for fast period calculations (Value Recomended 4)
PeriodFast = 4
//PeriodSlow --> Bar numbers used for slow period calculations (Value Recomended 10)
PeriodSlow = 10


///////////////////////////////////////
///////////////////////////////////////
//Candle Sections
//Full Range
a = high-low
//Green Candle
b = open-low
c = high-close
//Red Candle
d = high-open
e = close-low
///////////////////////////////////////
///////////////////////////////////////
  
///////////////////////////////////////
///////////////////////////////////////
//Unitary volume (Buy&Sell)
//Green Candle
volUniBuy = volume/(a+b+c)
//Red Candle
volUniSell = volume/(a+d+e)
///////////////////////////////////////
///////////////////////////////////////
  
///////////////////////////////////////
///////////////////////////////////////
//Volume calculated by candle
//Buy volume on green candle
VolBuyGreen=a*volUniBuy
//Buy volume on red candle
VolBuyRed=(d+e)*volUniSell
//Sell Volume on green candle
VolSellGreen=(b+c)*volUniBuy
//Sell Volume on red candle
VolSellRed=a*volUniSell

if close>=open then
 VolBuyGreen = VolBuyRed
 VolSellGreen = 0
else
 VolSellRed = VolSellGreen
 VolBuyRed = 0
endif
///////////////////////////////////////
///////////////////////////////////////
  
///////////////////////////////////////
///////////////////////////////////////
//Average
AverageVolBuy1=ExponentialAverage[PeriodFast](VolBuyGreen)
AverageVolSell1=ExponentialAverage[PeriodFast](VolSellRed)
AverageVolBuy2=Average[PeriodSlow](VolBuyGreen)
AverageVolSell2=Average[PeriodSlow](VolSellRed)

AverageVolumeBuy=AverageVolBuy1-AverageVolBuy2
AverageVolumeSell=AverageVolSell1-AverageVolSell2
///////////////////////////////////////
///////////////////////////////////////

///////////////////////////////////////
///////////////////////////////////////
//MACD calculated over volume
MMFast = exponentialAverage[4](volume)
MMSlow = exponentialAverage[10](volume)

MACDVolume = MMFast - MMSlow
///////////////////////////////////////
///////////////////////////////////////
 

return AverageVolumeBuy coloured(0,255,0) style(line,2) as "Long Volume", AverageVolumeSell coloured(255,0,0) style(line,2) as "Short Volume", MACDVolume coloured(195,195,195) style(line,2) as "MACD", 0 as "Zero Line"

 

Download
Filename: Acelerate-BS-Volume.itf
Downloads: 356
Download
Filename: Volume3.png
Downloads: 108
Download
Filename: Volume-2.png
Downloads: 137
4everTrading Senior
I usually let my code do the talking, which explains why my bio is as empty as a newly created file. Bio to be initialized...
Author’s Profile

Comments

Logo Logo
Loading...