投资者咨询:老师文华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);
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
