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

Re: [amibroker] ApplyStop accepts new values in 3.78



PureBytes Links

Trading Reference Links


Hi TJ what an excellent new tool 
on question whilst have a little play withit 

 

Buy=CCI<FONT 
face="Courier New" size=2>(<FONT face="Courier New" color=#ff00ff 
size=2>30)><FONT 
face="Courier New" color=#ff00ff size=2>10<FONT face="Courier New" 
size=2> and EMA<FONT 
face="Courier New" size=2>(Close,<FONT face="Courier New" 
color=#ff00ff size=2>10) > 
EMA<FONT 
face="Courier New" size=2>(Close,<FONT face="Courier New" 
color=#ff00ff size=2>30) ;
Sell=CCI<FONT 
face="Courier New" size=2>(<FONT face="Courier New" color=#ff00ff 
size=2>30)<-<FONT 
face="Courier New" color=#ff00ff size=2>100<FONT face="Courier New" 
size=2>;
ApplyStop( <FONT 
face="Courier New" color=#ff00ff size=2>2<FONT face="CourierNew" 
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 
) ;
Buy = <FONT face="Courier New" color=#0000ff 
size=2>ExRem( Buy, Sell 
);
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@xxxxxxxxxx 
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 - maximumloss 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.comYour use of 
Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.