PureBytes Links
Trading Reference Links
|
David,
Trailing stop works as follows:
(long position and exit at stop switched
on )
- trade is entered at BuyPrice (may be close
depending on your settings)
- in mode 1 (point loss) stop exits
the trade when Low < BuyPrice - StopAmount
- in mode 2 (percent loss) stop exits the trade
when ( Low / BuyPrice ) < 1 - PercentAmount
- in mode 3 (percent of profit) stop exitsthe
trade when PercentAmount of highest profit since trade
entry is lost.
In short positions High price is used as atrigger
(when exit at stop is switched on).
When "exit at stop" is off, then
SellPrice/CoverPrice is used.
Hope this helps.
Best regards,
Tomasz Janeczko
amibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
David
Holzgrefe
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: 17 October, 2001 12:36
Subject: Re: [amibroker] ApplyStop
accepts new values in 3.78
Hi TJ what an excellent new tool
on question whilst have a little play with it
Buy=<FONT face="Courier New" color=#0000ff
size=2>CCI(<FONT
face="Courier New" color=#ff00ff size=2>30<FONT face="Courier New"
size=2>)><FONT face="Courier New" color=#ff00ff
size=2>10 and <FONT
face="Courier New" color=#0000ff size=2>EMA<FONT face="Courier New"
size=2>(Close,<FONT face="Courier New" color=#ff00ff
size=2>10) > <FONT
face="Courier New" color=#0000ff size=2>EMA<FONT face="Courier New"
size=2>(Close,<FONT face="Courier New" color=#ff00ff
size=2>30) ;
Sell=<FONT face="Courier New" color=#0000ff
size=2>CCI(<FONT
face="Courier New" color=#ff00ff size=2>30<FONT face="Courier New"
size=2>)<-<FONT face="Courier New" color=#ff00ff
size=2>100;<FONT
face="Courier New" color=#0000ff size=2>
ApplyStop( <FONT
face="Courier New" color=#ff00ff size=2>2<FONT face="Courier New"
size=2>, 1<FONT
face="Courier New" size=2>, <FONT face="Courier New" color=#ff00ff
size=2>15, <FONT
face="Courier New" color=#ff00ff size=2>1<FONT face="Courier New"
size=2> ) ;
Buy = <FONT face="Courier New" color=#0000ff
size=2>ExRem( Buy, Sell
);<FONT face="CourierNew"
size=2>
Sell = <FONT face="Courier New" color=#0000ff
size=2>ExRem( Sell, Buy
);
What level are the stop
calculated from open close low ?
close to the next
days low I think from my manual calculations !
Thanks David
<FONT
face=Arial>
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Tomasz Janeczko
To: <A title=amibroker@xxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, October 17, 2001 7:29
PM
Subject: [amibroker] ApplyStop accepts
new values in 3.78
Hello,
It is not documented currently (will be in an
updated User's guide) for 3.80 but
since version 3.78 ApplyStop accepts new
values:
SYNTAX
applystop( type, mode, amount,
exitatstop )
RETURNS
nothing
FUNCTION
controls built-in stops from the formula
level (allows optimization of stops)
Parameters: type = 0 - maximum loss
stop, 1 - profit target stop, 2 - trailing
stopmode = 0 - disable stop, 1 - amount in percent, 2 -
amount in points, 3 - amount in percents of profit (for trailing stop
only)amount = percent/point loss/profit trigger amount (
from 3.78 this could be an array. The amount of stop is sampled when
buy signal occurs and this amount is used for the
stop)exitatstop = 0 - exits at defined price field, 1 -
exits at stop level
EXAMPLE
applystop( 0, 1, optimize( "max. loss stop
level", 10, 2, 30, 1 ), 1 );
So now you can apply dynamically
adjusted (from the formula level) stops.
Best regards,
Tomasz Janeczko
amibroker.comYouruse of
Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|