Changes

Jump to navigation Jump to search

Why an Order Was or Was Not Executed

998 bytes added, 19:37, 3 July 2012
no edit summary
It is a common situation when a customer expects an order to be generated and executed or vice versa not be generated and not to be executed at a particular place on chart. Combination of 2 following methods of studying nature of fillment or non-fillment of orders sent from MultiCharts during auto trading should help you in understanding the situation. ==Order and Position Tracker== If an order was generated and sent from script to broker plugin, it is displayed in Order and Position Tracker on Orders tab. If an order is filled you can see it execution price and details (see [[Order and Position Tracker|Orders Tab]]).<br>There are 2 possible reasons why an order is not placed at broker:# The order was '''rejected''' either by MultiCharts, or by broker (in most cases you can find the reason of rejection on Logs tab of Order and Position Tracker (see [[Order and Position Tracker|Logs Tab]]) # The order was '''cancelled''' from script. According to EasyLanaguage/Power <br> ==Monitoring from Script==This method is extremely usefull for backtesting, since Order and Position Tracker has nothing in common with the process of historical calculation.Adding the following line under the same conditions right before the line, generating your buy/sell orders will help you to understand at what particular bar, when and at what price is your order triggered in code:
<br>
<br>
<br>
'''The date is 03.07.2012, time is 18:45:00, bar # is 4362.00, market position on chart is 1.00, market position at broker is 1.00, here a LIMIT order to SELL is generated by the script at 100 price'''
 
 
[[Category:FAQ]]

Navigation menu