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

Re: [amibroker] alternative exit testing



PureBytes Links

Trading Reference Links

Maybe I have got this . . .

I would add a variable:

Boot = C < BStoplevel;

Then:

SellPrice = IIf(Boot, Close, IIf(Ref(Buy,-1), Open, Close));

Is this correct?

Yuki

Thursday, March 6, 2003, 2:10:32 PM, you wrote:

YT> All,

YT> I have an entry based on a BStoplevel that is known immediately after
YT> the open.  Normal exit is the next day's open.

YT> I would like to test this based on an early exit at the close on the
YT> day of entry, if the close is < BStoplevel.

YT> How can I code this alternative close?

YT> It would be exit on day of entry at close if C < BStoplevel, but exit
YT> next open if C >= BStoplevel.  I'm not sure exactly how to write
YT> this, or how to set the trade delays in this case.

YT> Yuki ^_^


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/