Hi Cone & Eugene,
I'd like to tighten a trailing stop loss as the price moves up to the profit target.
At the buy price; A trailing stop loss at 3% off the high.
Half way to the target, move it up to 2% off the high.
At the target price move it up to 1% off the high.
On a 5 minute chart set an exit a 156 bars (2 days)
I think the code below is in the right order to do this. If not please tell me I'm clueless and codeless again.
I'd like to graph these trailing stops on a chart in a way that makes them easy to see and easy to tell the difference when trailing stop loss Percent changes.
Cone referred to Bandwagon Trading as an example coding that might work. The results on the chart look good. Or it could be a line. But I haven't been able to code the line that would allow me to put the Trailing Stop loss in the DrawCirlce line.
stop = ?????
DrawCircle(PricePane, 3, bar + 1, stop, Color.DarkRed, LineStyle.Solid, 2, false);
Who knows, maybe I'm not even looking in the right place.
Once again thanks for the help.
Tobey
CODE:
Please log in to see this code.