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

[EquisMetaStock Group] Re: anyone know how to plot a trailing stop only while in a trade?



PureBytes Links

Trading Reference Links

Mike,

Some time ago I wrote an indicator called barsback Z, it stopped and 
started as you suggested. I believe it could be modified to work as 
you requested.

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, "mfsloane" <mfsloane@xxxx> 
wrote:
> I have an indicator that plots a trailing stop; it references 
other 
> indicators, so it knows when I am in a trade or out of trade; to 
> date I have been happy with an IF statement that effectively says:
> IF("IN A TRADE", PLOT TRAILING STOP, otherwise PLOT LOW)
> 
> I can drop this onto a chart and it doesn't stuff up the scaling 
> because the LOW plot is within range (if you have it plot "zero" 
> when not in a trade, the result is not pretty).
> 
> I can colour it gray and ignore this line that hangs under the 
lows 
> (or above the highs for a short), but it does get in the way a 
> little bit and I would really prefer that it wasn't there.
> 
> Does anyone know if it is possible to plot an indicator 
that "STOPS" 
> and "STARTS" without having to revert to either zero, or the low 
of 
> the day (or similar) when it is not required to be there?
> 
> i.e. is there any way to code an indicator that will do:
> IF("IN A TRADE", PLOT TRAILING STOP, otherwise do not plot 
anything).
> 
> Any guidance will be gratefully received.
> 
> Thanks,
> Mike


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/