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

GAP SCANNER for Amibroker (AFL)

Rating:
4 / 5 (Votes 2)
Tags:
Gap, amibroker, exploration

This explorer will scan the gapup/gapdown and shows in dynamic color.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("GAP SCANNER");

/*********** Volume Down for Chart and Exploration ***********************/


VolumeChange = ((TimeFrameGetPrice("V", inDaily, 0))/TimeFrameGetPrice("V", inDaily, -1)) * 100; 
OIChange = ((TimeFrameGetPrice("I", inDaily, 0)-TimeFrameGetPrice("I", inDaily, -1))/TimeFrameGetPrice("I", inDaily, -1)) * 100; 
PriceChange = ((TimeFrameGetPrice("C", inDaily, 0)-TimeFrameGetPrice("C", inDaily, -1))/TimeFrameGetPrice("C", inDaily, -1)) * 100;


ydayhigh = TimeFrameGetPrice("H", inDaily, -1);
ydaylow = TimeFrameGetPrice("L", inDaily, -1);
todayopen = TimeFrameGetPrice("O", inDaily, 0);;

gapupvar = ydayhigh < todayopen;
gapdownvar = ydaylow > todayopen;

Filter = gapupvar || gapdownvar;

AddTextColumn(WriteIf(gapupvar,"GAP UP", "GAP DOWN") , "GAP", 6.2, colorDefault, IIf(gapupvar,colorGreen, colorOrange), 84);
AddColumn( O, "Today Open", 1.2, colorDefault, colorDefault, 84);
AddColumn( TimeFrameGetPrice("L", inDaily, -1), "Yday Low", 1.2, colorDefault, colorDefault, 84);
AddColumn(PriceChange , "Price Change", 6.2, colorDefault, colorDefault, 84);
AddColumn(VolumeChange , "Vol Change", 6.2, colorDefault, colorDefault, 84);
AddColumn(OIChange , "OI Change", 6.2, colorDefault, colorDefault, 84);


_SECTION_END();

2 comments

1. ichufathima
_SECTION_BEGIN("GAP SCANNER");

/*********** Volume Down for Chart and Exploration ***********************/


VolumeChange = ((TimeFrameGetPrice("V", inDaily, 0))/TimeFrameGetPrice("V", inDaily, -1)) * 100; 
OIChange = ((TimeFrameGetPrice("I", inDaily, 0)-TimeFrameGetPrice("I", inDaily, -1))/TimeFrameGetPrice("I", inDaily, -1)) * 100; 
PriceChange = ((TimeFrameGetPrice("C", inDaily, 0)-TimeFrameGetPrice("C", inDaily, -1))/TimeFrameGetPrice("C", inDaily, -1)) * 100;


ydayhigh = TimeFrameGetPrice("H", inDaily, -1);
ydaylow = TimeFrameGetPrice("L", inDaily, -1);
todayopen = TimeFrameGetPrice("O", inDaily, 0);;

gapupvar = ydayhigh < todayopen;
gapdownvar = ydaylow > todayopen;

Filter = gapupvar || gapdownvar;

AddTextColumn(WriteIf(gapupvar,"GAP UP", "GAP DOWN") , "GAP", 6.2, colorDefault, IIf(gapupvar,colorGreen, colorOrange), 84);
AddColumn( O, "Today Open", 1.2, colorDefault, colorDefault, 84);
AddColumn( TimeFrameGetPrice("L", inDaily, -1), "Yday Low", 1.2, colorDefault, colorDefault, 84);
AddColumn(PriceChange , "Price Change", 6.2, colorDefault, colorDefault, 84);
AddColumn(VolumeChange , "Vol Change", 6.2, colorDefault, colorDefault, 84);
AddColumn(OIChange , "OI Change", 6.2, colorDefault, colorDefault, 84);


_SECTION_END();
2. haythamzoromba

Hi
You can use Gapup() & GapDown() instead of long coding which indicates 1 if true.

Leave Comment

Please login here to leave a comment.

Back