Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Volume vs Price for Amibroker (AFL)

Rating:
3 / 5 (Votes 4)
Tags:
oscillator, amibroker

It’s a Volume vs Price Divergence AFL with exploration and buy-sell signal from stockbangladesh.com

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("ROC-Close");
safeguard="This is developed by StockBangladesh Research and Development department if you need any asistance please contact us at amibroker@stockbangladesh.com";

pre=StrMid( safeguard,21, 15 );

stockbangladesh_periods = Param("Periods", 3, 1, 200, 1 );
stockbangladesh_ROCclose=ROC( C, stockbangladesh_periods);
Plot( ROC( C, StockBangladesh_periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
pre= StrMid( safeguard, 33, 15 );

StockBangladesh_PriceUp = LinRegSlope( StockBangladesh_ROCclose, StockBangladesh_periods) > 0 ;

printf("PriceUp =%f\n", StockBangladesh_PriceUp);

_SECTION_END();

_SECTION_BEGIN("ROC-Volume");
StockBangladesh_periods = Param("Periods", 3, 1, 200, 1 );
Plot( ROC( V, StockBangladesh_periods), _DEFAULT_NAME(), ParamColor( "Color", colorGreen ), ParamStyle("Style") );

StockBangladesh_ROCvolume=ROC( V, StockBangladesh_periods);
StockBangladesh_VolumeUp = LinRegSlope( StockBangladesh_ROCvolume, StockBangladesh_periods) > 0 ;

printf("VolumeUp =%f\n", StockBangladesh_VolumeUp);

StockBangladesh_BullishDiv = NOT StockBangladesh_PriceUP AND StockBangladesh_ROCvolume;
StockBangladesh_BearishDiv = StockBangladesh_PriceUP AND NOT StockBangladesh_VolumeUp;
Filter = StockBangladesh_BullishDiv OR StockBangladesh_BearishDiv;
pre="Volume vs Price";
AddColumn( StockBangladesh_BullishDiv, "Bullish Divergence", 1.0,
colorDefault, IIf(StockBangladesh_BullishDiv, colorGreen, colorDefault ) );
AddColumn( StockBangladesh_BearishDiv , "Bearish Divergence", 1.0,
colorDefault, IIf(StockBangladesh_BearishDiv , colorRed, colorDefault) );

GfxSetOverlayMode(1);
GfxSelectFont("Tahoma", Status("pxheight")/12 );
GfxSetTextAlign( 6 );// center alignment
GfxSetTextColor( ColorRGB( 200, 200, 200 ) );
GfxSetBkMode(1); // transparent
GfxTextOut( pre, Status("pxwidth")/2, Status("pxheight")/6 );

_SECTION_END();

2 comments

1. mjorg

One StockBanglasesh note would have been enough. Do not need to place it in the code.

2. Shaheen

Thank you
Mr. Mahi I need your help could you please email me (forex.dse@gmail.com) your contact no

regards

Leave Comment

Please login here to leave a comment.

Back