I'm using : core.host:execute ("attachOuputToChart", ID); and core.host:execute ("attachTextToChart", ID);
In an oscillator, in order to draw and text in the main chart at the same time. But now, this oscillator becomes in front-ground even when I specify to stay background. The consequence is that it is no more possible to target an other indicator or a form by left-clicking or double clicking on it, neither open the info of a candle (by right-click), because the oscillator is taking the hand.
Here is the source code and a capture in which you can see that the info is saying "RSI_NL" whereas the mouse is far from anything about this indicator.
I have been using the "Simulator" recently to test some strategies. I noticed a couple of issues with it:
1) core.now() returns the current "real time" and not the simulated time. If core.now() is used to check duration of something, for example closing a trade after a certain time then it will not work properly in simulated mode.
2) timers, for example created by host:execute("setTimer",...) function only work in real-time and not simulated time. So, for example, suppose a timer was created using host:execute("setTimer",...) for some periodic house-keeping task for 1 minute durations, then the resulting event would occur at 1 minute intervals in real-time, and not the simulated time which could be running hundreds of times faster of course.
1) Open a trade, e.g. 10 lots, add a stop and limit order. 2) Partially close the trade, e.g. close 5 lots
Result: The trade is partially closed, but the stop & limit orders are deleted. This not the behaviour of the live trading mode, where the stop & limit orders are moved to the new position.
Simulation mode does not work properly for multiple instruments. For example, I subscribed to a small number of instruments (e.g. EUR/USD, GBP/USD, USD/JPY, etc.). The charts, trades and Bid/Ask prices all get screwed up / mixed up - totally wrong values. See attached screenshot.
Seems to work fine for single subscribed instrument, but multiple subscribed instrument is broken.