static double MyValue1;
static double MyValue2;
private void TimerEventProcessor(Object myObject, EventArgs myEventArgs)
{
TriggerCustomEvent(o =>
{
MyValue1 = MyValue1 + 0.001;
MyValue2 = MyValue2 + 0.001;
Print (MyValue1 + " " + MyValue2);
Draw.Line(this, "myTag" + 1, false, CurrentBar, MyValue1, 0, MyValue2, Brushes.Black, DashStyleHelper.Solid, 1, true);
}, null);
}
The output window shows both MyValue1 and MyValue2 are updated every second, it seems that the timer works fine, but the line position stay the same until there is a price update
Not sure what I had missed,
Thanks so much!

Comment