Skip to main content

Double Dojis Exploration for Amibroker (AFL)

ami4me about 13 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 21)
  • Tags:
    amibroker, exploration, pattern

This exploration can be run on any Market to point out towards entities which have formed ‘Doji’ candles on consecutive days , traders should watchout for breakouts on either side after this formation. Its a good tool to have in your arsenal.
The credit for this indicator goes to Mr.Boufalo .

Enjoy & Please VOTE if you like it , it encourages to share more .

Screenshots

Indicator / Formula

Copy & Paste Friendly
// double doji exploration 
// By Boufalo Ver. 1.00   
// 
SetChartOptions(0,chartShowArrows|chartShowDates);
Plot( C, "Close", ParamColor("Color", colorBlack ), ParamStyle("Style") | GetPriceStyle() ); 

doji = (O == C);
NearDoji1 = (abs(O-C)<= ((H-L)*0.1));
NearDoji2 =NearDoji1 AND Ref(NearDoji1,-1);
NearDoji3 =NearDoji1 AND Ref(NearDoji1,-1) AND Ref(NearDoji1,-2);

  showDoji = ParamToggle("NearDoji ","SHOW|HIDE",1);
    if( showDoji )
    {
    PlotShapes( shapeDigit0*doji , colorGreen, 0, H, 45 );  
    PlotShapes( shapeDigit1*NearDoji1  , colorBlue, 0, H, 30 );    
    PlotShapes( shapeDigit2*NearDoji2 , colorOrange, 0, H, 30 );    
    PlotShapes( shapeDigit3*NearDoji3, colorBrightGreen, 0, H, 30 );  
    }


Filter = NearDoji2 OR NearDoji3 ;

AddColumn (NearDoji1 ,"1Doji ",1);
AddColumn (NearDoji2 ,"2Doji ",1);
AddColumn (NearDoji3 ,"3Doji ",1);

6 comments

about 12 years ago

This would make good exploration. Could you include “Buy/Sell” formulas along with appropriate Arrows. Thanks for you help.

Dick

Leave Comment

Please login here to leave a comment.