PureBytes Links
Trading Reference Links
|
Hi Guys,
I created code to label an indicator on a chart but I can't center it
or make it print left formatted. Any suggestions? I was not
able to do it with Text_SetLocation or formatting the text on the chart.
Thanks,
John
INPUT:COUNT(15),BARSBACK(2);
VAR:COUNTER(0),Z(0), Txt1(""), dn(0), Text_New2(0);
IF C<=C[BARSBACK] THEN COUNTER=COUNTER+1 ELSE COUNTER=0;
IF COUNTER=COUNT THEN BEGIN
Plot1(.98*(H+L)/2,"Buy");
Plot2(.97*L,"Setup");
For value1 = StrLen("Buy S/U") downto 1 Begin
Txt1 = LeftStr(RightStr("Buy S/U", value1), 1);
Value2 = Text_new(date, time, .978*L, "Buy S/U");
End;
Text_New2 = Value2;
FOR Z=0 TO COUNT-1 BEGIN
Plot3[Z](L[Z],"Count");
END;
END;
|