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

Re: [amibroker] ApplyStop(stopTypeTrailing, stopModeRisk,8,1,False );



PureBytes Links

Trading Reference Links

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



On 25/02/07, James Hutchison <phutch@xxxxxxxxxxx > 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
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___