PureBytes Links
Trading Reference Links
|
Franco,
You have touched upon a lingering peculiarity with AFL that I have experienced long ago. If the sell condition is dependent on the buy condition (such as a sell condition that refers back to the buyprice or something like that), then the multiple buy signals that arise from the code are not eliminated, even with exrem. That's why Stephane wrote his RemBuy.dll, which eliminates the problem with excessive buy signals interfering with sell signals that are dependent on the buy condition. So, you may have to invoke RemBuy.dll or revert to using script rather than AFL.
Al Venosaavcinci@xxxx
>From: "Franco Fornari"
>Reply-To: amibroker@xxxxxxxxxxxxxxx
>To:
>Subject: [amibroker] valuewhen(buy,....)
>Date: Tue, 29 Oct 2002 19:06:43 +0100
>
>Hello,
>
>I noticed a possible trouble, using valuewhen() to refer to the last buy. It seems that this function is referring to the last buy condition, wich is not always that one signaled by the last green arrow. Frequently, a trading system can detect a few buy conditions, before to generate a "sell". But I need to refer to the last green arrow and not to the last buy condition. How can I do it?
>
>Best regards,
>
>Franco
Surf the Web without missing calls! Get MSN Broadband. Click Here
|