Tom Demark's Sequential

#31
Dear Sir, Thanks for good inof. On your chart you are showing Sequential as simple digit 1 2 3 .. I am not asking for ur propriety afl but I would be very grateful to you if you could help me and tell how to draw Shape of simple digit 1, 2 3 etc. without circle ... PlotShapes .. ShapeDigit1 2 3 etc draws it with circle and it clutters chart. I have been trying to show simple digit for long but no success. Plz help
I dont have any proprietory AFL. The markings were done by me by manual counting.

Smart_trade
 
#32
Thanks a lot Smart trade for ur kind n quick response. . Yea I was trying PlotText .. but it needs both x and y coordinate while PlotShapes requires just yposition. I am a bit confused n wary of x coordinate as it makes things so complex and requires barcount and at times "For looping". Just to show Text I hope it wont be so complex.. perhaps I am doing something wrong abt PloTtext.. I did try to convert in the following way :
From using plotshape :
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))))))))),colorLightOrange, 0, H, 20);
I would be very obliged for right direction to use plottext:
if(Buy9Bars==1) PlotText("1", 0, H, colorLightOrange, 20);
if(Buy9Bars==2) PlotText("2", 0, H, colorLightOrange, 20);
if(Buy9Bars==3) PlotText("3", 0, H, colorLightOrange, 20);
if(Buy9Bars==4) PlotText("4", 0, H, colorLightOrange, 20);
if(Buy9Bars==5) PlotText("5", 0, H, colorLightOrange, 20);
if(Buy9Bars==6) PlotText("6", 0, H, colorLightOrange, 20);
if(Buy9Bars==7) PlotText("7", 0, H, colorLightOrange, 20);
if(Buy9Bars==8) PlotText("8", 0, H, colorLightOrange, 20);
if(Buy9Bars>9) PlotText("#", 0, H, colorLightOrange, 20);
But it is wrong code as x oordinate as 0 makes no sense .. Should I use ValueWhen bar by bar aaaand then put it there... i m so muddledheaded :(
 

mastermind007

Well-Known Member
#33
Thanks a lot Smart trade for ur kind n quick response. . Yea I was trying PlotText .. but it needs both x and y coordinate while PlotShapes requires just yposition. I am a bit confused n wary of x coordinate as it makes things so complex and requires barcount and at times "For looping". Just to show Text I hope it wont be so complex.. perhaps I am doing something wrong abt PloTtext.. I did try to convert in the following way :
From using plotshape :

I would be very obliged for right direction to use plottext:


But it is wrong code as x oordinate as 0 makes no sense .. Should I use ValueWhen bar by bar aaaand then put it there... i m so muddledheaded :(
Study the example that I cut pasted from amibroker help. x is simply the bar index; simplest value is i (the loop variable) when code is inside a loop.

Outside of loop requires more complicated calculations involving functions that return bar indexes

Images that Plotshapes puts are lot bigger than what you can manage by plottign text.
 
Last edited:

Similar threads