Hi iliakan,
Welcome to the Forum.
The AdvancedStop library comes with some sample codes and there are more sample codes available on Richard Dale's website from where the library is downloaded. Read his instructions and have a look at the examples, modifying them to suit your own needs.
The AdvancedStop library is a generic solution which will suit a number of problems; it certainly doesn't cover every trader's needs. It doesn't do profit targets, although it might be possible to do tricks, some playing around to achieve something? I haven't tried this myself...
wabbit
"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
Edsgar W. Dijkstra
MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au