get filledOrderPrice 0

Questions about MultiCharts and user contributed studies.
joe107c
Posts: 12
Joined: 17 Jul 2013
Has thanked: 2 times

get filledOrderPrice 0

Postby joe107c » 10 Feb 2021

hi,

code like below:

Code: Select all

buy 1000 shares next bar 25.55 limit; If Getappinfo(Aicalcreason) = calcreason_orderfilled Then Begin prc = NumToStr(FilledOrderPrice, 2) + " "; lots = NumToStr(FilledOrderContracts, 0) + " "; print(prc, lots); End;
In my case, when order filled MC printed "25.55, 1000".

But Sometimes it prints "0.00, 1000". the filled price is 0 but the price in order tracker is 25.55.

Why is that?

User avatar
Kate MultiCharts
Posts: 593
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: get filledOrderPrice 0

Postby Kate MultiCharts » 11 Feb 2021

Hello joe107c,

The decribed behavior wasn't reproduced on our end.

Could you please let us know what broker and symbol you are using?

When the issue is reproduced, please send us logs via the main MultiCharts window -> Help -> Feedback.
Please select the options:
Attach log files…;
Snapshot of the current MC setup;
Open workspaces…;
Upload collected data to help desk;
uncheck other options and click Send.

In the commentary section please specify the Broker Order ID of the order.
You can find it in the Order and Position Tracker -> Orders tab


Return to “MultiCharts”