龙听期货论坛's Archiver

期股小白菜 发表于 2018-4-14 17:28

跪求各位大神帮助将编码导入软件!!!!!!!!

哪位大神可以帮忙把编码改成指标导入系统软件!!!!
本人有一组编码需要导入赢顺,或者信管家,或者通达信,都可以!多谢
Params
        Numeric Length1(5);
        Numeric Length2(10);
        Numeric Length3(20);
        Numeric Length4(30);
Vars

    NumericSeries ma5;
        NumericSeries ma10;
        NumericSeries ma20;
        NumericSeries ma30;

Begin

    ma5= AverageFC(Close,Length1);
        ma10=AverageFC(Close,Length2);
        ma20=AverageFC(Close,Length3);
        ma30=AverageFC(Close,Length4);
        
// 这时做多

        If (close >ma5 and close > ma10 and Close > ma20 and close > ma30 and ma5 > ma10 And ma10 >ma20 And ma20 > ma30 And ma5 > ma30 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
        {
            Buy (0,NextOpen);
        }Else
        If ( close >ma5 and close > ma10 and Close > ma20 and close > ma30 and ma5 > ma10 And ma10 >ma20 And ma20 > ma30 And ma5 > ma30 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==0)
        {
            Buy (0,0);
        }
//这是平多语句        
        If (Close < ma5 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
        {
            Sell(0,NextOpen);
        }Else
        If (Close < ma5 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==1)
        {
                Sell(0,0);
        }
// 这时做空.
        
    If (close < ma5 and close < ma10 and Close < ma20 and close < ma30 and ma5 < ma10 And ma10 < ma20 And ma20 < ma30 And ma5 < ma30         And CurrentTime > 0.090100 And CurrentTime < 0.145500)
        {
            SellShort(0,NextOpen);
        }Else
        If (close < ma5 and close < ma10 and Close < ma20 and close < ma30 and ma5 < ma10 And ma10 < ma20 And ma20 < ma30 And ma5 < ma30         And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==0)
        {
            SellShort(0,0);
        }
//这是平空语句
        If (Close > ma5 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
        {
            BuyToCover(0,NextOpen);
        }Else
        If (Close > ma5 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==-1)
        {
                BuyToCover(0,0);
        }

End

页: [1]