MAJOR MC12 optimize order flow bug!  [SOLVED]

Questions about MultiCharts and user contributed studies.
Posts: 601
Joined: 21 Apr 2013
Has thanked: 143 times
Been thanked: 94 times

MAJOR MC12 optimize order flow bug!

Postby wilkinsw » 31 Aug 2018


In short: In MC12, with optimize order flow on, under my test conditions: stops are no longer sent intrabar. Instead one has to wait until the new bar.

A non-live realtime simulation (any version) will send the stop intrabar, as will a backtest (any version), as will MC11,10,9 etc when live. MC12, live, is aberrant.

This is clearly a major oversight and very dangerous for the end user.... especially as is in no way expected behaviour.

My test scenario involves the following:

Upperband buy entry stop
Lowerband sell entry stop
Explicit statements that should submit exit stops as soon as a position with "entryname" is detected, and that aren't contained within conditions.

In all versions of MC with optimize order flow OFF... the stops are immediately sent upon the entry order being filled.

In all versions of MC BUT NOT MC12 with optimize order flow ON.......... stops are immediately sent upon entry order being filled.

Tests were conducted using Paper trader (once missed exits were seen in live trading) and using either TS or IQfeed to drive the signal.

Code: Select all


upperband2=upperband-entryticks*mpi;//where we place our entry buy stop
lowerband2=lowerband+entryticks*mpi;//where we place our entry sell stop


if close<upperband2 then
buy ("long entry") next bar at upperband2 stop;

if close>lowerband2 then
sellshort ("short entry") next bar at lowerband2 stop;

sell ("long stop") from entry ("long entry") next bar at upperband2-stopticks*mpi stop;
buytocover ("short stop") from entry ("short entry") next bar at lowerband2+stopticks*mpi stop;
Turning optimize order flow OFF is not an option for me:
1) It will increase my margin requirements by 50%
2) It presents an excessive risk and represents poor order management (e.g. Am long but am working: 1 stop, 1 target AND a cut and reverse (double sized order) behind the stop!)

I would say this is a mission critical bug for which a patch should be provided or alternatively, MC12 should be put back into beta.

Thanks in advance for your help. ... es/MC-2501

User avatar
Anna MultiCharts
Posts: 560
Joined: 14 Jul 2017
Has thanked: 42 times
Been thanked: 136 times

Re: MAJOR MC12 optimize order flow bug!

Postby Anna MultiCharts » 31 Aug 2018

Hello, wilkinsw!

Our engineers are investigating this using the files you provided. We’ll follow up with you by email once there’s any progress.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2944 times

Re: MAJOR MC12 optimize order flow bug!  [SOLVED]

Postby Henry MultiСharts » 19 Sep 2018

This issue has been resolved in MultiCharts12 Release 2.

Return to “MultiCharts”