形状与覆盖

您可以使用createMultipointShape(points, options)创建50多个不同的形状。它们在下表中列出,可以使用overrides更改默认属性。

shapebackgroundColorbackgroundTransparencyboldborderColorcolordrawBorderfillBackgroundfixedSizefontfontsizeitalictextwordWrapwordWrapWidthmarkerColortextColorlinewidthtransparencyfontWeight
text#9BBED570FALSE#667B8B#667B8BFALSEFALSETRUEVerdana20FALSETextFALSE400
anchored_text#9BBED570FALSE#667B8B#667B8BFALSEFALSETRUEVerdana20FALSETextFALSE400
note#FFFFFF0FALSETRUEArial12FALSEText#2E66FF#000000
anchored_note#FFFFFF0FALSETRUEArial12FALSEText#2E66FF#000000
callout#991515FALSE#991515#FFFFFFVerdana12FALSETextFALSE400250
balloon#fffece#8c8c8c#667b8bArial12Comment30bold
shapebackgroundColorborderColorcolorfontfontsizetexttransparencyfontWeight
arrow_up#787878Verdana20text
arrow_down#787878Verdana20text
arrow_left#787878Verdana20text
arrow_right#787878Verdana20text
price_label#ffffff#8c8c8c#667b8bArial1130bold
flag
shapebackgroundColorboldcolorfillBackgroundfontfontsizeitaliclinewidthtextcolortransparency
xabcd_pattern#CC2895FALSE#CC2895TRUEVerdana12FALSE1#FFFFFF50
abcd_patternFALSE#009B00Verdana12FALSE2#FFFFFF
triangle_pattern#9528CCFALSE#9528FFTRUEVerdana12FALSE1#FFFFFF50
3divers_pattern#9528CCFALSE#9528FFTRUEVerdana12FALSE2#FFFFFF50
head_and_shoulders#45A82FFALSE#45682FTRUEVerdana12FALSE2#FFFFFF50
cypher_pattern#CC2895FALSE#CC2895TRUEVerdana12FALSE1#FFFFFF50
shapebackgroundColorcolordegreeextendLeftextendRightfillBackgroundfilledleftEndlinecolorlinestylelinewidthrightEndshowWavetransparencytrendline.linecolor
elliott_impulse_wave#3d85c671TRUE
elliott_triangle_wave#ff980071TRUE
elliott_triple_combo#6aa84f71TRUE
elliott_correction#3d85c671TRUE
elliott_double_combo#6aa84f71TRUE
cyclic_lines#80CCDB01#808080
time_cycles#6AA84FTRUE#1599800150
sine_line#15998001
rectangle#153899#153899TRUE150
rotated_rectangle#8e7cc3#9800ffTRUE150
ellipse#999915#999915TRUE150
triangle#991515#991515TRUE150
polyline#153899TRUEFALSE#3535350250
curve#153899FALSEFALSEFALSE0#15998001050
double_curve#153899FALSEFALSEFALSE0#15998001050
arc#999915#999915TRUE150
shapebackgroundColorboldextendLeftextendRightfillBackgroundfontfontsizehorzLabelsAlignitalicleftEndlinecolorlinestylelinewidthrightEndshowAngleshowBarsRangeshowDateTimeRangeshowDistanceshowLabelshowPriceshowPriceRangeshowPricestextcolortransparencyvertLabelsAlignshowTimeshowMidlinemidlinecolormidlinestylemidlinewidth
vertical_line#80CCDB01TRUE
horizontal_lineTRUEVerdana12centerFALSE#80CCDB01FALSETRUE#157760top
cross_line#06A0E301FALSETRUE
horizontal_rayTRUEVerdana12centerFALSE#80CCDB01FALSETRUE#157760top
trend_lineFALSEFALSEFALSEVerdana12FALSE0#159980010FALSEFALSEFALSEFALSEFALSE#157760
trend_infolineFALSEFALSEFALSEVerdana12FALSE0#159980010TRUETRUETRUETRUETRUE#157760
trend_angleTRUEFALSEFALSEVerdana12FALSE#15998001FALSEFALSE#157760
arrowFALSEFALSEFALSEVerdana12FALSE0#6F88C6021FALSEFALSEFALSEFALSEFALSE#157760
rayFALSEFALSETRUEVerdana12FALSE0#159980010FALSEFALSEFALSEFALSEFALSE#157760
extendedFALSETRUETRUEVerdana12FALSE0#159980010FALSEFALSEFALSEFALSEFALSE#157760
parallel_channel#b4a7d6FALSEFALSETRUE#7734990150FALSE#77349921
disjoint_angle#6AA84FFALSEFALSEFALSETRUEVerdana12FALSE0#129f5c020FALSEFALSEFALSEFALSE#129f5c50
flat_bottom#153899FALSEFALSEFALSETRUEVerdana12FALSE0#4985e7020FALSEFALSEFALSEFALSE#4985e750
fib_spiral#15998001
shapefillBackgroundtransparencystylemedian.visiblemedian.colormedian.linewidthmedian.linestylelevel0.visiblelevel0.colorlevel0.linewidthlevel0.linestylelevel0.coefflevel1.visiblelevel1.colorlevel1.linewidthlevel1.linestylelevel1.coefflevel2.visiblelevel2.colorlevel2.linewidthlevel2.linestylelevel2.coefflevel3.visiblelevel3.colorlevel3.linewidthlevel3.linestylelevel3.coefflevel4.visiblelevel4.colorlevel4.linewidthlevel4.linestylelevel4.coefflevel5.visiblelevel5.colorlevel5.linewidthlevel5.linestylelevel5.coefflevel6.visiblelevel6.colorlevel6.linewidthlevel6.linestylelevel6.coefflevel7.visiblelevel7.colorlevel7.linewidthlevel7.linestylelevel7.coefflevel8.visiblelevel8.colorlevel8.linewidthlevel8.linestylelevel8.coeff
pitchforkTRUE800TRUE#A5000010FALSE#A06B00100.25FALSE#699E00100.382TRUE#009B00100.5FALSE#009965100.618FALSE#006599100.75TRUE#000099101FALSE#660099101.5FALSE#990066101.75FALSE#A50000102
schiff_pitchfork_modifiedTRUE801TRUE#A5000010FALSE#A06B00100.25FALSE#699E00100.382TRUE#009B00100.5FALSE#009965100.618FALSE#006599100.75TRUE#000099101FALSE#660099101.5FALSE#990066101.75FALSE#A50000102
schiff_pitchforkTRUE803TRUE#A5000010FALSE#A06B00100.25FALSE#699E00100.382TRUE#009B00100.5FALSE#009965100.618FALSE#006599100.75TRUE#000099101FALSE#660099101.5FALSE#990066101.75FALSE#A50000102
inside_pitchforkTRUE802TRUE#A5000010FALSE#A06B00100.25FALSE#699E00100.382TRUE#009B00100.5FALSE#009965100.618FALSE#006599100.75TRUE#000099101FALSE#660099101.5FALSE#990066101.75FALSE#A50000102
pitchfanTRUE80TRUE#A5000010FALSE#A06B00100.25FALSE#699E00100.382TRUE#009B00100.5FALSE#009965100.618FALSE#006599100.75TRUE#000099101FALSE#660099101.5FALSE#990066101.75FALSE#A50000102
shapefillBackgroundarcsBackground.fillBackgroundarcsBackground.transparencylevels.0.widthlevels.0.colorlevels.0.visiblelevels.1.widthlevels.1.colorlevels.1.visiblelevels.2.widthlevels.2.colorlevels.2.visiblelevels.3.widthlevels.3.colorlevels.3.visiblelevels.4.widthlevels.4.colorlevels.4.visiblelevels.5.widthlevels.5.colorlevels.5.visiblefanlines.0.widthfanlines.0.colorfanlines.0.visiblefanlines.0.xfanlines.0.yfanlines.1.widthfanlines.1.colorfanlines.1.visiblefanlines.1.xfanlines.1.yfanlines.2.widthfanlines.2.colorfanlines.2.visiblefanlines.2.xfanlines.2.yfanlines.3.widthfanlines.3.colorfanlines.3.visiblefanlines.3.xfanlines.3.yfanlines.4.widthfanlines.4.colorfanlines.4.visiblefanlines.4.xfanlines.4.yfanlines.5.widthfanlines.5.colorfanlines.5.visiblefanlines.5.xfanlines.5.yfanlines.6.widthfanlines.6.colorfanlines.6.visiblefanlines.6.xfanlines.6.yfanlines.7.widthfanlines.7.colorfanlines.7.visiblefanlines.7.xfanlines.7.yfanlines.8.widthfanlines.8.colorfanlines.8.visiblefanlines.8.xfanlines.8.yfanlines.9.widthfanlines.9.colorfanlines.9.visiblefanlines.9.xfanlines.9.yfanlines.10.widthfanlines.10.colorfanlines.10.visiblefanlines.10.xfanlines.10.yarcs.0.widtharcs.0.colorarcs.0.visiblearcs.0.xarcs.0.yarcs.1.widtharcs.1.colorarcs.1.visiblearcs.1.xarcs.1.yarcs.2.widtharcs.2.colorarcs.2.visiblearcs.2.xarcs.2.yarcs.3.widtharcs.3.colorarcs.3.visiblearcs.3.xarcs.3.yarcs.4.widtharcs.4.colorarcs.4.visiblearcs.4.xarcs.4.yarcs.5.widtharcs.5.colorarcs.5.visiblearcs.5.xarcs.5.yarcs.6.widtharcs.6.colorarcs.6.visiblearcs.6.xarcs.6.yarcs.7.widtharcs.7.colorarcs.7.visiblearcs.7.xarcs.7.yarcs.8.widtharcs.8.colorarcs.8.visiblearcs.8.xarcs.8.yarcs.9.widtharcs.9.colorarcs.9.visiblearcs.9.xarcs.9.yarcs.10.widtharcs.10.colorarcs.10.visiblearcs.10.xarcs.10.y
gannbox_squareFALSETRUE501#808080TRUE1#A06B00TRUE1#699E00TRUE1#009B00TRUE1#009965TRUE1#808080TRUE1#A500FFFALSE811#A50000FALSE511#808080FALSE411#A06B00FALSE311#699E00TRUE211#009B00TRUE111#009965TRUE121#009965FALSE131#000099FALSE141#660099FALSE151#A500FFFALSE181#A06B00TRUE101#A06B00TRUE111#A06B00TRUE1.501#699E00TRUE201#699E00TRUE211#009B00TRUE301#009B00TRUE311#009965TRUE401#009965TRUE411#000099TRUE501#000099TRUE51
shapeshowLabelsfontfillBackgroundtransparencylevel1.visiblelevel1.colorlevel1.linewidthlevel1.linestylelevel1.coeff1level1.coeff2level2.visiblelevel2.colorlevel2.linewidthlevel2.linestylelevel2.coeff1level2.coeff2level3.visiblelevel3.colorlevel3.linewidthlevel3.linestylelevel3.coeff1level3.coeff2level4.visiblelevel4.colorlevel4.linewidthlevel4.linestylelevel4.coeff1level4.coeff2level5.visiblelevel5.colorlevel5.linewidthlevel5.linestylelevel5.coeff1level5.coeff2level6.visiblelevel6.colorlevel6.linewidthlevel6.linestylelevel6.coeff1level6.coeff2level7.visiblelevel7.colorlevel7.linewidthlevel7.linestylelevel7.coeff1level7.coeff2level8.visiblelevel8.colorlevel8.linewidthlevel8.linestylelevel8.coeff1level8.coeff2level9.visiblelevel9.colorlevel9.linewidthlevel9.linestylelevel9.coeff1level9.coeff2
gannbox_fanTRUEVerdanaTRUE80TRUE#A06B001018TRUE#699E001014TRUE#009B001013TRUE#0099651012TRUE#8080801011TRUE#0065991021TRUE#0000991031TRUE#6600991041TRUE#A500001081
shapecolorlinewidthlinestylefontshowTopLabelsshowBottomLabelsshowLeftLabelsshowRightLabelsfillHorzBackgroundhorzTransparencyfillVertBackgroundvertTransparencyhlevel1.colorhlevel1.coeffhlevel1.visiblehlevel2.colorhlevel2.coeffhlevel2.visiblehlevel3.colorhlevel3.coeffhlevel3.visiblehlevel4.colorhlevel4.coeffhlevel4.visiblehlevel5.colorhlevel5.coeffhlevel5.visiblehlevel6.colorhlevel6.coeffhlevel6.visiblehlevel7.colorhlevel7.coeffhlevel7.visiblevlevel1.colorvlevel1.coeffvlevel1.visiblevlevel2.colorvlevel2.coeffvlevel2.visiblevlevel3.colorvlevel3.coeffvlevel3.visiblevlevel4.colorvlevel4.coeffvlevel4.visiblevlevel5.colorvlevel5.coeffvlevel5.visiblevlevel6.colorvlevel6.coeffvlevel6.visiblevlevel7.colorvlevel7.coeffvlevel7.visiblefillBackgroundtransparencysnapTo45Degreesgrid.colorgrid.linewidthgrid.linestylegrid.visible
gannbox#15389910VerdanaTRUETRUETRUETRUETRUE80TRUE80#8080800TRUE#A06B000.25TRUE#699E000.382TRUE#009B000.5TRUE#0099650.618TRUE#0065990.75TRUE#8080801TRUE#8080800TRUE#A06B000.25TRUE#699E000.382TRUE#009B000.5TRUE#0099650.618TRUE#0065990.75TRUE#8080801TRUE
fib_speed_resist_fan10VerdanaTRUETRUETRUETRUE#8080800TRUE#A06B000.25TRUE#699E000.382TRUE#009B000.5TRUE#0099650.618TRUE#0065990.75TRUE#8080801TRUE#8080800TRUE#A06B000.25TRUE#699E000.382TRUE#009B000.5TRUE#0099650.618TRUE#0065990.75TRUE#8080801TRUETRUE80TRUE#80808010TRUE
shapeshowCoeffsshowPricesfontfillBackgroundtransparencyextendLineshorzLabelsAlignvertLabelsAlignreversecoeffsAsPercentstrendline.visibletrendline.colortrendline.linewidthtrendline.linestylelevelsStyle.linewidthlevelsStyle.linestylelevel1.visiblelevel1.colorlevel1.coefflevel2.visiblelevel2.colorlevel2.coefflevel3.visiblelevel3.colorlevel3.coefflevel4.visiblelevel4.colorlevel4.coefflevel5.visiblelevel5.colorlevel5.coefflevel6.visiblelevel6.colorlevel6.coefflevel7.visiblelevel7.colorlevel7.coefflevel8.visiblelevel8.colorlevel8.coefflevel9.visiblelevel9.colorlevel9.coefflevel10.visiblelevel10.colorlevel10.coefflevel11.visiblelevel11.colorlevel11.coefflevel12.visiblelevel12.colorlevel12.coefflevel13.visiblelevel13.colorlevel13.coefflevel16.visiblelevel16.colorlevel16.coefflevel14.visiblelevel14.colorlevel14.coefflevel15.visiblelevel15.colorlevel15.coefflevel17.visiblelevel17.colorlevel17.coefflevel18.visiblelevel18.colorlevel18.coefflevel19.visiblelevel19.colorlevel19.coefflevel20.visiblelevel20.colorlevel20.coefflevel21.visiblelevel21.colorlevel21.coefflevel22.visiblelevel22.colorlevel22.coefflevel23.visiblelevel23.colorlevel23.coefflevel24.visiblelevel24.colorlevel24.coeffbaselinecolorlinecolorlinewidthlinestyleshowLabelslevel1.linewidthlevel1.linestylelevel2.linewidthlevel2.linestylelevel3.linewidthlevel3.linestylelevel4.linewidthlevel4.linestylelevel5.linewidthlevel5.linestylelevel6.linewidthlevel6.linestylelevel7.linewidthlevel7.linestylelevel8.linewidthlevel8.linestylelevel9.linewidthlevel9.linestylelevel10.linewidthlevel10.linestylelevel11.linewidthlevel11.linestylefullCirclesextendLeftextendRight
fib_retracementTRUETRUEVerdanaTRUE80FALSEleftmiddleFALSEFALSETRUE#8080801210TRUE#8080800TRUE#CC28280.236TRUE#95CC280.382TRUE#28CC280.5TRUE#28CC950.618TRUE#2895CC0.764TRUE#8080801TRUE#2828CC1.618TRUE#CC28282.618TRUE#9528CC3.618TRUE#CC28954.236FALSE#95CC281.272FALSE#CC28281.414FALSE#28CC952FALSE#95CC282.272FALSE#28CC282.414FALSE#2895CC3FALSE#8080803.272FALSE#2828CC3.414FALSE#CC28284FALSE#9528CC4.272FALSE#CC28954.414FALSE#95CC284.618FALSE#28CC954.764
fib_trend_extTRUETRUEVerdanaTRUE80FALSEleftmiddleFALSEFALSETRUE#8080801210TRUE#8080800TRUE#CC28280.236TRUE#95CC280.382TRUE#28CC280.5TRUE#28CC950.618TRUE#2895CC0.764TRUE#8080801TRUE#2828CC1.618TRUE#CC28282.618TRUE#9528CC3.618TRUE#CC28954.236FALSE#95CC281.272FALSE#CC28281.414FALSE#28CC952FALSE#95CC282.272FALSE#28CC282.414FALSE#2895CC3FALSE#8080803.272FALSE#2828CC3.414FALSE#CC28284FALSE#9528CC4.272FALSE#CC28954.414FALSE#95CC284.618FALSE#28CC954.764
fib_timezoneVerdanaFALSE80rightbottomTRUE#80808012TRUE#8080800TRUE#0055DB1TRUE#0055DB2TRUE#0055DB3TRUE#0055DB5TRUE#0055DB8TRUE#0055DB13TRUE#0055DB21TRUE#0055DB34TRUE#0055DB55TRUE#0055DB89#808080#0055DB10TRUE1010101010101010101010
fib_trend_timeTRUEVerdanaTRUE80rightbottomTRUE#80808012TRUE#8080800TRUE#CC28280.382FALSE#95CC280.5TRUE#28CC280.618TRUE#28CC951TRUE#2895CC1.382TRUE#8080801.618TRUE#2828CC2TRUE#CC28282.382TRUE#9528CC2.618TRUE#CC289531010101010101010101010
fib_circlesTRUEVerdanaTRUE80FALSETRUE#80808012TRUE#CC28280.236TRUE#95CC280.382TRUE#28CC280.5TRUE#28CC950.618TRUE#2895CC0.764TRUE#8080801TRUE#2828CC1.618TRUE#CC28282.618TRUE#9528CC3.618TRUE#CC28954.236TRUE#CC28954.6181010101010101010101010
fib_speed_resist_arcsTRUEVerdanaTRUE80TRUE#80808012TRUE#CC28280.236TRUE#95CC280.382TRUE#28CC280.5TRUE#28CC950.618TRUE#2895CC0.764TRUE#8080801TRUE#2828CC1.618TRUE#CC28282.618TRUE#9528CC3.618TRUE#CC28954.236TRUE#CC28954.6181010101010101010101010FALSE
fib_wedgeTRUEVerdanaTRUE80TRUE#80808010TRUE#CC28280.236TRUE#95CC280.382TRUE#28CC280.5TRUE#28CC950.618TRUE#2895CC0.764TRUE#8080801FALSE#2828CC1.618FALSE#CC28282.618FALSE#9528CC3.618FALSE#CC28954.236FALSE#CC28954.6181010101010101010101010
fib_channelTRUETRUEVerdanaTRUE80leftmiddleFALSE10TRUE#8080800TRUE#CC28280.236TRUE#95CC280.382TRUE#28CC280.5TRUE#28CC950.618TRUE#2895CC0.764TRUE#8080801TRUE#2828CC1.618TRUE#CC28282.618TRUE#9528CC3.618TRUE#CC28954.236FALSE#95CC281.272FALSE#CC28281.414FALSE#28CC952FALSE#95CC282.272FALSE#28CC282.414FALSE#2895CC3FALSE#8080803.272FALSE#2828CC3.414FALSE#CC28284FALSE#9528CC4.272FALSE#CC28954.414FALSE#95CC284.618FALSE#28CC954.764FALSEFALSE
shapeborderColordrawBorderfillBackgroundfillLabelBackgroundfontfontsizelabelBackgroundColorlabelBackgroundTransparencylinecolorlinewidthprofitBackgroundprofitBackgroundTransparencystopBackgroundstopBackgroundTransparencytextcolorbackgroundColorbackgroundTransparency
date_range#667B8BFALSETRUETRUEVerdana12#00000030#5858581#FFFFFF#BADAFF60
price_range#667B8BFALSETRUETRUEVerdana12#00000030#5858581#FFFFFF#BADAFF60
date_and_price_range#667B8BFALSETRUETRUEVerdana12#00000030#5858581#FFFFFF#BADAFF60
shapeborderColordrawBorderfillBackgroundfillLabelBackgroundfontfontsizelabelBackgroundColorlabelBackgroundTransparencylinecolorlinewidthprofitLevelprofitBackgroundprofitBackgroundTransparencystopLevelstopBackgroundstopBackgroundTransparencytextcolorbackgroundColorbackgroundTransparencyriskaccountSize
long_position#667B8BFALSETRUETRUEVerdana12#5858580#5858581(Visible bars' high price - Visible bars' low price) 20#00A00080(Visible bars' high price - Visible bars' low price) 20#FF000080white251000
short_position#667B8BFALSETRUETRUEVerdana12#5858580#5858581(Visible bars' high price - Visible bars' low price) 20#00A00080(Visible bars' high price - Visible bars' low price) 20#FF000080white251000
shapeshowCoeffsfontfillBackgroundtransparencycolor1color2linewidthtrendline.visibletrendline.colortrendline.linestylelevel1.colorlevel1.visiblelevel1.linewidthlevel1.linestylelevel1.coeff
projectionTRUEVerdanaTRUE80#008000#FF00001TRUE#8080800#808080TRUE101
shapelinecolorlinewidthcentersColorfailureBackgroundfailureTextColorintermediateBackColorintermediateTextColorsingleChartOnlysourceBackColorsourceStrokeColorsourceTextColorsuccessBackgroundsuccessTextColortargetBackColortargetStrokeColortargetTextColortransparency
forecast#1c73db2#202020#e74545#ffffff#ead289#6d4d22TRUE#f1f1f1#6e6e6e#6e6e6e#36a02a#ffffff#0b6fde#2fa8ff#ffffff10
shapeaverageHLvariancetransparencycandleStyle.upColorcandleStyle.downColorcandleStyle.drawWickcandleStyle.drawBordercandleStyle.borderColorcandleStyle.borderUpColorcandleStyle.borderDownColorcandleStyle.wickColor
ghost_feed205050#6BA583#D75442TRUETRUE#378658#225437#5B1A13#737375
shapecolorsizeangle (rad)scaleicon*
icon#3d85c6401,57110x263A
* 图标可以是以下值之一:形状与覆盖 - 图1
shapecolorflippedmirroredmode
bars_pattern#5091CCFALSEFALSE0

一些属性的可能值:

  • linestyle: [0 (solid), 1 (dotted), 2 (dashed), 3 (large dashed)]
  • linewidth: [1, 2, 3, 4]
  • horzLabelsAlign: ["center", "left", "right"]
  • vertLabelsAlign: ["top", "middle", "bottom"]
  • leftEnd, rightEnd: [0 (Normal), 1 (Arrow)]
  • bars_pattern - mode: [0 (HL Bars, 1 (Line-Close), 2 (OC Bars), 3 (Line-Open), 4 (Line-High), 5 (Line-Low), 6 (Line-HL/2)]