AJEET-SINGH

Candle Exploration

Aug 1st, 2019
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.79 KB | None
  1. // Downloaded by trade.ajeetsingh.net
  2.  
  3.  _SECTION_BEGIN("CANDLE REWORKING combination of Meta TC TS");
  4.     O1 = Ref(O,-1);O2 = Ref(O,-2);O3 = Ref(O,-3);O4 = Ref(O,-4);
  5.     H1 = Ref(H,-1);H2 = Ref(H,-2);H3 = Ref(H,-3);H4 = Ref(H,-4);
  6.     C1 = Ref(C,-1);C2 = Ref(C,-2);C3 = Ref(C,-3);C4 = Ref(C,-4);
  7.     L1 = Ref(L,-1);L2 = Ref(L,-2);L3 = Ref(L,-3);L4 = Ref(L,-4);
  8.  
  9.     GraphXSpace = 5;
  10.  
  11.     /*UP and Down Trend of last 4 days*/
  12.  
  13.     dtrend = (L1 < L2)AND (L2 < L3) AND (L3 < L4);
  14.     utrend = (H1 > H2)AND (H2 > H3) AND (H3 > H4);
  15.  
  16.     /*Maximum High Today - (MHT)
  17.     Today is the maximum High in the last 5 days*/
  18.     MHT=  HHV(H,5)==H;
  19.  
  20.     /*Maximum High Yesterday - (MHY)
  21.     Yesterday is the maximum High in the last 5 days*/
  22.     MHY=  HHV(H,5)==Ref ( H, -1);
  23.  
  24.     /*Minimum Low Today - (MLT)
  25.     Today is the minimum Low in the last 5 days*/
  26.     MLT=  LLV(L,5)==L;
  27.  
  28.     /*Minimum Low Yesterday - (MLY)
  29.     Yesterday is the minimum Low in the last 5 days*/
  30.     MLY=  LLV(L,5)==Ref(L,-1);
  31.  
  32.     /*Peircing Percent*/
  33.  
  34.     PiercingPercent = ((C - C1)/C1) * 100;
  35.  
  36.  
  37.     Doji  = (abs(O-C)<= ((H-L)*0.1));
  38.  
  39.     BlackCandle = (O>C);
  40.  
  41.     LongBlackCandle = (O>C AND (O-C)/(.001+H-L)>.6);
  42.  
  43.     SmallBlackCandle = ((O>C) AND ((H-L)>(3*(O-C))));
  44.  
  45.     WhiteCandle = (C>O);
  46.  
  47.     LongWhiteCandle  = ((C>O) AND ((C-O)/(.001+H-L)>.6));
  48.  
  49.     SmallWhiteCandle = ((C>O) AND ((H-L)>(3*(C-O))));
  50.  
  51.     BlackMaubozu = (O>C AND H==O AND C==L);
  52.  
  53.     WhiteMaubozu = (C>O AND H==C AND O==L);
  54.  
  55.     BlackClosingMarubozu  = (O>C AND C==L);
  56.  
  57.     WhiteClosingMarubozu = (C>O AND C==H);
  58.  
  59.     BlackOpeningMarubozu = (O>C AND O==H);
  60.  
  61.     WhiteOpeningMarubozu = (C>O AND O==L);
  62.  
  63.     OpenGap = ((C1 - O)/O) * 100;
  64.  
  65.     CloseGap = ((O - C1)/C1) * 100;
  66.  
  67.  
  68.     ///////************************************** Engulfings ********************************************//////////////
  69.     BullishEngulfing  = (LongWhiteCandle AND dtrend AND (O1>C1) AND (C>O) AND (C>= O1) AND (C1>= O) AND ((C-O)>(O1-C1)));
  70.  
  71.  
  72.     _SECTION_BEGIN("");
  73.     BI = BarIndex();
  74.     BV = BeginValue(BarIndex());
  75.     EV = EndValue(BarIndex());
  76.     SV = SelectedValue(BarIndex());
  77.  
  78.     BuWholeEngulf = 0;              
  79.     CurrentBar = SelectedValue( BarIndex() );
  80.     FirstBullBar = CurrentBar - 30;
  81.     Bar = CurrentBar;
  82.  
  83.     do
  84.     {
  85.     if ( SelectedValue(Close) >= ( Open[Bar-1]) AND SelectedValue(Close) >= ( Close[Bar-1]) AND SelectedValue(Open) <= ( Open[Bar-1]) AND SelectedValue(Open) <= ( Close[Bar-1]) )
  86.           {
  87.                 BuWholeEngulf = BuWholeEngulf + 1;
  88.                  Bar--;
  89.           }
  90.          
  91.     }
  92.     while( Bar> FirstBullBar  AND  SelectedValue(Close) >= ( Open[Bar-1]) AND SelectedValue(Close) >= ( Close[Bar-1]) AND SelectedValue(Open) <= ( Open[Bar-1]) AND SelectedValue(Open) <= ( Close[Bar-1]));
  93.     _SECTION_END();
  94.  
  95.  
  96.     _SECTION_BEGIN("");
  97.  
  98.  
  99.     BearishEngulfing  = (MHT AND utrend  AND LongBlackCandle AND (C1>O1) AND (O>C) AND (O>= C1) AND (O1>= C) AND ((O-C)>(C1-O1)));
  100.  
  101.     _SECTION_BEGIN("");
  102.     BI = BarIndex();
  103.     BV = BeginValue(BarIndex());
  104.     EV = EndValue(BarIndex());
  105.     SV = SelectedValue(BarIndex());
  106.  
  107.     BeWholeEngulf = 0;              
  108.     CurrentBar = SelectedValue( BarIndex() );
  109.     FirstBearBar = CurrentBar - 30;
  110.     Bar = CurrentBar;
  111.  
  112.     do
  113.     {
  114.  
  115.     if ( SelectedValue(Close) <= ( Open[Bar-1]) AND SelectedValue(Close) <= ( Close[Bar-1]) AND SelectedValue(Open) >= ( Open[Bar-1]) AND SelectedValue(Open) >= ( Close[Bar-1]) )
  116.           {
  117.                
  118.                    BeWholeEngulf = BeWholeEngulf + 1;
  119.                              
  120.      Bar--;
  121.           }
  122.          
  123.     }
  124.     while( Bar> FirstBearBar  AND  SelectedValue(Close) <= ( Open[Bar-1]) AND SelectedValue(Close) <= ( Close[Bar-1]) AND SelectedValue(Open) >= ( Open[Bar-1]) AND SelectedValue(Open) >= ( Close[Bar-1]));
  125.                            
  126.     _SECTION_END();
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.     //////****************************************** Piercings ********************************************////////
  136.     PiercingLine = (Ref(LongBlackCandle,-1) AND dtrend AND(C1<O1) AND (((O1+C1)/2)<C) AND (O<C) AND (O<C1) AND (C<O1) AND ((C-O)/(.001+(H-L))>0.6));
  137.  
  138.     DarkCloudCover = (MHT AND Ref(LongWhiteCandle,-1) AND utrend AND C1>O1 AND ((C1+O1)/2)>C AND O>C AND O>C1 AND C>O1 AND (O-C)/(.001+(H-L)>0.6) );
  139.  
  140.  
  141.     ///////////////**********************************Hammers *****************************************//////////////////
  142.  
  143.  
  144.     dhammertrend = (L < L1) AND (L1 < L2)AND (L2 < L3) AND (L3 < L4);
  145.     uhangingmantrend = (H > H1) AND(H1 > H2)AND (H2 > H3) AND (H3 > H4);
  146.  
  147.     Hammer  = (((H-L)>3*(O-C)) AND ((C-L)/(.001+H-L)>0.6) AND ((O-L)/(.001+H-L)>0.6) AND dhammertrend AND NOT Doji);
  148.  
  149.     /*Hammer Tails*/
  150.  
  151.  
  152.     BlackHammerTail =  (C-L) / (O-C);
  153.  
  154.     WhiteHammerTail =  (O-L) / (C-O);
  155.  
  156.  
  157.     HangingMan  = (((H-L)>4*(O-C)) AND ((C-L)/(.001+H-L)>= 0.75) AND ((O-L)/(.001+H-L)>= 0.75) AND uhangingmantrend AND NOT Doji);
  158.     /*HangingMan Tails*/
  159.  
  160.  
  161.     BlackHangingManTail =  (C-L) / (O-C);
  162.  
  163.     WhiteHangingManTail =  (O-L) / (C-O);
  164.  
  165.  
  166.  
  167.  
  168.  
  169.     Harami=
  170.       IIf(O>C AND O1>C1 AND O<O1 AND C>C1,1,
  171.       IIf(O>C AND C1>O1 AND C>O1 AND O<C1,1,
  172.       IIf(C>O AND C1>O1 AND C<C1 AND O>O1,1,
  173.       IIf(C>O AND O1>C1 AND O>C1 AND C<O1,1,0))));
  174.  
  175.  
  176.     BullishHarami = (Harami AND (O1>C1) AND Ref(LongBlackCandle,-1) AND NOT LongWhiteCandle);
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.     InvertedHammer  = (((H-L)>3*(O-C)) AND ((H-C)/(.001+H-L)>0.6) AND ((H-O)/(.001+H-L)>0.6));
  184.  
  185.     ShootingStar = (((H-L)>4*(O-C)) AND ((H-C)/(.001+H-L)>= 0.75) AND ((H-O)/(.001+H-L)>= 0.75));
  186.  
  187.     BlackSpinningTop= ((O>C) AND ((H-L)>(3*(O-C))) AND (((H-O)/(.001+H-L))<.4) AND (((C-L)/(.001+H-L))<.4));
  188.  
  189.     WhiteSpinningTop = ((C>O) AND ((H-L)>(3*(C-O))) AND (((H-C)/(.001+H-L))<.4) AND (((O-L)/(.001+H-L))<.4));
  190.  
  191.     BearishAbandonedBaby = ((C1 == O1) AND (C2>O2) AND (O>C) AND (L1>H2) AND (L1>H));
  192.  
  193.     BearishEveningDojiStar = ((C2>O2) AND ((C2-O2)/(.001+H2-L2)>.6) AND (C2<O1) AND (C1>O1) AND ((H1-L1)>(3*(C1-O1))) AND (O>C) AND (O<O1));
  194.  
  195.      
  196.  
  197.  
  198.  
  199.     ThreeOutsideDownPattern = ((C2>O2) AND (O1>C1) AND (O1>= C2) AND (O2>= C1) AND ((O1-C1)>(C2-O2)) AND (O>C) AND (C<C1));
  200.  
  201.     BullishAbandonedBaby = ((C1 == O1) AND (O2>C2) AND (C>O) AND (L2>H1) AND (L>H1));
  202.  
  203.     BullishMorningDojiStar = ((O2>C2) AND ((O2-C2)/(.001+H2-L2)>.6) AND (C2>O1) AND (O1>C1) AND ((H1-L1)>(3*(C1-O1))) AND (C>O) AND (O>O1));
  204.  
  205.  
  206.  
  207.     ThreeOutsideUpPattern = ((O2>C2) AND (C1>O1) AND (C1>= O2) AND (C2>= O1) AND ((C1-O1)>(O2-C2)) AND (C>O) AND (C>C1));
  208.  
  209.  
  210.  
  211.     ThreeInsideUpPattern = ((O2>C2) AND (C1>O1) AND (C1<= O2) AND (C2<= O1) AND ((C1-O1)<(O2-C2)) AND (C>O) AND (C>C1) AND (O>O1));
  212.  
  213.  
  214.  
  215.     BearishHarami = ((C1>O1) AND (O>C) AND (O<= C1) AND (O1<= C) AND ((O-C)<(C1-O1)));
  216.  
  217.     ThreeInsideDownPattern = ((C2>O2) AND (O1>C1) AND (O1<= C2) AND (O2<= C1) AND ((O1-C1)<(C2-O2)) AND (O>C) AND (C<C1) AND (O<O1));
  218.  
  219.     ThreeWhiteSoldiers = (C>O*1.01) AND (C1>O1*1.01) AND (C2>O2*1.01) AND (C>C1) AND (C1>C2) AND (O<C1) AND (O>O1) AND
  220.     (O1<C2) AND (O1>O2) AND (((H-C)/(H-L))<.2) AND (((H1-C1)/(H1-L1))<.2) AND
  221.     (((H2-C2)/(H2-L2))<.2);
  222.  
  223.     ThreeBlackCrows = (O>C*1.01) AND (O1>C1*1.01) AND (O2>C2*1.01) AND (C<C1) AND (C1<C2) AND (O>C1) AND (O<O1) AND
  224.     (O1>C2) AND (O1<O2) AND (((C-L)/(H-L))<.2) AND (((C1-L1)/(H1-L1))<.2) AND
  225.     (((C2-L2)/(H2-L2))<.2);
  226.  
  227.     doji= (O == C);
  228.     Gap_Up = GapUp();
  229.     Gap_Down = GapDown();
  230.     BigGapUp = L>1.01*H1;
  231.     BigGapDown = H<0.99*L1;
  232.     HugeGapUp = L>1.02*H1;
  233.     HugeGapDown = H<0.98*L1;
  234.     DoubleGapUp = GapUp() AND Ref(GapUp(),-1);
  235.     DoubleGapDown = GapDown() AND Ref(GapDown(),-1);
  236.  
  237.  
  238.     /***********************************************************************************
  239.                                       LABELS
  240.     ***********************************************************************************/
  241.      
  242.     _SECTION_BEGIN("boyizar Systems");
  243.     Param("parameter",5);
  244.     _SECTION_END();
  245.  
  246.     _SECTION_BEGIN("");
  247.     CANDLE_LABELS_TOGGLE = ParamToggle("Labels","Off|On",1);
  248.     if(CANDLE_LABELS_TOGGLE==1)
  249.     {
  250.  
  251.     for( a = 0; a < BarCount; a++ )
  252.     {
  253.      
  254.  
  255.     if (BullishEngulfing[a]) (PlotText("  BuE",a,H[a]+2,colorPaleGreen));
  256.     if (PiercingLine[a]) (PlotText("PL",a,H[a]+2,colorPaleGreen));
  257.     if (Hammer[a]) (PlotText("Hr",a,H[a]+2,colorPaleGreen));
  258.     /*if (BullishHarami[a]) (PlotText("BH",a,H[a]+2,colorPaleGreen));*/
  259.  
  260.     if (BearishEngulfing[a]) (PlotText("BeE",a,H[a]+2,colorRed));
  261.     if (DarkCloudCover[a]) (PlotText("Dc",a,H[a]+2,colorRed));
  262.     if (HangingMan[a]) (PlotText("Hm",a,H[a]+2,colorRed));
  263.  
  264.  
  265.  
  266.     }
  267.     }
  268.  
  269.     CANDLE_ARROWS_TOGGLE = ParamToggle("CANDLE ARROWS","Off|On",1);
  270.     if(CANDLE_ARROWS_TOGGLE==1)
  271.     {
  272.  
  273.     (PlotShapes(BullishEngulfing * shapeSmallUpTriangle,colorPaleGreen,0,H,10));
  274.     (PlotShapes(PiercingLine * shapeSmallUpTriangle,colorPaleGreen,0,H,10));
  275.     (PlotShapes(Hammer * shapeSmallUpTriangle,colorPaleGreen,0,H,10));
  276.     /*(PlotShapes(BullishHarami * shapeSmallUpTriangle,colorPaleGreen,0,H,10));*/
  277.  
  278.     (PlotShapes(BearishEngulfing * shapeSmallDownTriangle,colorLightOrange,0,H,-20));
  279.     (PlotShapes(DarkCloudCover * shapeSmallDownTriangle,colorRed,0,H,-20));
  280.     (PlotShapes(HangingMan * shapeSmallDownTriangle,colorLightOrange,0,H,-20));
  281.  
  282.     }
  283.     _SECTION_END();
  284.  
  285.  
  286.  
  287.  
  288.     BULL_ENG = LastValue(Cum(BullishEngulfing));
  289.     printf("Bull Eng %g\n",BULL_ENG);
  290.     PlotText( "*",BULL_ENG,H[BULL_ENG]+4, colorYellow );
  291.  
  292.     CURRENT_BULL_ENG = Ref(BullishEngulfing,0);
  293.  
  294.  
  295.     PRI_CANDLE_BULLISH = WriteIf(BullishEngulfing,"Bullish Engulfing","")+ WriteIf(PiercingLine, "Piercing Line","")
  296.     + WriteIf(Hammer,"Hammer","")+ WriteIf(BullishHarami,"Bullish Harami","");
  297.    /* + WriteIf(dojiStarBullish,"Bullish Doji Star","") + WriteIf(breakAwayBullish,"Break Away","")
  298.     + WriteIf(hammerBullish,"Hammer","") + WriteIf(dragonflyDoji,"DrangonFly Doji","")
  299.     + WriteIf(HaramiCross,"Harami Cross","") + WriteIf(invertedHammer,"Inverted Hammer","")
  300.     + WriteIf(meetingLinesBullish,"Meeting Lines","") + WriteIf(morningStar,"Morning Star","")
  301.     + WriteIf(morningDojiStar,"Morning Doji Star","") + WriteIf(MatHoldBullish,"Mat Hold","")
  302.     + WriteIf(separatingLinesBullish,"Seperating Lines","");*/
  303.  
  304.     PRI_CANDLE_BEARISH =  WriteIf(BearishEngulfing,"Bearish Engulfing","") + WriteIf(DarkCloudCover, "Dark Cloud","")
  305.     + WriteIf(HangingMan,"Hanging Man","");
  306.     //+ WriteIf(haramiBearish, "Bearish Harami","") + WriteIf(abandonedBabybearish,"Aband Baby","")
  307.     //+ WriteIf(dojiStarBearish,"Bearish Doji Star","") + WriteIf(breakAwayBearish,"Break Away","")
  308.     //+ WriteIf(HangingMan,"Hanging Man","") + WriteIf(dragonflyDojiBearish,"DrangonFly Doji","")
  309.     //+ WriteIf(HaramiCrossBearish,"Harami Cross","") + WriteIf(shootingStarGap,"Shooting Star","")
  310.     //+ WriteIf(MeetingLinesBearish,"Meeting Lines","") + WriteIf(eveningStar,"Evening Star","")
  311.     //+ WriteIf(eveningDojiStar,"Evening Doji Star","") + WriteIf(separatingLinesBearish,"Seperating Lines","")
  312.     //+ WriteIf(gravestoneDoji,"GraveStone Doji","");
  313.  
  314.     /******************************************************************************************
  315.                       CHART TITLES
  316.     ***********************************************************************************************/
  317.  
  318.     _SECTION_BEGIN("BACK COLR");
  319.  
  320.     GfxSetOverlayMode(1);
  321.     SetChartBkColor( ParamColor("BG Color", colorBlack));
  322.     GfxSetOverlayMode(1);
  323.     GfxSelectFont("ARIAL BLACK", Status("pxheight")/20 ); /* Up down name*/
  324.     GfxSetTextAlign( 6 );// center alignment
  325.     GfxSetTextColor( ParamColor("Text Color", ColorHSB( 42, 42, 42 ) ));
  326.     GfxSetBkMode(0); // transparent
  327.     GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/7.5);
  328.     GfxSelectFont("tahoma", Status("pxheight")/30 );
  329.     GfxTextOut( FullName(), Status("pxwidth")/2, Status("pxheight")/5 );  /* Up Down Sector*/
  330.  
  331.     GfxSelectFont("courier", 12,400 );
  332.     GfxTextOut( "Copyright® Ajeet Singh", Status("pxwidth")/2, Status("pxheight")/4);
  333.     GfxSelectFont("Tahoma", Status("pxheight")/20 );
  334.     GfxTextOut( " CANDLESTICK CHARTS ", Status("pxwidth")/2, Status("pxheight")/15 );
  335.  
  336.  
  337.     GfxSelectFont("courier",10,0,italic=False,underline=False,0);
  338.     GfxSetBkMode(1);
  339.     GfxSetTextColor( ParamColor("charted by Color", colorWhite));
  340.     GfxTextOut("Charted by Ajeet Singh",100 ,14);
  341.  
  342.  
  343.     _SECTION_END();
  344.  
  345.     SetBarFillColor( IIf(O>C,colorOrange, colorDarkGreen ) );
  346.     Plot( C, "Price", IIf( O>C,colorRed, colorGreen ), styleCandle );
  347.  
  348.     Plot(C,"Close",colorWhite,64);
  349.     Chg=Ref(C,-1);
  350.     Title = EncodeColor(colorYellow)+  Title = Name() + " " + EncodeColor(2) + Date() +EncodeColor(11) + EncodeColor(colorWhite) + "{{INTERVAL}} " +
  351.       EncodeColor(55)+ "Open: "+ EncodeColor(colorWhite)+ WriteVal(O,format=1.2) +
  352.       EncodeColor(55)+ "High: "+ EncodeColor(colorWhite) + WriteVal(H,format=1.2) +
  353.       EncodeColor(55)+ "Low: "+ EncodeColor(colorWhite)+ WriteVal(L,format=1.2) +
  354.       EncodeColor(55)+ "Close: "+ WriteIf(C> Chg,EncodeColor(colorBrightGreen),EncodeColor(colorRed))+ WriteVal(C,format=1.2)+
  355.       EncodeColor(55)+ "Change: "+ WriteIf(C> Chg,EncodeColor(colorBrightGreen),EncodeColor(colorRed))+ WriteVal(ROC(C,1),format=1.2)+ "%"+
  356.       EncodeColor(55)+ "Volume: "+ EncodeColor(colorWhite)+ WriteVal(V,1)
  357.  
  358.  
  359.  
  360.     +"\n"
  361.  
  362.     +"\n"+EncodeColor(colorWhite)+"> Candle : "+EncodeColor(colorBrightGreen)+PRI_CANDLE_BULLISH +
  363.  
  364.     EncodeColor(colorRed)+PRI_CANDLE_BEARISH + EncodeColor(colorWhite)+"..."+
  365.  
  366.  
  367.     "\n"+/***********************************************************************************************
  368.     Standards of Cover (Moderate and low Reliability)
  369.     /****************************************************************************************************/
  370.     EncodeColor(colorOrange)+
  371.     WriteIf(BullishEngulfing,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bearish.\n"+
  372.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  373.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Required.\n"+"\n"+
  374.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  375.     EncodeColor(colorYellow)+"1) Disparity of white vs black body is indicative of the\n    emerging bull power.\n" +
  376.     "2) Higher probability of reversal if there is heavy\n    volume on the day of second real body.\n" +
  377.     "3) Higher probability of reversal if the second day\n    body engulfs more than one real body. \n" +
  378.     "4) Greater the open gaps down from previous close\n    greater the probability of strong reversal. \n" +
  379.     "5) If engulfing body engulfs body and shadow of the\n    previous day may be probability of strong reversal. \n \n" +
  380.  
  381.     EncodeColor(colorPink)+" > CONFIRMATION :\n Third Day Confirmation needed in form of a \na)  white candle ,\nb)  large gap up or \nc)  higher close.\n\n" +
  382.     EncodeColor(colorRed)+" > CURRENT CANDLE\n"+
  383.     EncodeColor(colorAqua)+" *  The gap down opening of the current candle is\n    "+Prec(OpenGap,1)+" % from previous Day.\n" +
  384.     "*  The current white body is engulfing the\n    preceeding "+BuWholeEngulf+" bodies","")+
  385.  
  386.  
  387.  
  388.  
  389.     EncodeColor(colorOrange)+
  390.     WriteIf(BearishEngulfing,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bullish.\n"+
  391.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  392.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Required.\n"+"\n"+
  393.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  394.     EncodeColor(colorYellow)+"1) Disparity of black vs white body is indicative of the\n    emerging bear power.\n" +
  395.     "2) Higher probability of reversal if there is heavy\n    volume on the day of second real body.\n" +
  396.     "3) Higher probability of reversal if the second day\n    body engulfs more than one real body. \n" +
  397.     "4) Greater the open gaps up from previous close\n    greater the probability of strong reversal. \n" +
  398.     "5) If engulfing body engulfs body and shadow of the\n    previous day may be probability of strong reversal. \n \n" +
  399.  
  400.     EncodeColor(colorPink)+" > CONFIRMATION :\n Third Day Confirmation needed in form of a \na)  black candle ,\nb)  large gap down or \nc)  lower close.\n\n" +
  401.     EncodeColor(colorRed)+" > CURRENT CANDLE\n"+
  402.     EncodeColor(colorAqua)+" *  The gap up opening of the current candle is\n    "+Prec(CloseGap,1)+" % from previous Day.\n" +
  403.     "*  The current black body is engulfing the\n    preceeding "+BeWholeEngulf+" bodies","") +
  404.  
  405.  
  406.  
  407.  
  408.     EncodeColor(colorOrange)+
  409.     WriteIf(PiercingLine,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bearish.\n"+
  410.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  411.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Required.\n"+"\n"+
  412.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  413.     EncodeColor(colorYellow)+"1) Higher the white candle closes into the\n    black candle stronger the reversal.\n" +
  414.     "2) Higher probability of reversal if there is heavy\n    volume during first and second real body days.\n" +
  415.     "3) Greater the gap down from previous day close\n    more pronounced the signal. \n \n" +
  416.  
  417.     EncodeColor(colorPink)+" > CONFIRMATION :\n Third Day Confirmation needed in form of a \na)  white candle ,\nb)  large gap up or \nc)  higher close.\n\n" +
  418.     EncodeColor(colorRed)+" > CURRENT CANDLE\n"+
  419.     EncodeColor(colorAqua)+" *  The gap down opening of the current candle is\n    "+OpenGap+" % from previous Day.\n" +
  420.     "*  The current white body penetrates\n "+Prec(PiercingPercent,1)+" above the preceding day candle","") +
  421.  
  422.  
  423.  
  424.     EncodeColor(colorOrange)+
  425.     WriteIf(DarkCloudCover,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bullish.\n"+
  426.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  427.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Required.\n"+"\n"+
  428.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  429.     EncodeColor(colorYellow)+"1) Black candle penetrates deeper into\n    previous day white candle.\n" +
  430.     "2) More than 50% penetration of black \n    candle close into prior white candle.\n" +
  431.     "3) If both candles are morabozu then\n    black candle acts as a resistance. \n \n" +
  432.  
  433.     EncodeColor(colorPink)+" > CONFIRMATION :\n Third Day Confirmation needed in form of a \na)  black candle ,\nb)  large gap down or \nc)  lower close.","")+
  434.  
  435.  
  436.  
  437.     EncodeColor(colorOrange)+
  438.     WriteIf(Hammer AND BlackCandle,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bearish.\n"+
  439.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  440.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Definitely Required.\n"+"\n"+
  441.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  442.     EncodeColor(colorYellow)+"1) The longer the lower shadow the\n    higher the potential of reversal.\n" +
  443.     "2) A gap down from the previous days close\n    sets up for a strong reversal.\n" +
  444.     "3) Bullish Dragonfly Doji is considered\n    is considered more bullish.\n\n" +
  445.     EncodeColor(colorPink)+" > CONFIRMATION :\n Next Day Confirmation needed in form of a \na)  white candle ,\nb)  large gap up or \nc)  higher close.\n \n" +
  446.  
  447.     EncodeColor(colorRed)+" > CURRENT CANDLE\n" +
  448.     EncodeColor(colorAqua)+" *  The tail of the Bullish Hammer\n    is "+Prec(BlackHammerTail,1)+" times the its body.","")+
  449.  
  450.  
  451.  
  452.     EncodeColor(colorOrange)+
  453.     WriteIf(Hammer AND WhiteCandle,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bearish.\n"+
  454.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  455.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Definitely Required.\n"+"\n"+
  456.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  457.     EncodeColor(colorYellow)+"1) The longer the lower shadow the\n    higher the potential of reversal.\n" +
  458.     "2) A gap down from the previous days close\n    sets up for a strong reversal.\n" +
  459.     "3) Bullish Dragonfly Doji is considered\n    is considered more bullish.\n\n" +
  460.     EncodeColor(colorPink)+" > CONFIRMATION :\n Next Day Confirmation needed in form of a \na)  white candle ,\nb)  large gap up or \nc)  higher close.\n \n" +
  461.  
  462.     EncodeColor(colorRed)+" > CURRENT CANDLE\n" +
  463.     EncodeColor(colorAqua)+" *  The tail of the Bullish Hammer\n    is "+Prec(WhiteHammerTail,1)+" times the its body.","") +
  464.  
  465.  
  466.  
  467.  
  468.  
  469.     EncodeColor(colorOrange)+
  470.     WriteIf(HangingMan AND BlackCandle,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bullish.\n"+
  471.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  472.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Definitely Required.\n"+"\n"+
  473.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  474.     EncodeColor(colorYellow)+"1) The higher the lower shadow the\n    higher the potential of reversal.\n" +
  475.     "2) A gap up from the previous days close\n    sets up for a strong reversal.\n" +
  476.     "3) Bearish Dragonfly Doji is considered\n    is considered more bullish.\n\n" +
  477.     EncodeColor(colorPink)+" > CONFIRMATION :\n Next Day Confirmation needed in form of a \na)  black candle ,\nb)  large gap down or \nc)  lower close.\n \n" +
  478.  
  479.     EncodeColor(colorRed)+" > CURRENT CANDLE\n" +
  480.     EncodeColor(colorAqua)+" *  The tail of the Hanging Man\n    is "+Prec(BlackHangingManTail,1)+" times the its body.","")+
  481.  
  482.  
  483.  
  484.  
  485.  
  486.     EncodeColor(colorOrange)+
  487.     WriteIf(HangingMan AND WhiteCandle,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bullish.\n"+
  488.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  489.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Definitely Required.\n"+"\n"+
  490.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  491.     EncodeColor(colorYellow)+"1) The higher the lower shadow the\n    higher the potential of reversal.\n" +
  492.     "2) A gap up from the previous days close\n    sets up for a strong reversal.\n" +
  493.     "3) Bearish Dragonfly Doji is considered\n    is considered more bullish.\n\n" +
  494.     EncodeColor(colorPink)+" > CONFIRMATION :\n Next Day Confirmation needed in form of a \na)  black candle ,\nb)  large gap down or \nc)  lower close.\n \n" +
  495.  
  496.     EncodeColor(colorRed)+" > CURRENT CANDLE\n" +
  497.     EncodeColor(colorAqua)+" *  The tail of the Hanging Man\n    is "+Prec(WhiteHangingManTail,1)+" times the its body.","");
  498.  
  499.  
  500.  
  501.    
  502.     EncodeColor(colorOrange)+
  503.     WriteIf(BullishHarami,"> Prior Trend    " + EncodeColor(colorWhite) + ": Bearish.\n"+
  504.     EncodeColor(colorOrange)+"> Type                " + EncodeColor(colorWhite) + ": Reversal.\n"+
  505.     EncodeColor(colorOrange)+"> Confirmation " + EncodeColor(colorWhite) + ": Strongly Suggested.\n"+"\n"+
  506.     EncodeColor(colorLightBlue)+"> IMPORTANT FACTORS  " + EncodeColor(colorWhite) + "\n"+
  507.     EncodeColor(colorYellow)+"1) The location and size of second candle\n    influences magnitude of reversal.\n" +
  508.     "2) The higher the white candle closes up on\n    black candle more convincing a reversal.\n" +
  509.     "3) Markets usually enter a congestion phase\n    following the Bullish Harami.\n" +
  510.     "3) The most bullish are those that form with\n    a white/black or white/white combination.\n\n"+
  511.     EncodeColor(colorPink)+" > CONFIRMATION :\n Third Day Confirmation needed in form of a \na)  White candle ,\nb)  large gap up or \nc)  higher close.\n \n" +
  512.  
  513.     EncodeColor(colorRed)+" > CURRENT CANDLE\n" +
  514.     EncodeColor(colorAqua)+" *  The tail of the Hanging Man\n    is "+BlackHangingManTail+" times the its body.","");
RAW Paste Data Copied