Skip to main content

Gap Up Gap Down Exploration for Amibroker (AFL)

amilove over 2 years ago Amibroker (AFL)

  • Rating:
    0 / 5 (Votes 0)
  • Tags:
    amibroker, exploration

Gap Up Gap Down Exploration

Indicator / Formula

Copy & Paste Friendly

Finding Gap by Exploration

_SECTION_BEGIN("GAP");

PL=TimeFrameGetPrice( "L", inDaily, -1 );
PH=TimeFrameGetPrice( "H", inDaily, -1 );

GaUp = Low > PH ; 
GaDo = High < PL ;

// Exploration
Filter = GaUp OR GaDo ;
DK_status = WriteIf(GaUp," G.Up",WriteIf(GaDo," G.Do"," No Sign"));
DK_col = IIf (GaUp,colorLime, IIf (GaDo,colorCustom16,colorLightOrange));
AddTextColumn(DK_status, " Gap ", 1, colorWhite, DK_col); 

_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.