PureBytes Links
Trading Reference Links
|
Hi,
I have got a code problem as well. What I want this to do is to plot a
verticle line begining on a specified date and then plot a verticle line at
every squared number of days from the specified day forward, ie. 4 days
later, 9days later, 25days later, 49days later, 64days later, 81days... to
the end of the data or limited to about 42 squared.
This is what I have come up with so far, of course it doesn't work right.
Input: COLORz(Tool_White), Strtdate(0);
Var: count(-1), Sbar(0), Sqarz(0), Reff(0);
if date = Strtdate then
sbar = currentbar;
if sbar <> 0 then begin
count = count+1;
if count < 42 then
Sqarz = Square(count)
else Sqarz = 0;
Reff = TL_New(date+Sqarz,time[1],0,date[0]+Sqarz,time,100);
value2 = TL_SetExtLeft(Reff[0],True);
value2 = TL_SetExtRight(Reff[0],True);
value2 = TL_SetColor(Reff[0],COLORz);
end;
if false then plot1(C,"");
{**********************************end of code***************************}
Thanks,
Prosper
|