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

Re:New indicator



PureBytes Links

Trading Reference Links

Dear Tomasz,
Thank you for valuable explanations.
We always need your confirmation.
--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> Hi,
> 
> >Because, whithout data for tomorrow, the program gives for
> >ref(close,1) the available today´s price.
> >(In my opinion, it should indicate an {empty} value, because
> >ref(close,+1) exists for all previous days except the last one)
> >I do not know how it is designed, I know how it works.]
> 
> Yes it gives today's price for the last bar as we don't know the 
future yet :-)
> The reason why it doesn't return {empty} is that some of the other
> functions may be confused if they see {empty} at the end of the 
array
> (normally {empty} values appear only at the beginning and all AFL 
functions
> are aware of this fact)

Please look at #3656. In this example we have {empty} as last day
(days) result, for another reason.

> Also: I agree with Dimitris that writing trading systems using Ref 
with positive
> offsets (looking into the future) would give results that could not 
be 
> reproduced in real life. (unless you have time-machine :-)))

I have one !!
But it is very old, full of dust, and I have lost the de-dusting 
manual.!!
Thank you very much for support.

Best Regards
Dimitris Tsokakis 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com