PureBytes Links
Trading Reference Links
|
try this
/* detect the last bar
by tj
close trades on last bar for analysis window */
barnumber = cum( 1 );
lastbar = barnumber == lastvalue( barnumber );
/* and then modify the sell condition */
sell = your_original_formula;
sell = sell OR lastbar;
----- Original Message -----
From: <qqqqq_99999_qqqqq@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, July 02, 2001 12:23 PM
Subject: [amibroker] How to close open trade on the last bar on chart?
> Hello,
>
> Is there a way to close all the open trade on the last bar on chart?
>
> I just want to make "Open position gain/loss" zero so that stocks
> with large open profits are not penalized.
>
> Thanks in advance.
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
|