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

There's Something for Everyone Here!



PureBytes Links

Trading Reference Links

Hi Everyone -

I made it a habit to scan the great influx of code hitting the list to find
new ways of doing things for the future.

JACKPOT!   I must test this out, but it appears that the code posted by
Hans for the regression channels contains a way to mark text on the chart,
then have these points passed on into variables for calculations.

What this means to me is finally a way to MANUALLY label an Elliot Wave
chart and then have these points available for calculations and indicator
stuff, etc......    All Right, Hans!   ---  Didn't know it could be done in
TS 4.0...

Will check it out tonight.


Later all,


Tom Cathey





(CLIP - CLIP ....   Refer to original post for complete code)


if currentbar = 1 then begin { examine all the text strings and save some 
>info about the ones we recognize }
>   handl = text_getfirst(2);
>   while handl > 0 begin
>      if text_getstring(handl) = labTL then begin { save the item's date, 
>time, value and handle }
>            if ix < iMax - 1 then begin
>          
>      tt[ix] = text_gettime(handl);
>                dd[ix] = text_getdate(handl);
>                vv[ix] = text_getvalue(handl);
>                ix = ix + 1;
>           end;
>      end;
>      handl = text_getnext(handl,2); { IMPORTANT -- infinite loop if this
is
>missing!  }
>   end;
>end;
>
>for ii = 0 to ix - 1 begin { check each point }
>   if time = tt[ii] and date = dd[ii] then begin { we've found a selected
>point }
>      bb[ii] = currentbar; { remember where we found it }
>      plot1(price,""); { show the user which point we used for the
>calculations }
>      if ii > 0 then begin { need at least 1 point }