Resolved: Capturing Trend Line Info: MC is froozed

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Resolved: Capturing Trend Line Info: MC is froozed

Postby arjfca » 17 Dec 2013

Hello

I'm starting the planning to code for a new tool that will capture draw trend line info.

I wrote a loop to capture the first and the last trend line draw by a user

Code: Select all

Var:
GVCount (0),
return_Val (0),
TL_Num (0),
TL_Num_Ex (0),
TL_First (0),
TL_Last (0),
List_String (""),
TL_Price_S (0),
TL_Price_E (0),
TL_Time_S (0),
TL_Time_E (0),
TL_Color (0),
Tl_Style (0);

Const:
Comma (","),
DrawManually (7);

Once begin
TL_First = TL_GetFirst(DrawManually );
Tl_Num = TL_First;
TL_Num_Ex = 0;
While TL_Num <> TL_Num_Ex begin
TL_Num_Ex = TL_NUM;
TL_NUm = TL_GetNext(Tl_Num,DrawManually);
print (TL_Num:0:0);
end;
TL_Last = TL_Num;
Print ("First: ", TL_First:0:0, " Last: ", TL_Last:0:0);
end;
- Running this code do froze MC. Any idea of the problem?

- What is a proper way to loop trough all trend lines
- How Can I know that I read the last one?

Martin

Resolved: Loop until TL_Num = -2

Return to “User Contributed Studies and Indicator Library”