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

Re[2]: Why does this TrendLine function fails at times?



PureBytes Links

Trading Reference Links

DH,

Just got back from a hunting trip to North Texas.  Killed a
wild pig!  Anyway, thanks for looking at my problem.  I had
started out with the coding looking like what you suggested.
Your suggestion makes since.


But, with,

    TL_Level_ID = TL_New( Date[1], time[1], Level, Date, Time, Level ) ;

in place, I get a different problem.   That is, at times,  trendlines stay
enabled and never get removed.

This function is support to terminate the older TL and
replace it with a newer support/resistence level.  With this
version of code I get a "bunch" of old historicial lines
continually extending to the right.  This problems is also erratic.
That is, most of the time the lines do get terminated, but sometimes
they linger.

Is my assumption about functions incorrect?  I am assuming
that each distinct call to a function, is such that each
gets a unique variable storage area (possibly a stack) for the functions
variables.

Regards,
Ernie
ebonugli@xxxxxxxx