Ever since I added a study to a chart window, I've been having problems with the entry and exit arrows plotting when an order is filled and even had an order duplicated once. It eventually plots once another order from a different strategy is sent, but when it finally does plot it points to the wrong bar.
On the chart:
Using 1min bars, I have a strategy that submits market orders and an attached study that writes a text file with the entry details (date, time, price, quantity, etc) when a trade occurs.
Any help is greatly appreciated.
Entry/Exit arrows not showing after getting filled
Questions about MultiCharts and user contributed studies.
5 posts • Page 1 of 1
This is in real-time with auto-trading turned on. It seems that fileappend is clashing with the drawing of the arrows since they seem to be trying to execute on the same tick, thus hogging up the cpu. I came up with a solution by delaying writing to a file by a few seconds after a trade has been made, but it still may be worth looking into.