Skip to main content

Demand or supply bars for Amibroker (AFL)

tryingtotrade about 14 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    amibroker

Demand or Supply bars.

Author Savant Garde.

Link: http://www.traderji.com/day-trading/49521-thoughts-day-swing-trading-78.html

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN( "SG's Demand and Supply Bars" );
TopWick = IIf( Close > Open, High - Close, High - Open );
BotWick = IIf( Close > Open, Open - Low, Close - Low );

SBCond1 = TopWick > Ref( TopWick, -1 ) AND TopWick > Ref( TopWick, 1 );
SBCond2 = High > Ref( High, -1 ) AND High > Ref( High, 1 );
SBCond3 = Ref( TopWick, -1 ) > 0.009 AND Ref( TopWick, 1 ) > 0.009;

DBCond1 = BotWick > Ref( BotWick, -1 ) AND BotWick > Ref( BotWick, 1 );
DBCond2 = Low < Ref( Low, -1 ) AND Low < Ref( Low, 1 );
DBCond3 = Ref( BotWick, -1 ) > 0.009 AND Ref( BotWick, 1 ) > 0.009;

SpplyBar = IIf( SBCond1 AND SBCond2 AND SBCond3, shapeSmallCircle, shapeNone );
DmndBar = IIf( DBCond1 AND DBCond2 AND DBCond3, shapeSmallCircle, shapeNone );

PlotShapes( SpplyBar, ParamColor( "SupplyBar Color", colorRed ), 0, H, 10 );
PlotShapes( DmndBar, ParamColor( "DemandBar Color", colorGreen ), 0 , L, -10 );
_SECTION_END();

6 comments

about 14 years ago

Dear TTT,
am try to install the SUPPLY – DEMAND afl, but screen showing blank..
am need ur help… to solve this. thx

about 14 years ago

im glad to see that i am not the only one that get the green or red vertical line does any one know the cause too many sheets maybe?

Leave Comment

Please login here to leave a comment.