Why chart shows no trades: Difference between revisions
No edit summary |
No edit summary |
||
Line 75: | Line 75: | ||
[[Category:FAQ]] | [[Category:FAQ]] | ||
[[Category:Strategy Trading]] | [[Category:Strategy Trading|E]] |
Latest revision as of 12:21, 19 September 2024
General Information
Requirements for an executed-at-broker account order to be displayed on the chart:
- Chart of the traded market should be plotted. The date and time of the executed order should be covered by the chart Data Range.
- Corresponding Broker Profile should be connected.
- Chart Trading Panel should be opened at least once.
- The correct Broker Account should be selected in the panel.
- The Show Historical Orders box should be checked in the Chart Trading Settings.
- The order should be visible in the Orders tab of the Order and Position Tracker window.
- Symbol Mapping should be configured correctly.
Strategy Trades
Applying Signals
Please make sure you have applied at least 1 signal to the chart and it is turned on to make backtesting or auto-trading possible:
- Right-сlick on the chart.
- Format Signals:
- If Format Signals is grayed out, it means no signals are currently applied to the chart to generate orders. Add signals to the chart.
- If Format Signals is available, click it to see the list of signals applied to the chart. Make sure at least 1 signal is ON.
- Click OK.
"Error", "No" or "Unverified" for a Signal in the Status in Format Signals Window
Follow these steps exactly as they are described:
- Close all MultiCharts parts and make sure all MultiCharts Processes are ended in the Windows Task Manager.
- Launch only MultiCharts.
- Open the workspace where the problematic signals are applied to charts.
- File → New → PowerLanguage Editor.
- PowerLanguage Editor: File → Open → select your signal → OK.
- Click the Compile button (if it is grayed out, add a space anywhere to the script of the opened signal and then click the Compile button).
- If it is not compiled, debug the script.
- If it is compiled successfully, go back to MultiCharts.
- MultiCharts: right-click on the chart the signal is applied to → Format Signals.
- Select the signal.
- Turn it off first by clicking on the Status button.
- Turn it on by clicking on the Status button again.
Strategy Is Constantly "Calculating" in the Status Line
Each signal code requires at least 1 bar to be calculated on it before it can place an order. For signals, the number of bars a code should be calculated on before it can place an order is defined by the Maximum number of bars a study will reference (MaxBarsBack) in Strategy Properties.
If you have an incorrect MaxBarsBack value, you will see Calculating... in the Status Line of the chart, and therefore you need to change this value. In order to see this, make sure your Status Line is configured correctly:
- Right-click on the chart → Format Window → Status Line tab.
- Make sure the Enable Status Line box is checked.
- Scroll down the list of items for the status line and make sure the Study box is checked.
- Click OK.
Strategy Is Applied and Calculated, but No Orders Are Shown on the Chart
If there is no order on a backtested chart, it means either the order generation conditions in your code, or the conditions for order execution (prices on chart) were not met on the chart.
The same is true also for real-time script calculation (so-called "forward testing") and auto-trading.
Please read this article in order to learn more and find out how you can trace your order generation and execution from within the code to understand why it does not work as expected.
Auto-Trading in SA Mode
The distinguishing feature of the Synchronous mode of auto-trading in MultiCharts is that the orders are shown on the chart only if they are actually executed and the broker returned a confirmation of it through the broker's API.
Please check the following:
Manual Trades or Trades Placed From Other Software
In order to see such orders, the same requirements as described at the beginning of this page should be met.