[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:EasyLanguage question



PureBytes Links

Trading Reference Links

> Here's a snippet of code that works in TS 4.0, but not in
> 
> If Time >= Value2 and Condition2 then begin
>     LineStyle = 0;
>     Line =  TL_New(Date, Time, C, Date, Time, L);
>     ExtR = TL_SetExtRight(Line, True);
>     ExtL = TL_SetExtLeft(Line,True);
>     SetColor = TL_SetColor(Line, tool_yellow);
>     Thickness = TL_SetSize(Line, 0);
>     Style = TL_SetStyle(Line, LineStyle);
>     Condition2 = false;
> end;
> 
> It places a vertical line on the bar that meets the time and condition in TS 4.0, but not TS2Ki.
> 
> How do I get this to work in TS2Ki?
> 



There is no TL_SetStyle for a 0 value. Change it from 1 to 5. See help.

Also, Tl_SetExtRight, TL_SetExtLeft, TL_SetColor, TL_SetSize, and
TL_SetStyle do not need to be set equal to any variables. They can stand
alone.