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
Monitoring Autotrading
- TJ
- Posts: 7752
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1034 times
- Been thanked: 2228 times
Re: Monitoring Autotrading
Can you expand on your meaning of "not involved / not sufficient" ?Hello,
::
The processes listed here (https://www.multicharts.com/trading-sof ... _Processes) seeming to be not involved / not sufficient.
::
Fredi
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?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Monitoring Autotrading
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.
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.
Re: Monitoring Autotrading
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?!
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?!
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Monitoring Autotrading
Fredi,
1) The topic you are referring to says:
2) If you still have the issue - please continue the discussion in the corresponding topic.
1) The topic you are referring to says:
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.a) Monitor Multicharts with this below batch file code for Not Responding Status.
2) If you still have the issue - please continue the discussion in the corresponding topic.