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

ApplyStop accepts new values in 3.78



PureBytes Links

Trading Reference Links


Hello,
 
It is not documented currently (will be inan 
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 - amountin 
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.com