|
Category
Settings or Scan Settings or Order Settings
Description
Settings that control chart appearance and behavior from a script
Notes
Each of these settings controls the same chart option as the chart window options dialog. Setting one from a script has exactly the effect of changing it in the dialog: it becomes the current chart option for the session — applied both to chart images saved via SaveScanChartsTo / SaveTradeChartsTo and to chart windows opened interactively after the script runs — and persists as the saved default thereafter. This makes chart output from command-line runs deterministic without needing a hand-maintained realtest.ini.
The available settings, in alphabetical order:
ChartBarSize (Daily, Weekly, Monthly, Quarterly or Yearly) - the bar size charts display
ChartCandlestick (True/False) - draw candlesticks rather than OHLC bars
ChartEntryExitLine (True/False) - draw a line connecting a trade’s entry and exit on trade charts
ChartGrid (True/False) - show grid lines
ChartIndicatorPane (True/False) - show the upper indicator pane(s)
ChartLineWidth (1 to 9) - indicator line width in pixels
ChartLogScale (True/False) - use a logarithmic price scale
ChartShowOtherTrades (True/False) - also draw the symbol’s other trades that fall within the visible date range of a trade chart
ChartSplitAdjust (True/False) - show split-adjusted prices
ChartTradeExtra (bar count) - extra bars a trade chart shows beyond the trade
ChartTradeExtraAfter (Entry or Exit) - whether a trade chart ends ChartTradeExtra bars after the trade’s entry or its exit (the “After” choice in the dialog; default is Exit)
ChartTradeLabels (None, Selected or All) - which trade markers get text labels on a trade chart: none, only the chart’s own trade, or every trade shown (the default); see chart windows for how trades are marked
ChartVisibleBars (bar count) - minimum number of bars visible; a trade chart widens beyond this as needed to fit its whole trade
ChartVolumePane (True/False) - show the volume (lower) pane
ChartImageWidth and ChartImageHeight (200 to 8000) set the pixel size of the chart images saved by SaveScanChartsTo and SaveTradeChartsTo. Unlike the options above, they apply only to the script they appear in and do not affect interactive chart windows. When they are not specified, saved images come out at the size of the most recently sized chart window (as remembered in realtest.ini), or 1600 x 1000 if no chart window has ever been sized.
Example
Settings:
SaveTradeChartsTo: ?output?\charts
SaveTradeChartsMax: 50
ChartVisibleBars: 30
ChartTradeExtra: 10
ChartEntryExitLine: True
ChartShowOtherTrades: True
ChartImageWidth: 1200
ChartImageHeight: 800
Chart options for an already-open chart window can still be changed interactively via the Chart Menu options dialog.
|