Hello Metastock wizards,
I looking for a code that creates a simple percentage stop that works on the first bar and triggered by the low price. I can't believe nobody has created such a thing..or worse it's not possible in MS - based on my own programming attempts and conversations with others. It specifically should do:
1) buy on open one day after buy is triggered (optional: buy non delayed but use closing price)
2) ability to sell on same day as purchase happend if sell stop is triggered on same day
3) sell stop refers to the actual buy price according to 1)
4) sell stop works instantly - same day and following days - not only after 2days as in e.g Jose's code below
5) sell stop is triggered (L) not just on close
6) "clean" sell and buy signals i.e. a proper latch with no consecutive buys or sells - the usual..
7) no prev function and fast; dll prefered or combo MSFL with dll
The problem seem the buy/sell signal on the same day. And also with richard Doyle's advanced stop dll , the dll requires at least one day after buy to reset. So the stop won't work on the first two days.
I would not even need a trailing stop or a profit stop - though it would be a bonus.
Has someone out there a solution for a stop that actually works right away and fast (no prevs) on low (L) signals? :)
Any help or pointers are greatly appreciated,
Klaus