It doesn't have to adjust the stop as it gets adjusted...I'd be happy with just a dot or line at the intial stop level. I've looked at the "SampleMonitorStopProfit" Reference sample and hoping I don't have to go that route.
Would a simple DrawDot or DrawLine statement work if I place it right next to my entry code? I have a calculated variable "TrailStop" that holds a value in ticks.
I tried the following, but nothing showed up on the chart. Basically I was trying to plot a horizontal line at a level of the high of the most recent bar minus my Trailstop value, and plot the line for 15 bars.
DrawLine("Buy", true, 1, High[0] - TrailStop, 15, High[0] - TrailStop, Color.Red, DashStyle.Dot, 2);
DrawLine(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color, DashStyle dashStyle, int width)
I guess it would be nice if it would plot dots on the chart as the trail stop order is dynamically updated as the market moves. But for starters, just drawing horizontal line at a specific y value on the chart is all I'm trying to accomplish. Is there is a better way to do this? Any help with the code for this is appreciated. Thanks,
kc

Comment