Coming from TS and used to TS Showme functions that puts dots under/over a bar depending on a variables and show historic variables settings too.
Let me explain
1. The following code puts a single dot under say an entry point loong/short
TrStop.Set(Low[0] - StDev*1.382);
DrawDot("TStop_Long", true, 0, TrStop[0], Color.Blue);
2. Moving the stop along the bars I am then changing the variable
if (TrStop[0] == 0) TrStop.Set(Close[0]);
if (Close[0] > Close[1]) TrStop.Set(Low[0] - StDev * 1.382);
if (Low[0] - High[1] > StDev) TrStop.Set(Low[0] - StDev * 0.618);
if (TrStop[0] < TrStop[1]) TrStop.Set(TrStop[1]);
DrawDot("", true, 0, TrStop[0], Color.Blue);
But the dot does not stay under that completed bar - seems it is deleted and put on the next bar ( the last bars seems to have a dot!)
How can I put a dot under each bar as the trade progresses?
Comment