Generate alert if "Rejected" order found
Posted: 16 Oct 2014
Hi,
If you run multicharts for Live trading and want to generate automatic alert if "Rejected" order is found then this dos batch file code can be used.
Please review these other monitoring links as well;
http://www.multicharts.com/discussion/v ... =5&t=46551
http://www.multicharts.com/discussion/v ... =5&t=46553
http://www.multicharts.com/discussion/v ... =5&t=46468
http://www.multicharts.com/discussion/v ... =1&t=47391
Successful Trading !!!
Thanks
If you run multicharts for Live trading and want to generate automatic alert if "Rejected" order is found then this dos batch file code can be used.
Code: Select all
:: Check for "Rejected" order status to issue alert
:loop
C:
CD "C:\Users\Administrator\AppData\Local\TS Support\MultiCharts\9.0.9791.203\Logs\TradingServer"
findstr "Rejected" ATPluginProxy_Trace.txt
if %errorlevel%==0 (goto :RejectedFound
) else (
goto :SkipRejectedOrder
)
:RejectedFound
Msg * Rejected order found. You can put your alert code here.
:SkipRejectedOrder
goto :loop
http://www.multicharts.com/discussion/v ... =5&t=46551
http://www.multicharts.com/discussion/v ... =5&t=46553
http://www.multicharts.com/discussion/v ... =5&t=46468
http://www.multicharts.com/discussion/v ... =1&t=47391
Successful Trading !!!
Thanks