PureBytes Links
Trading Reference Links
|
Dear sirs,
few weeks ago I made the e-mail that follow at Omega Research, by wich I
haven't still had a good answer.
Maybe here there is someone that could give me one.
Excuse me for uncorrect english form that you'll find in my e-mail.
Rodolfo.
_______________________________________________________________________________
"Dear sirs,the present e-mail to tell you about a problem that I have
with Automathic Trend-Line indicator.
I send you a omz file about italian future where I have seen the
following problem.
Taking a look to the code of the indicator, in the final part of it, I
think to have understood that when a breakup or a breakdown of
the current trendline occurs, the indicator signs the end of the current
trend-line in the current bar.
For the bearish trend-line
If RHSet[BarsPast]>=0 and Close[BarsPast] crosses over
TL_GetValue(RHTLRef, date[BarsPast], time[BarsPast]) then begin
RHTLRef2=TL_SetEnd(RHTLRef, Date,Time,TL_GetValue(RHTLRef, date,time));
RHTLBrk=True;
end;
For the bullish trend-line
If RLSet[BarsPast]>=0 and Close[BarsPast] crosses below
TL_GetValue(RLTLRef, date[BarsPast], time[BarsPast]) then begin
RLTLRef2=TL_SetEnd(RLTLRef, Date,Time,TL_GetValue(RLTLRef, date,time));
RLTLBrk=True;
end;
Looking at the charts, many times this occurs and graphically i see the
stop of the trend line, but some others the condition is
verified but the plot of the trend-line goes on.
I have tried to understand why, but i'm not able to find out the
solution.
I would also understand wich is the function of the following vars:
RHTLRef2(-1),RLTLRef2(-1),RHSet2(-1),RLSet2(-1).
Another thing.
At the end of the following loop if in the array I have found one swing
high higher than current, value22 assume value = 11 for exit to the
loop.
Why when I exit to the loop value22 before to do the below if condition
is equal to 12 ?
And the below condition, put in that way, if would be true that Value22
take value = 11, isn't true that looking the code it won't allow the
construction of the trend-lines ?
If RHDate[1]<>RHDate[1][1] then begin
For Value22=1 to 10 begin
If RHVal[Value22]>RHVal[0] then begin
RHArrayVal=Value22;
Value22=11;
End;
End;
If Value22<>11 then begin (the instructions that follow this, allow the
construction of all trend lines)
Waiting for your reply, i thank you for the cooperation."
|