XAUUSD Pip value The pip value of 1 standard lot, or 100,000 units of XAUUSD is $1,000 The pip value of 1 mini lot, or 10,000 units of XAUUSD is $100 The pip value of 1 micro …
这里 https://www.earnforex.com/metatrader-expert-advisors/expert-advisor-template/ 有一个 EA 编程模板,注释也很全,定义了相关状态的枚举,没有使用魔数。 OnTick 函数: //The OnTick function is triggered every time …
在循环中查看 iCustom 指标的索引值 input string Indicator = "AMAngleZn"; //+------------------------------------------------------------------+ //| | //+-------------------------…
一般追踪止损 void orderTrailingStopGeneral(double startPips, double stopPips) { double orderPrice = NormalizeDouble(OrderOpenPrice(), (int)MarketInfo(OrderSymbol(), MODE_DIGITS)); d…
input double lots = 0.01; input double slippage = 3; input int Fast_MA = 5; input int Slow_MA = 15; input double nampin = 5; input int maxnampin = 5; input int MagicNumber = 1…
input int TakeProfit = 5; input double Lots = 0.01; input int MagicNumber = 12345; input bool Weekend_Stop = true; input int Stop_Day_Of_Week1 = 1; input int Stop_Day_Of_Week2…
static int TicketNumber; int OnInit() { return (INIT_SUCCEEDED); } void OnDeinit(const int reason) { } void OnTick() { if (iOpen(Symbol(), 0, 1) < iClose(Symbol(), 0, 1) &a…
static int TicketNumber; int OnInit() { return (INIT_SUCCEEDED); } void OnDeinit(const int reason) { } void OnTick() { if (OrdersTotal() == 0 && iRSI(Symbol(), 0, 14, …
input double LOT = 0.01; input int SLIP = 1; input int MAGIC = 12345; static int TicketNumber; int OnInit() { return (INIT_SUCCEEDED); } void OnDeinit(const int reason) { } vo…
input int TakeProfit = 5; input double Lots = 0.01; input int MagicNumber = 12345; int OnInit() { return (INIT_SUCCEEDED); } void OnDeinit(const int reason) { } void OnTick() …