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

Re: [amibroker] Re: Bug in sellprice for some stocks



PureBytes Links

Trading Reference Links

Dear Stephane,

The problem is that sellprice array is not for storing
targets. Sellprice should be used exclusively to control
the price at which trade actually takes place.
This gives you maximum flexibility but (this is true) enables
a new ways for shooting yourself in a foot :-)

Therefore, if you (ab)use sellprice for storing target
prices you have to add the following at the end of your formula

sellprice = IIF( sell, sellprice, close );

This ensures that for all bars where sell signal is *not* generated
the sellprice array equals to close.

Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message -----
From: "Stephane Carrasset" <nenapacwanfr@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, November 07, 2001 3:00 PM
Subject: [amibroker] Re: Bug in sellprice for some stocks


> Tz,
>
> >
> > This is true that Open position take sellprice (coverprice for
> short) for
> > calculation. This is by design.
>
> In this case if the rules for LONG of a sellprice is a target of 100%
> of the entryprice, all open position will take this target of 100%.
> it is not realistic!!
> Don't you think we must exclude the open position of the results of a
> system ,
> Why take in account a trade when It is not finished?
>
>
> Stephane
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>