反剥头皮10点差-EA
#property link ""#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
//extern int MinPrfofit = 1;//
extern int MinProfit = 1;//最小止盈点
extern int MaxLoss = 10;//MaxLoss:最大止损
extern int Delta = 3;//Delta:希腊字母δ(得塔)
extern int BB_Period = 1;//BB_Period:布林线(Bollinger Bands)周期
extern int BB_Deviation = 2;//BB_Deviation:布林线(Bollinger Bands)背离;偏离;违背;偏差
extern bool FixLotMM = FALSE;//FixLotMM:是否固定份额
extern double FixLotSize = 0.1;//FixLotSize:固定份额的值
extern double RiskPercent= 10.0;//RiskPercent:风险百分比
extern int Slippage = 2;//Slippage:最大允许滑点数
extern string Comm = "Mathematical_Analysis";
int MagicNum;
double StopPoint, Spread, LotStep, Lots, Lots1, MaxLot, MinLot;
/**
设置基准点值
*/
double SetPoint()
{
double PricePoint;
if (Digits == 3)
PricePoint = 0.01;
else if (Digits == 5)
{
PricePoint = 0.0001;
}
else
{
PricePoint = Point;
}
return(PricePoint);
}
学习 {:1_180:} {:1_180:} 谢谢 支持下
页:
[1]