大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

[求助]麻煩老師了 [文華財(cái)經(jīng)]

  • 咨詢內(nèi)容: ?麻煩老師改成文化可用的
    Params? ? ? Numeric Length(40);? ? ? Numeric NumATRs(1); ?Numeric Offset(1); ?Numeric ATRLength(10); ?Numeric TrailingStart(1); ?Numeric StopLossSet(4); ?Numeric TrailingStop(3);Vars? ? ? NumericSeries TPrice;? ? ? Numeric AvgValue;? ? ? NumericSeries ShiftValue;? ? ? Numeric UpperBand;? ? ? Numeric LowerBand;? ? ? Numeric MyPrice; ?Numeric UpLine; //上軌 ?Numeric DownLine; //下軌? ?NumericSeries MidLine; //中間線 ?Numeric Band; ?NumericSeries HigherAfterEntry; ?NumericSeries LowerAfterEntry; ?Numeric DayOpen; ?Numeric StopLine; ?BoolSeries bLongTrailingStoped;? ? ? BoolSeries bShortTrailingStoped; ?Numeric MinPoint;Begin? ? ?MinPoint = MinMove*PriceScale;? ? ?DayOpen=AvgEntryPrice; TPrice=(High[1]+Low[1]+Close[1])/3;? ? ?AvgValue=AverageFC(TPrice,Length);? ? ?ShiftValue=NumATRs*AvgTrueRange(ATRLength);? ? ?UpperBand=AvgValue+ShiftValue[1];? ? ?LowerBand=AvgValue-ShiftValue[1]; MidLine = AverageFC(Close,Length); Band = StandardDev(Close,Length,2);? UpLine = MidLine + Offset * Band; DownLine = MidLine - Offset * Band;? ?If(BarStatus > 0){ bLongTrailingStoped = bLongTrailingStoped[1]; bShortTrailingStoped = bShortTrailingStoped[1];}Commentary("bLTrue","False"));Commentary("bShortTrailingStoped="+IIFString(bShortTrailingStoped,"True","False"));
    If(BarsSinceEntry==1){? ? HigherAfterEntry=AvgEntryPrice;? ? LowerAfterEntry=HigherAfterEntry;}Else// If(BarsSinceEntry>1){? ? ? ?HigherAfterEntry=max(HigherafterEntry[1],High[1]);? ? ? ?LowerAfterEntry=min(LowerAfterEntry[1],Low[1]);}If(bLongTrailingStoped==False && MarketPosition!=1&&High>=UpperBand)? ?{? ? ? MyPrice=UpperBand;? ? ? If(Open>MyPrice)MyPrice=Open;? ? ? Buy(1,MyPrice); ?bLongTrailingStoped=True; ?bShortTrailingStoped=False;? ? ? Return;? ?}If(bShortTrailingStoped==False && MarketPosition!=-1&&Low<=LowerBand){? ? ?MyPrice=LowerBand;? ? ?If(Open<MyPrice)MyPrice=Open;? ? ?SellShort(1,MyPrice);? bShortTrailingStoped=True; bLongTrailingStoped=False;? ? ?Return;}If(HigherAfterEntry>=AvgEntryPrice+DayOpen*TrailingStart*0.01&&MarketPosition==1){? ? ? ?StopLine=HigherAfterEntry-DayOpen*TrailingStop*0.01;}Else//止損{? ? ? ?StopLine=UpperBand-DayOpen*StopLossSet*0.01;}If(Low<=StopLine){? ? ? ?MyPrice=StopLine;? ? ? ?If(Open<MyPrice)MyPrice=Open;? ? ? ?Sell(1,MyPrice); ? bLongTrailingStoped=True; ? bShortTrailingStoped=False;? ? ? ?Return;}If(LowerAfterEntry<=AvgEntryPrice-DayOpen*TrailingStart*0.01&&MarketPosition==-1){? ? ? ?StopLine=LowerAfterEntry+DayOpen*TrailingStop*0.01;}Else//止損{? ? ? ?StopLine=LowerBand+DayOpen*StopLossSet*0.01;}
    If(High>=StopLine){? ? ? ?MyPrice=StopLine;? ? ? ?If(Open>MyPrice)MyPrice=Open;? ? ? ?Buytocover(1,MyPrice); bShortTrailingStoped=True; bLongTrailingStoped=False;? ? ? ?Return;}

    //再次入場(chǎng)的代碼If(bLongTrailingStoped && MarketPosition==0 && High > HigherAfterEntry){ MyPrice = HigherAfterEntry + MinPoint; If(Open > MyPrice) MyPrice = Open; Buy(1,MyPrice); bLongTrailingStoped = False; bShortTrailingStoped= True; Return;}If(bShortTrailingStoped && MarketPosition==0 && Low < LowerAfterEntry){ MyPrice = LowerAfterEntry - MinPoint; If(Open < MyPrice) MyPrice = Open; SellShort(1,MyPrice); bLongTrailingStoped = True; bShortTrailingStoped= False; Return;}End

    ?

    ?來(lái)源:程序化99

  • 文華技術(shù)人員: ?我們提供程序化軟件MQ,類似C語(yǔ)言的語(yǔ)法結(jié)構(gòu),兼容了您上面模型的語(yǔ)法,簡(jiǎn)單修改后即可使用
    您下載MQ試下,如果您不會(huì)改,我們?cè)賻湍治鱿?br style="line-height: 22px;" />MQ地址?https://mq.wenhua.com.cn/
    ?

    ?

    ?來(lái)源: www.weiqiv.net.cn

  • 文華客服: ?老師,復(fù)制到MQ還是不行,提示


    文件名:sgz1g(od(zuhecco5}s4icc.png
    ?麻煩老師改為MQ可以用的

    ?

  • 網(wǎng)友回復(fù): 參考:
    Params ? ? ? Numeric Length(40); ? ? ? Numeric NumATRs(1);
    ?Numeric Offset(1);
    ?Numeric ATRLength(10);
    ?Numeric TrailingStart(1);
    ?Numeric StopLossSet(4);
    ?Numeric TrailingStop(3); Vars ? ? ? NumericSeries TPrice; ? ? ? Numeric AvgValue; ? ? ? NumericSeries ShiftValue; ? ? ? Numeric UpperBand; ? ? ? Numeric LowerBand; ? ? ? Numeric MyPrice;
    ?Numeric UpLine; //上軌
    ?Numeric DownLine; //下軌?
    ?NumericSeries MidLine; //中間線
    ?Numeric Band;
    ?NumericSeries HigherAfterEntry;
    ?NumericSeries LowerAfterEntry;
    ?Numeric DayOpen;
    ?Numeric StopLine;
    ?NumericSeries bLongTrailingStoped; ? ? ? ?NumericSeries bShortTrailingStoped;
    ?Numeric MinPoint; Begin ? ? ?MinPoint = MinMove*PriceScale; ? ? ?DayOpen=AvgEntryPrice;
    TPrice=(High[1]+Low[1]+Close[1])/3; ? ? ?AvgValue=AverageFC(TPrice,Length); ? ? ?ShiftValue=NumATRs*AvgTrueRange(ATRLength); ? ? ?UpperBand=AvgValue+ShiftValue[1]; ? ? ?LowerBand=AvgValue-ShiftValue[1];
    MidLine = AverageFC(Close,Length);
    Band = StandardDev(Close,Length,2);?
    UpLine = MidLine + Offset * Band;
    DownLine = MidLine - Offset * Band;?
    ? If(BarStatus > 0) {
    bLongTrailingStoped = bLongTrailingStoped[1];
    bShortTrailingStoped = bShortTrailingStoped[1]; } //Commentary("bLTrue,"False")); Commentary("bShortTrailingStoped="+IIFString(bShortTrailingStoped,"True","False"));

    If(BarsSinceEntry==1) { ? ? HigherAfterEntry=AvgEntryPrice; ? ? LowerAfterEntry=HigherAfterEntry; }Else// If(BarsSinceEntry>1) { ? ? ? ?HigherAfterEntry=max(HigherafterEntry[1],High[1]); ? ? ? ?LowerAfterEntry=min(LowerAfterEntry[1],Low[1]); } If(bLongTrailingStoped==0&& MarketPosition!=1&&High>=UpperBand) ? ?{ ? ? ? MyPrice=UpperBand; ? ? ? If(Open>MyPrice)MyPrice=Open; ? ? ? Buy(1,MyPrice);
    ?bLongTrailingStoped=1;
    ?bShortTrailingStoped=0; ? ? ? Return; ? ?} If(bShortTrailingStoped==0 && MarketPosition!=-1&&Low<=LowerBand) { ? ? ?MyPrice=LowerBand; ? ? ?If(Open<MyPrice)MyPrice=Open; ? ? ?SellShort(1,MyPrice);?
    bShortTrailingStoped=1;
    bLongTrailingStoped=0; ? ? ?Return; } If(HigherAfterEntry>=AvgEntryPrice+DayOpen*TrailingStart*0.01&&MarketPosition==1) { ? ? ? ?StopLine=HigherAfterEntry-DayOpen*TrailingStop*0.01; }Else//止損 { ? ? ? ?StopLine=UpperBand-DayOpen*StopLossSet*0.01; } If(Low<=StopLine) { ? ? ? ?MyPrice=StopLine; ? ? ? ?If(Open<MyPrice)MyPrice=Open; ? ? ? ?Sell(1,MyPrice);
    ? bLongTrailingStoped=1;
    ? bShortTrailingStoped=0; ? ? ? ?Return; } If(LowerAfterEntry<=AvgEntryPrice-DayOpen*TrailingStart*0.01&&MarketPosition==-1) { ? ? ? ?StopLine=LowerAfterEntry+DayOpen*TrailingStop*0.01; }Else//止損 { ? ? ? ?StopLine=LowerBand+DayOpen*StopLossSet*0.01; }
    If(High>=StopLine) { ? ? ? ?MyPrice=StopLine; ? ? ? ?If(Open>MyPrice)MyPrice=Open; ? ? ? ?Buytocover(1,MyPrice);
    bShortTrailingStoped=1;
    bLongTrailingStoped=0; ? ? ? ?Return; }

    //再次入場(chǎng)的代碼 If(bLongTrailingStoped && MarketPosition==0 && High > HigherAfterEntry) {
    MyPrice = HigherAfterEntry + MinPoint;
    If(Open > MyPrice) MyPrice = Open;
    Buy(1,MyPrice);
    bLongTrailingStoped = 0;
    bShortTrailingStoped=1;
    Return; } If(bShortTrailingStoped && MarketPosition==0 && Low < LowerAfterEntry) {
    MyPrice = LowerAfterEntry - MinPoint;
    If(Open < MyPrice) MyPrice = Open;
    SellShort(1,MyPrice);
    bLongTrailingStoped = 1;
    bShortTrailingStoped= 0;
    Return; } End

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 511411198  點(diǎn)擊這里給我發(fā)消息進(jìn)行 有償 編寫!不貴!點(diǎn)擊查看價(jià)格!


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 欧美区国产区 | 亚洲va天堂va国产va久 | 九色蝌蚪自拍 | 草久在线观看 | 久久只精品 | 日本福利片国产午夜久久 | 波多野结衣一区二区 三区 波多野结衣一区二区三区 波多野结衣一区二区三区高清在线 | 91青青青青青爽在线 | 久久国产精品久久精 | 亚洲精品成人网 | 奇米888影视| 91色在线视频 | 天天做天天玩天天爽天天 | 四虎影永久地址www 四虎影永久在线高清免费 四虎影永久在线观看精品 四虎影永久在线观看网址 四虎影院.com | 欧美妇性猛交视频 | 91久久综合 | 久久香蕉综合精品国产 | 一级特黄特黄的大片免费 | 91新网站| 久久青草91线频免费观看 | 四虎永久免费观看紧急入口 | 国产好大好爽久久久久久久 | a级片网址 | 日本免费视屏 | 久久久久亚洲 | 欧美成人性色xxxx视频 | 99免费在线播放99久久免费 | 超清波多野结衣精品一区 | 中文字幕一区2区 | 日本一区二区中文字幕 | 色天天综合 | 精品国产免费一区二区三区 | 在线播放真实国产乱子伦 | 国产欧美日本亚洲精品五区 | 天天干天天摸天天操 | 欧美综合一区 | 奇米奇米777 | 四虎影院最新地址 | 欧美日韩在线播一区二区三区 | 久久综合网久久综合 | 夜夜夜网站|