首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何调用此指示器?

如何调用此指示器?
EN

Stack Overflow用户
提问于 2020-09-29 03:12:36
回答 1查看 55关注 0票数 0
代码语言:javascript
运行
复制
input int    BackLimit   = 10000;
input int    TimeFrame   = 0;
input string TimeString  = "0=Current, 15=M15, 30=M30, 60=H1, 240=H4, 1440=Day, 10080=Week, 43200=Month";



input string  SHOW_ZONES            = "==========SHOW ZONES==========";
input bool   zone_show_untested     = true;
input bool   zone_show_verified     = true;
input bool   zone_show_truncoat     = true;
input bool   zone_show_weak         = false;
input bool   zone_show_possible     = false;
input bool   zone_showbroken        = false;

input string  ZONE_ALERTS           = "==========ZONE ALERTS==========";
input bool   zone_show_alerts       = true;
input bool   zone_alert_popups      = true;
input bool   zone_alert_sounds      = true;
input bool   send_email             = false;
input bool   use_push               = false;
input int    zone_alert_waitseconds = 300; 

input string  ZONE_ALERTS_FILTER    = "==========FILTER ALERTS==========";
input bool   filter_zone_alert      = true;
input bool   filter_MA              = true;
input  int   TF_MA                  = 60;
input  int   MA_FAST_PERIOD         = 13;
input  int   MA_FAST_METHOD         = 1;
input  int   MA_SLOW_PERIOD         = 48;
input  int   MA_SLOW_METHOD         = 1;


input string  STYLE_ZONES            = "==========STYLE ZONES==========";
input bool   zone_merge             = true;
input bool   zone_extend            = false;
input bool   zone_solid             = false;
input int    zone_linewidth         = 1;
input int    zone_style             = 0;
input int    ShiftEndRight          = 3;//extend the end of zones 3 bars beyond last bar
input int    zone_limit             = 1000;
input bool   zone_show_info         = true;
input bool   zone_show_size         = true;
input int    zone_label_shift       = 3;
input color  color_label            = clrWhite; //Label color
input string font_label             = "Courier New"; //Label Font
input int    size_label             = 9; //Label size

input string  ZONES_COLOR             = "==========COLOR ZONES==========";
input color   color_support_possible  = DarkSlateGray;
input color   color_support_untested  = SeaGreen;
input color   color_support_verified  = Green;
input color   color_support_weak      = LimeGreen;
input color   color_support_turncoat  = OliveDrab;
input color   color_resist_possible   = Indigo;
input color   color_resist_untested   = Orchid;
input color   color_resist_verified   = Crimson;
input color   color_resist_weak       = Red;
input color   color_resist_turncoat   = DarkOrange;
input color   color_broken_weak       = DarkGray;
input color   color_broken_verified   = Gray;
input color   color_broken_other      = DimGray;

input string  ZONE_FRACTALS         = "==========ZONE FRACTALS==========";
input double zone_fuzzfactor        = 0.75;
input bool   fractals_show          = false;
input double fractal_fast_factor    = 3.0;
input double fractal_slow_factor    = 6.0;

input string  ZONES_GLOBAL_VAR      = "==========ZONES GLOBAL VARIABLES==========";
input bool   SetGlobals             = False;

input string  ZONES_TESTING_MODE    = "==========ZONES TESTING==========";
input bool   Testing                = false; //TRUE == scrolling back the chart shows PAST zone "look"
input bool   ShowTestingBtn         = false; //Show button to switch Testing mode On/Off
input int    TestingBtnX            = 10; //Position of this button
input int    TestingBtnY            = 120;

    double lineOne = iCustom(_Symbol,_Period,"SS_SupportResistance_v07.53 (filter alerts MA)",BackLimit,TimeFrame,TimeString, SHOW_ZONES,zone_show_untested,zone_show_verified,zone_show_truncoat,zone_show_weak,zone_show_possible,zone_showbroken,ZONE_ALERTS,zone_show_alerts,zone_alert_popups,zone_alert_sounds,send_email,use_push,zone_alert_waitseconds,ZONE_ALERTS_FILTER,filter_zone_alert,filter_MA,TF_MA,MA_FAST_PERIOD,MA_FAST_METHOD,MA_SLOW_PERIOD,MA_SLOW_METHOD,STYLE_ZONES,zone_merge,zone_extend,zone_solid,zone_linewidth,zone_style,ShiftEndRight,zone_limit,zone_show_info,zone_show_size,zone_label_shift,color_label,font_label,size_label,ZONES_COLOR,color_support_possible,color_support_untested,color_support_verified,color_support_weak,color_support_turncoat,color_resist_possible,color_resist_untested,color_resist_verified,color_resist_weak,color_resist_turncoat,color_broken_weak,color_broken_verified,color_broken_other,ZONE_FRACTALS,zone_fuzzfactor,fractals_show,fractal_fast_factor,fractal_slow_factor,ZONES_GLOBAL_VAR,SetGlobals,ZONES_TESTING_MODE,Testing,ShowTestingBtn,TestingBtnX,TestingBtnY,0,1);
       Print("The number is ",lineOne);

这些是我想调用的指示器的输入。我也做过类似的调用,要求另一个指标,它起作用了。此特定指示器给出“错误的参数计数”错误。在调用指示器输入后,倒数第二个参数0表示缓冲区为0的行,而最后一个参数1表示最后一根蜡烛。请告诉我可能出了什么问题。谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2020-10-18 10:09:33

因为inputSettings有像“==========BLABLABLA==========”这样的占位符;当你每次有像这样的占位符时,你需要调整你的iCustom调用,你需要在你的iCustom函数调用中放一个"0“

如果有帮助的话请点赞

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64108237

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档