SDM Chart Layout Language

A Chart is composed out of one or several Windows.
The First/Main Window (Window1) usually display the price and price related indicators (Moving Avg etc.).
You can add up to 19 Windows below the main window, to display other indicators.

Her si an example from the CCITrd.sdc file:
[Window1]
Title=Price
Size=60
Attr=IncModulo:Default|NoGrid
Overlay1=Price|Candle
Overlay2=$TxtLong|TxtDown|Olive

[Window2]
Title=CCI
Size=30
Attr=AxisMax:150|AxisMin:-150|NoGrid
Overlay1=$CCIRaw|Line|SmartColor(100,-100)|1
Overlay2=$CCI|Line|SmartColor(100,-100)|3
Overlay3=Line(100)|Line|Grid|1
Overlay4=Line(-100)|Line|Grid|1

[Window3]
Title=Signal
Size=30
Attr=AxisMax:100|AxisMin:0|NoGrid|IncModulo:50|AbsVal
Overlay1=WarmupStatus|Line|SmartColor(0)|3
Overlay2=Line(0)|Line|Grid|1


Each window is identified by the Section Header [Window{n}] were {n} is the Window Number.
The Sections dont have to be in any order, to temporarily disable a Windows change the
[Window{n}] section header to [xWindwos{n}]

The following details can be specified in each Window Section:

Title Title displayed for this Window (optional, if not defined the name of first Overlay is used)
Size Height of the Window in relative units,
In this example the price window is double the height of the indicator windows:
Total units = 120 (60+30+30), Window1=50%, Window2=25%, Window3=25%
Attr Window Attrributes:
AbsVal Use the absolute value of the indicators in this window
AxisMin Fixed value for the vertical Axis Minimum (otherwise dynamically calculated)
AxisMax Fixed value for the vertical Axis Maximum (otherwise dynamically calculated)
FirstOnly Use only the first Overlay when calculating dynamically the vertical Axis dimension
Example: You want to avoid the Wide Bollinger Band Axis expansion,
so you instruct SDM to only use the regular price for the Y Axis Height calculation
IncModulo Smallest vertical Axis (Price) Increment, Default uses 0.25 for Futures otherwise 0.10
MinZero Set the vertical Axis Minimum to Zero
NoGrid Dont display the horizontal grid lines for the vertical Axis Points
Price Identify this Window as the one and only "Price" window
SymZero Create the same vertical Axis height for positive as negative range
(symetrical around the 0 level)
Overlay{n} Define the actual indicators the window displays/overlays on top of each other:
{Value}|Type|Color|Width
Value Defines the Source of the value for this overlay:
$Var Variable named $Var
$Stop

The current Stop out level, defined in the Exit: section
Exit:
$Stop = GetPositionExit()
See this example (Red dotted line = $Stop)

Line(Val) Fixed value 'Val'
PositiionExit Normalized Value of the active Position (if not active Empty)
0=At entry, 50=Half way towards target
100=Target reached, -100=Stopped out
PositionEntry Position Entry Price Avg
Volume Volume of Bar
WarmupStatus Current Warmup Status (between -100 and 100)
Type Defines the type of display you would to use for this indicator.
The following types are available:
Bar Vertical Bar (used mostly to display the Volume)
Candle Only Price - display in Candlestick style
Dot Displays a dot/circle at the value, no border is used
DotF, DotFrame Displays a dot/circle at the value, the gird(black) border is used
HighLowBar Only Price - display as High/Low Bar
Line Continuous line 
LineDot Dotted line
LineRect Small squares used to indicate the line
Rect, Square Displays a square/rectangle at the value, no border is used
RectF,
RectFrame,
SquareF, SquareFrame
Displays a square/rectangle at the value, the gird(black) border is used
TxtDown Show the centered text below the bar low ($Var has to be a text)
TxtUp Show the centered text above the bar high ($Var has to be a text)
Color Defines the color to be used for this overlay (default is black)
Predefined standard Colors The following standard colors are available by name:
Black, Blue, Red, Cyan, Green, Grey, LightCyan, Magenta,
Olive, Orange, Yellow,, White, 
Predefined context Colors In the SDMCha.ini file are also the following colors defined:
(Values show here for a white chart background)
Default Black
PriceHighLow Black
Grid Black
ChartBackground White
Neutral Blue
Axis Blue
AreaGain Position Gain Area (light green)
AreaLoss Position Loss Area (light red)
AreaNeutral Stop Out close to entry Area (Light Blue)
Volume Blue
TickBackground Ticker Window background (LightCyan)
Border Grey
Positive Olive
Negative Red
PriceUp Olive (for Candle Stick)
PriceDown red (for Candle Stick)
Custom Color Use RGB Values to define your custom color: Example:
255,0,0   = Red=255, Green=0, Blue=0
SmartColor(Val1) Vary the color depending on the current value:
Above or equal to Val1 Use "positive" color
Below Val1 Use "Negative" color
SmartColor(Val1,Val2) Vary the color depending on the current value:
Above or equal to Val1 Use "positive" color
Below or equal to Val2 Use "Negative" color
between Val1 and Val2 Use "Neutral" Color
Width Width/thickness of Line, Dot, Rectange etc


 © Copyright 1998-2003, Burkhard Eichberger, Professional Software Solutions
All Rights Reserved Worldwide.