Monitoring Autotrading

Questions about MultiCharts and user contributed studies.
Fredi
Posts: 45
Joined: 01 Nov 2013
Been thanked: 2 times

Monitoring Autotrading

Postby Fredi » 16 Dec 2014

Hello,

there are 2 issues, which are making autotrading immpossible for me, in the moment.

1. In order to control MC during autotrading, which processes (seeing in Task-Manager)
are starting /closing for
(a) Broker connection / disconnection (right click on Broker tab) and
(b) real time datafeed (connected / disconnected)

The processes listed here (https://www.multicharts.com/trading-sof ... _Processes) seeming to be not involved / not sufficient.

2. I had already a mismatch in the number of open positions between Broker and the MC strategy. Is there any way to check both numbers?


I read already this excellent post ( viewtopic.php?f=1&t=47391 ), but I didn't find a solution.

Do I overlook / missing important details within MC or in the mentioned post, which are answering my questions?

Thanks in advance,
Fredi

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Monitoring Autotrading

Postby TJ » 16 Dec 2014

Hello,
::
The processes listed here (https://www.multicharts.com/trading-sof ... _Processes) seeming to be not involved / not sufficient.
::
Fredi
Can you expand on your meaning of "not involved / not sufficient" ?
They can mean different things to different people, and don't really mean anything standing on their own.

Can you give some examples to illustrate?
Or maybe even offer suggestions to the perceived problem you are having?

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

Re: Monitoring Autotrading

Postby Henry MultiСharts » 16 Dec 2014

Hello Fredi,

1) What do you mean by "not involved / not sufficient" ?
2) Yes, you can do that with the help of the following reserved words:
MarketPosition_at_Broker - number of contracts and the type of position at the broker for the symbol.
MarketPosition_at_Broker_for_the_Strategy - number of contracts and the type of position at the broker for the strategy (MC auto-trading engine position).
MarketPosition - current strategy position on a given chart.
CurrentContracts - number of contracts or shares held in the current strategy position on a given chart.

Fredi
Posts: 45
Joined: 01 Nov 2013
Been thanked: 2 times

Re: Monitoring Autotrading

Postby Fredi » 16 Dec 2014

You are right, I have to become more specific.

to 1. In the moment, I control the mentioned processes with a kind of this
method ( viewtopic.php?f=5&t=46551 ).
However, independent of the Broker status (connected or not) no alert is
generated. That means, that the processes having nothing to do with the
broker status and are therefore no suitable for controlling this status.

Do you see any solution / way to control the broker status, also?

to 2. I use already this reserved words (see post viewtopic.php?f=1&t=46559 )
My problem is still the latency time of the broker API (mentioned in #11 of above link): when I can be
sure (after which time or / and which numbers of ticks?) that there is really a difference in the number of
open positions between broker and MC strategy.

Is there any more confident approach? May be there is any log-file with this kind of information?!

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

Re: Monitoring Autotrading

Postby Henry MultiСharts » 16 Dec 2014

Fredi,

1) The topic you are referring to says:
a) Monitor Multicharts with this below batch file code for Not Responding Status.
The code created by faraz does not monitor for broker status. For loss of broker connectivity alert please check this thread. You can also find useful No realtime data alert.

2) If you still have the issue - please continue the discussion in the corresponding topic.


Return to “MultiCharts”