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 Up and Down for Amibroker (AFL)

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

Shows gaps up and down can give ideas on support and resistance areas credit to m potlach

Screenshots

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez almost 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn over 12 years ago
3_6Day GuaiLiLv
Submitted by motorfly over 12 years ago
Williams Alligator System
Submitted by durgesh1712 over 12 years ago
*Level Breakout system*
Submitted by Tinych over 12 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN( "Background Color" );
BKswitch = ParamToggle( "Background Color", "On,Off" );

OUTcolor = ParamColor( "Outer Panel Color", colorLightBlue );
INUPcolor = ParamColor( "Inner Panel Upper", colorBlack );
INDNcolor = ParamColor( "Inner Panel Lower", colorBlack );
TitleColor = ParamColor( "Title Color ", ColorRGB( 245, 245, 245 ) );

if( NOT BKswitch )
{
    SetChartBkColor( OUTcolor ); // color of outer border
    SetChartBkGradientFill( INUPcolor, INDNcolor, TitleColor ); // color of inner panel
}

_SECTION_END();

Gup = L > Ref( H, -1 );
Gdn = H < Ref( L, -1 );
Gap = Gup OR Gdn;
LinLen = Param( "Gap Line length", 10, 1, 100, 1 );
ShowLine = BarsSince( Gup OR Gdn ) < LinLen;
TextPos = Showline < Ref( ShowLine, -1 );
GapUpHi = IIf( ShowLine, ValueWhen( Gup, Ref( H, -1 ) ), Null );
GapUpLo = IIf( ShowLine, ValueWhen( Gup, L ), Null ); // OK
GapDnHi = IIf( ShowLine, ValueWhen( GDn, Ref( L, -1 ) ), Null ); // OK
GapDnLo = IIf( ShowLine, ValueWhen( GDn, H ), Null );
GapLineHi = IIf( ShowLine, ValueWhen( Gap, IIf( Gup, L, IIf( GDn, Ref( L, -1 ), Null ) ) ), Null );
GapLineLo = IIf( ShowLine, ValueWhen( Gap, IIf( Gdn, H, IIf( Gup, Ref( H, -1 ), Null ) ) ), Null );
Plot( C, "", colorBlack, styleBar );
Plot( GapLineHi, "", 5, styleStaircase );
Plot( GapLineLo, "", 4, styleStaircase );
FirstVisibleBar = Status( "FirstVisibleBar" );
Lastvisiblebar = Status( "LastVisibleBar" );

for( b = Max( LinLen, Firstvisiblebar ); b <= Lastvisiblebar AND b < BarCount; b++ )
{
    if( Gap[b - LinLen + 1] )
    {
        PlotText( NumToStr( GapLineHi[b], 1.2 ), b, GapLineHi[b], 5 );
        PlotText( "\n" + NumToStr( GapLineLo[b], 1.2 ), b, GapLineLo[b], 4 );
    }
}

4 comments

1. chetan ninganiya

@admin sir how to use this system ??

2. administrator

Not sure try googling ‘Gap Trading’

3. chetan ninganiya

@admin thanks sir.

4. chunwaihome

tanks your effort, How I only show gap with rate of change lager than 5%

Leave Comment

Please login here to leave a comment.

Back