PureBytes Links
Trading Reference Links
|
hi,
I suggest reading the manual once more. Here I give a tip:
// example of the price you want to exit
stopProfitPrice = 10;
stopLossPrice = 5;
// calculate the sell and cover signals using Applystop
ApplyStop(stopTypeProfit,stopModePoint,stopProfitPrice,ExitAtStop =
1,Volatile = False, ReentryDelay = 1 );
ApplyStop(stopTypeLoss,stopModePoint,stopLossPrice,ExitAtStop =
1,Volatile = False, ReentryDelay = 1 );
TJ points out that this can best be written as:
// calculate the sell and cover signals using Applystop
ApplyStop(stopTypeProfit,stopModePoint,stopProfitPrice,1,False,1 );
ApplyStop(stopTypeLoss,stopModePoint,stopLossPrice,1,False, 1 );
further you need to have a look at the Settings windows inside the
Automatic Analysis window. You want to "Activate Stops Immediately"
and "Allow same bar exit"
rgds, Ed
--- In amibroker@xxxxxxxxxxxxxxx, "Tom Roll" <tomroll2001@xxxx> wrote:
> I, too, have a problem with that function and, in essence, any
> attempt to stop out.
> I get stops at the open, high, low or close of the next day ( or
the
> current day).
> The question is, how do you get any stop function to stop out at
the
> computed stop price????
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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|