Thanks sunshine. I'll try it as soon as possible.
But one thing I'm unsure of:
When I create the indicator I use the BarSource. Doesn't that mean that every update of the indicator (Indicator[1]:update(core.UpdateLast); ) will just recieve updates from the BarSource?
Or will it actually send the live/non-closed candle of BarSource to the indicator at the update?
Also, this means I only work with the tick source right?
Basically I can write:
If id ~= tickID then
return;
end
I can unfortunately not test now. I get a weird error when I try to login.
"database error ORA--2"
Maybe fixed tomorrow. I'll try live (demo) trading on monday if the code works.