You will have to express the difference as being relative to your entry. Let's assume that the Open of day 2 was $50 and the Low of day 1 was $48.
- Your current code is placing a stop at 48 points below your entry. - You probably want something like Open - Ref(Low, -1). Though, you will want to first make sure that the previous Low was actually lower than the Open! Mike --- In amibroker@yahoogroups.com, "scottr" <scott.reisf...@...> wrote: > > I would like to code a maximum stop loss that is triggered if the low of the > day hits the low on the day before my entry to a long position. > > For ex, if my signal is generated on Day 1, I then enter a long position at > the open on Day 2. I would like to at that point enter a Stop Loss that is > the low on Day 1. > > This is what I'm entering: > > ApplyStop (stopTypeLoss, stopModePoint, Ref(Low,-1), ExitAtStop=1); > > It isn't working. If anyone has any thoughts as to what I may be doing > wrong, I would very much appreciate it. Thanks. Scott >