老师文华MQ如何导入开拓者TB代码? (文华财经wh9)

投资者咨询:老师文华MQ如何导入开拓者TB代码? (文华财经wh9)
来源:文华财经  日期:2018-8-31 18:55
 如题,抽空解答下,谢谢。
技术人员回复
日期:2018-8-31 19:00
可以直接使用的,您在右上角》编写》编写公式复制看下

语法不通过的话,可以将源码发送上来,我们帮您调整下
投资者咨询:老师文华MQ如何导入开拓者TB代码? (文华财经wh9)
来源:文华财经  日期:2018-8-31 18:55
 Params
        Numeric no(20);
       
     
Vars
        NumericSeries upperband;
       
  
Begin
    
  if(barstatus == 0)
  {
  upperband = Open;
 
  }Else if(barstatus <> 0 And High >= upperband + no )
  {
   upperband = upperband + no;
   PlotNumeric("upperband=",upperband,0,Red);
 
  }Else if(barstatus <> 0 And High <= upperband + no And Low >= upperband - no)
 {
   upperband = upperband ;
   PlotNumeric("upperband=",upperband);
 
  }Else if(barstatus <> 0 And Low <= upperband - no )
  {
   upperband = upperband - no;
   PlotNumeric("upperband=",upperband,0,Green);
 
  }
 
 
 
 
 End
技术人员回复
日期:2018-8-31 19:38
 参考:

Params
        Numeric no(20);
       
      
Vars
        NumericSeries upperband;
        
  
Begin
     
  if(barstatus == 0)
  {
  upperband = Open;
  
  }Else if(barstatus <> 0 And High >= upperband + no )
  {
   upperband = upperband + no;
   PlotLine("upperband=",upperband,Red,0);
  
  }Else if(barstatus <> 0 And High <= upperband + no And Low >= upperband - no)
 {
   upperband = upperband ;
   PlotNumeric("upperband=",upperband);
  
  }Else if(barstatus <> 0 And Low <= upperband - no )
  {
   upperband = upperband - no;
   PlotLine("upperband=",upperband,Green,0);
  
  }
  
  
 End

 
投资者咨询:老师文华MQ如何导入开拓者TB代码? (文华财经wh9)
来源:文华财经  日期:2018-8-31 18:55
 

图片点击可在新窗口打开查看
技术人员回复
日期:2018-8-31 20:28
 这样看下:

Params
        Numeric no(20);
       
      
Vars
        NumericSeries upperband;
        
  
Begin
     
  if(barstatus == 0)
  {
  upperband = Open;
  
  }Else if(barstatus <> 0 And High >= upperband + no )
  {
   upperband = upperband + no;
   PlotLine("upperband=",upperband,Red,0);
  
  }Else if(barstatus <> 0 And High <= upperband + no And Low >= upperband - no)
 {
   upperband = upperband ;
   PlotNumeric("upperband=",upperband);
  
  }Else if(barstatus <> 0 And Low <= upperband - no )
  {
   upperband = upperband - no;
   PlotLine("upperband=",upperband,Green,0);
  
  }
  
     PlotNumeric("upperband=",upperband);
  
 
 End

投资者咨询:老师文华MQ如何导入开拓者TB代码? (文华财经wh9)
来源:文华财经  日期:2018-8-31 18:55
 好的