The ApplyStop function seems to be equivelent but i still dont know the logic for this function

ApplyStop (stopTypeTrailing, stopModeRisk, 8, 1 ,False );
ApplyStop (stopTypeTrailing, 3, 8, 1 ,False );

ApplyStop( type, mode, amount, exitatstop, volatile = False, ReEntryDelay = 0 )
RETURNS nothing
FUNCTION controls built-in stops from the formula level (allows optimization of stops)

Parameters:

type =
0 = stopTypeLoss - maximum loss stop,
1 = stopTypeProfit - profit target stop,
2 = stopTypeTrailing - trailing stop,
3 = stopTypeNBar - N-bar stop

mode =
0 - disable stop (stopModeDisable),
1 - amount in percent (stopModePercent), or number of bars for N-bar stop (stopModeBars),
2 - amount in points (stopModePoint);
3 - amount in percent of profit (risk)

amount =
percent/point loss/profit trigger/risk amount.
This could be a number (static stop level) or an array (dynamic stop level)


ExitAtStop

ExitAtStop = 0 - means check stops using only trade price and exit at regular trade price (if you are trading on close it means that only close price will be checked for exits and exit will be done at close price) ExitAtStop = 1 - check High-Low prices and exit intraday on price equal to stop level on the same bar when stop was triggered ExitAtStop = 2 - check High-Low prices but exit NEXT BAR on regular trade price.

Thank you
Jim Hutchison



At 09:36 PM 2/25/2007, you wrote:

I would say that stopmoderisk has not been released yet if it does not appear in help or release notes


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
<http://www.aflwriting.com>http://www.aflwriting.com



On 25/02/07, James Hutchison <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > wrote: Could anybody explain how ApplyStop (stopTypeTrailing, stopModeRisk, 8, 1 ,False ); works on end of day data.

I am not sure how this type of stop is evaluated by Amibroker.


Thank you for your help.

Jim Hutchison

Reply via email to