Alright guys, I have done a few cosmetic modifications to the code.
I have not pasted the entire code since it makes reading TJ gets difficult. What people can do is to replace the code within the sections "TD Sequential Plotting" and "TD Points Plotting Area". It contains 3 changes:
A) Background of green/red is removed. I do not know if it has a purpose - it might since clicking on different regions of the chart changes the background color. However, I do not like it and have removed it. If you want it ... do not replace (comment out) the last 4 lines of the code at the very end.
B) Displaces the setup count vertically to give more space between the price bars and the CIRCLEs.
C) Makes the countdown signal more visual compared to the previous iteration. With my change, you see not only the arrow, but the BLUE circle also which makes you find these in a much easier way.
You can test this with the following scrips
- Apollo Tyre for a buy setup + countdown completion on November 9, 2012
**** Ritesh said the calculations were wrong, but that's how the code is now, so let's check with that
- Hindalco for a buy setup + countdown completion on October 22, 2012.
- Bajaj Auto for a sell setup + countdown completion on October 31, 2012.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//*********************************************** TD Sequential Plotting area*************************************************/
Plot(C, "", IIf(O>=C, colorRed, colorGreen), styleBar);
PlotShapes(IIf(Buy9Intr OR Sell9Intr, shapeDigit9, shapeNone),colorBlue, 0, H,
20);
if(ShowNumbers)
PlotShapes(IIf(Buy9Bars==1, shapeDigit1,
IIf(Buy9Bars==2, shapeDigit2,
IIf(Buy9Bars==3, shapeDigit3,
IIf(Buy9Bars==4, shapeDigit4,
IIf(Buy9Bars==5, shapeDigit5,
IIf(Buy9Bars==6, shapeDigit6,
IIf(Buy9Bars==7, shapeDigit7,
IIf(Buy9Bars==8, shapeDigit8,
IIf(Buy9Bars >9, shapeStar,shapeNone))))))))),colorGreen, 0, H, 10);
if(ShowNumbers)
PlotShapes(
IIf(Sell9Bars==1, shapeDigit1,
IIf(Sell9Bars==2, shapeDigit2,
IIf(Sell9Bars==3, shapeDigit3,
IIf(Sell9Bars==4, shapeDigit4,
IIf(Sell9Bars==5, shapeDigit5,
IIf(Sell9Bars==6, shapeDigit6,
IIf(Sell9Bars==7, shapeDigit7,
IIf(Sell9Bars==8, shapeDigit8,
IIf(sell9bars>9, shapeStar,shapeNone))))))))),colorRed, 0, H, 10);
Sell = Sell13Signal AND NOT BuySignal;
Buy = Buy13Signal AND BuySignal;
Sell = ExRem(Sell, Buy);
Buy = ExRem(Buy, Sell);
PlotShapes(Sell*shapeCircle, colorBlue, 0, H, 25);
PlotShapes(Sell*shapeDownArrow, colorRed, 0, H, -40);
PlotShapes(Buy*shapeCircle, colorBlue, 0, L, -5);
PlotShapes(Buy*shapeUpArrow, colorGreen, 0, L, -20);
//if(StrToNum(NumToStr(BuySignal)))
//bgColor = ColorRGB(0,66, 2);
//else
//bgColor = ColorRGB(66,2, 0);
//SetChartBkGradientFill( colorBlack, bgColor);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//*********************************************** TD Points Plotting area*************************************************/