Generate alert if "Rejected" order found

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
faraz
Posts: 144
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 57 times

Generate alert if "Rejected" order found

Postby faraz » 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.

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
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

Return to “User Contributed Studies and Indicator Library”