论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
前往
共 121 条
帖子
作者
回复/查看
最后发表
2016-08-02 21:30
13
1104
2016-09-21 11:20
emoji-image
2016-08-10 12:05
2012-08-04 06:24
861
74613
2021-08-30 13:02
2015-11-26 06:49
2015-10-09 17:20
2008-10-28 02:45
90
9548
2015-10-20 00:17
4万刀等于4万刀钱:lol
2008-10-28 03:51
//+------------------------------------------------------------------+ //| KNOWYONG //| Copyright ?2008ss. //| [email protected] | //+------------------------------------------------------------------+ #define MAGICMA 16419780400 double Lots = 0.5; extern int TrailingStop = 35; extern double PercentMM = 8; extern double DeltaMM = 0; extern int InitialBalance = 10000; bool UseMM = true; extern double SL = 60; bool FirstSL = true; //###################################################################################################################################### double LotsOptimized() { double volume,TempVolume, F; TempVolume=Lots; if (UseMM) TempVolume =0.00001*(AccountBalance()*(PercentMM+DeltaMM)-InitialBalance*DeltaMM); volume=NormalizeDouble(TempVolume,2); if (volume>MarketInfo(Symbol(),MODE_MAXLOT)) volume=MarketInfo(Symbol(),MODE_MAXLOT); if (volume0) return(buys); else return(-sells); } //###################################################################################################################################### double FuzzyLogic() { double Gator, Gator2, SumGator, WPR, AC1, AC2, AC3, AC4, AC5, tempAC_b, tempAC_s, DeMarker, RSI, Decision; double Rang[5,5], Summary[5]; int x, y; double Argator[7] ={10,20,30,40,40,30,20,10}; double Arwpr[7] ={-95,-90,-80,-75,-25,-20,-10,-5}; double arAC[7] ={5,4,3,2,2,3,4,5}; double arDeMarker[7] ={0.15,0.2,0.25,0.3,0.7,0.75,0.8,0.85}; double arRSI[7] ={25,30,35,40,60,65,70,75}; double Weight[7] ={0.133,0.133,0.133,0.268,0.333}; Gator =iGator(NULL,0,13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN,MODE_UPPER,1); Gator2 =iGator(NULL,0,13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN,MODE_LOWER,1); SumGator =MathAbs(Gator)+MathAbs(Gator2); WPR =iWPR(NULL,0,14,1); DeMarker =iDeMarker(NULL,0,14,1); RSI =iRSI(NULL,0,14,PRICE_CLOSE,1); AC1 =iAC(NULL,0,1); AC2 =iAC(NULL,0,2); AC3 =iAC(NULL,0,3); AC4 =iAC(NULL,0,4); AC5 =iAC(NULL,0,5); ArrayInitialize(Rang,0); ArrayInitialize(Summary,0); //1)=========================================================Gator================================================== if (SumGator=Argator[0] && SumGator=Argator[1] && SumGator=Argator[2] && SumGator=Argator[3] || SumGator>=Argator[4]){Rang[0,2]=1;} //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //2)========================================================WPR======================================================= if (WPR=Arwpr[0] && WPR=Arwpr[1] && WPR=Arwpr[2] && WPR=Arwpr[3] && WPR=Arwpr[4] && WPR=Arwpr[5] && WPR=Arwpr[6] && WPR=Arwpr[7]){Rang[1,4]=1;} //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //3)============================================================AC===================================================== if (AC1AC2 && AC1>0 && AC2>0){tempAC_s=2;} if (AC1>AC2 && AC2>AC3 && AC1>0 && AC2>0 && AC3>0){tempAC_s=3;} if (AC1>AC2 && AC2>AC3 && AC3>AC4 && AC1>0 && AC2>0 && AC3>0 && AC4>0){tempAC_s=4;} if (AC1>AC2 && AC2>AC3 && AC3>AC4 && AC4>AC5 && AC1>0 && AC2>0 && AC3>0 && AC4>0 && AC5>0){tempAC_s=5;} //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ if (tempAC_b==arAC[0] || tempAC_b==arAC[1]){Rang[2,0]=1;} if (tempAC_b==arAC[2] || tempAC_b==arAC[3]){Rang[2,1]=1;} if (tempAC_s==arAC[4] || tempAC_s==arAC[5]){Rang[2,3]=1;} if (tempAC_s==arAC[6] || tempAC_s==arAC[7]){Rang[2,4]=1;} if (Rang[2,0]==0 && Rang[2,1]==0 && Rang[2,3]==0 && Rang[2,4]==0){Rang[2,2]=1;} //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //4)=========================================================DeMarker================================================== if (DeMarker=arDeMarker[0] && DeMarker=arDeMarker[1] && DeMarker=arDeMarker[2] && DeMarker=arDeMarker[3] && DeMarker=arDeMarker[4] && DeMarker=arDeMarker[5] && DeMarker=arDeMarker[6] && DeMarker=arDeMarker[7]){Rang[3,4]=1;} //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //5)==========================================================RSI====================================================== if (RSI=arRSI[0] && RSI=arRSI[1] && RSI=arRSI[2] && RSI=arRSI[3] && RSI=arRSI[4] && RSI=arRSI[5] && RSI=arRSI[6] && RSI=arRSI[7]){Rang[4,4]=1;} //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //________________________________________________________________疋屦蜿?潆
2008-10-26 08:57
2008-10-09 16:04
11
3102
2016-12-07 14:32
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
前往
共 121 条

本站免责声明:

1、本站所有广告及宣传信息均与韬客无关,如需投资请依法自行决定是否投资、斟酌资金安全及交易亏损风险;

2、韬客是独立的、仅为投资者提供交流的平台,网友发布信息不代表韬客的观点与意思表示,所有因网友发布的信息而造成的任何法律后果、风险与责任,均与韬客无关;

3、金融交易存在极高法律风险,未必适合所有投资者,请不要轻信任何高额投资收益的诱导而贸然投资;投资保证金交易导致的损失可能超过您投入的资金和预期。请您考虑自身的投资经验及风险承担能力,进行合法、理性投资;

4、所有投资者的交易帐户应仅限本人使用,不应交由第三方操作,对于任何接受第三方喊单、操盘、理财等操作的投资和交易,由此导致的任何风险、亏损及责任由投资者个人自行承担;

5、韬客不隶属于任何券商平台,亦不受任何第三方控制,韬客不邀约客户投资任何保证金交易,不接触亦不涉及投资者的任何资金及账户信息,不代理任何交易操盘行为,不向客户推荐任何券商平台,亦不存在其他任何推荐行为。投资者应自行选择券商平台,券商平台的任何行为均与韬客无关。投资者注册及使用韬客即表示其接受和认可上述声明,并自行承担法律风险。

版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]