Skip to main content

Volume Zone for Amibroker (AFL)

majed 7 almost 13 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 4)
  • Tags:
    oscillator, trading system, amibroker, exploration

Assist in the search for the change in quantities

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Volume Zone Oscillator");
//Volume Zone Oscillator 
C1=C;
V1=V;
period=14;
R= IIf (C1>Ref(C1,-1), V1,-V1); 
VP= EMA (R, period);
TV=EMA (V, period);
VZO= 100*(VP/TV);
Plot(Vzo,"",7,4);
Plot(60,"",3,1);
Plot(40,"",3,1);
Plot(0,"",3,1);
Plot(-60,"",3,1);
Plot(-40,"",3,1);
PlotOHLC(Null,60,40,Null,"",colorDarkRed,styleCloud);
PlotOHLC(Null,-60,-40,Null,"",colorDarkGreen,styleCloud); 
 
///////////////////////////////buy/sell///////////////////////
Buy=Cross(VZO,-40);Sell=Cross(40,VZO);
/////////////////////////shapes ///////////////////////////////
shape = Buy * shapeUpTriangle + Sell * shapeDownTriangle;
PlotShapes( shape, IIf( Buy, colorBrightGreen, colorRed ),0, IIf( Buy,VZO,VZO) );
/////////////////////////exploration ///////////////////////////////
Filter=Buy OR Sell; 
AddColumn( IIf(Buy,1,IIf(Sell,-1,Null)) ,"B/S",1.0,colorWhite,IIf(Buy,colorGreen,IIf(Sell,colorRed,Null)),60);
 
/////////////////////////////////////////////////////////////////////
_SECTION_END();

1 comments

1. hotaro3
almost 13 years ago

thanks for modification of Vol Zone Osilator by filling bands with color. the original code is as follows:

_SECTION_BEGIN("VolZoneOsilator");
function VZO( Period ) 
{ 
 R = sign( Close - Ref( Close, -1 ) ) * Volume; 
 VP = EMA( R, Period ); 
 TV = EMA( Volume, Period ); 
 return Nz( 100 * VP / TV ); 
} 

Period = Param("Period", 14, 1, 100 ); 
Plot( VZO( Period ), "Volume Zone Osc" + _PARAM_VALUES(), colorBlack, styleThick ); 
Plot( 60, "", colorLightOrange, styleNoLabel ); 
Plot( 40, "", colorLightOrange, styleNoLabel  ); 
Plot( 0, "", colorBlack, styleNoLabel  ); 
Plot( -40, "", colorLime, styleNoLabel  ); 
Plot( -60, "", colorLime, styleNoLabel  );
_SECTION_END();

Leave Comment

Please login here to leave a comment.