// This text will not move with price. // Displays to the right, be sure to make sufficient room to right. // Insert into subgraph 1. // Adjust vertical position of text by // using input (Test1VertPct and Test2VertPct) // which can be varied from 0 (bottom) to 100 (top). Inputs: Set_Arrow_Alert(10); Inputs: AlertTicks(5); Inputs: AlertText("ticks"); Inputs: NonAlertClr(white); Inputs: AlertClr(green); Inputs: Dif_above_Trigger(4); Inputs: Up_Clr(blue); Inputs: Dn_Clr(Red); var: Text1VertPct(100), // Text2VertPct(75), // Text3VertPct(50), // Text4VertPct(0), // Text5VertPct(-100), // Text6VertPct(-200), // Text7VertPct(-300); // Var: TickPC(0); if bartype =0 then // 0 = Ticks (Ticks & Contracts) begin TickPC = (Upticks + Downticks)*100 / Barinterval; end; vars: txt1(0),txt2(0),txt3(0),txt4(0),txt5(0),txt6(0),txt7(0); if BarType <= 1 then begin if BarNumber = 1 then begin // TEXT // //initialize text vars txt1 = text_new(date,time,l[1]," ");text_SetStyle(txt1,3,1); {txt2 = text_new(date,time,close," ");text_SetStyle(txt2,3,1); txt3 = text_new(date,time,close," ");text_SetStyle(txt3,3,1); txt4 = text_new(date,time,close," ");text_SetStyle(txt4,3,1); txt5 = text_new(date,time,close," ");text_SetStyle(txt5,3,1); txt6 = text_new(date,time,close," ");text_SetStyle(txt6,3,1); txt7 = text_new(date,time,close," ");text_SetStyle(txt7,3,1); } End; vars: TicksToGo(0),txtStr(""), txtID(-1),txtPos(5),AlertTxt(""), AlertTime(0),AlertID(-1); if time <> time[1] or TicksToGo <= 0 then begin TicksToGo = BarInterval; TicksToGo = TicksToGo - ticks; //Group 1 value1 = text_SetVertLocation(txt1, Text3VertPct); value1 = text_SetString(txt1,NumToStr(TicksToGo,0)+" " +( NumToStr(TickPC,0)+"% ")) ; //TICK TIMER If TicksToGo > AlertTicks then text_SetColor(txt1,NonAlertClr); If TicksToGo < AlertTicks then text_SetColor(txt1,AlertClr); If TicksToGo <= Set_Arrow_Alert then text_SetString(txt1,NumToStr(TicksToGo,0)+" <<===="); If TicksToGo <= Set_Arrow_Alert then text_SetColor(txt1,red); end; end;