Order name issue

Questions about MultiCharts and user contributed studies.
User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Order name issue

Postby Smoky » 10 Jun 2018

Code: Select all

[RecoverDrawings = False]
[IntrabarOrderGeneration = true];
[AllowSendOrdersAlways = True];

Vars: intrabarpersist OrderName(""), intrabarpersist LastOrderName("");
Vars: intrabarpersist FlagBuy(false);

OrderName="V16"; FlagBuy=True; //

if FlagBuy=True and OrderName <> LastOrderName then
begin
buy (OrderName) Nblots SHARE NEXT BAR MARKET;
LastOrderName=OrderName;
end;
this code make this popup when i load the chart Renko OHLC

Image


Another issue, i make my own indicator on renko, computing code working well on signal because MC now compute OHLC on renko, but MC still compute indicator only on Close, then i don't have the same computing result when i load a chart. (working well on real time because indicator run in tick by tick like in signal ...)

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

Re: Order name issue

Postby Anna MultiCharts » 19 Jun 2018

Hello, Smoky!

We couldn’t reproduce this on our end.
Please send your workspace and the complete study (can be a simplified variant) with which this can be reproduced to support@multicharts.com

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: Order name issue

Postby Smoky » 20 Jun 2018

Anna difficult to send a simplified variant about 2000 lines of EL with externals Dll(s) ...

But this study compute end of bar and tick by tick signals in same study.

EL calculate first End of bar and after EL compute last tick : maybe sometime the last tick signal is the same that bar signal ? this explan why this append often when loading chart because EL compute on OHLC and not every tick and last tick only on close tick...

but this not explain why this error pass through my code : "OrderName <> LastOrderName" ....

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

Re: Order name issue

Postby Anna MultiCharts » 20 Jun 2018

Smoky,

The error message you get notifies you of several orders that were generated with identical names at the last strategy’s calculation.
You can try to check the naming of orders in the code of your strategy or send us the required info for reproducing this issue so that we could help you more profoundly.


Return to “MultiCharts”