分类: MT4 (MQL4)

37 篇文章

MT4摊平下单
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…
MT4在特定时间停止开仓
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…
MT4 连续上涨三根K线开仓
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…
MT4 RSI 指标开仓平仓
static int TicketNumber; int OnInit() { return (INIT_SUCCEEDED); } void OnDeinit(const int reason) { } void OnTick() { if (OrdersTotal() == 0 && iRSI(Symbol(), 0, 14, …
MT4在特定时间开仓平仓
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…
价格和点数互转
double PriceToPips(double price) { double pips = 0; int digits = (int)MarketInfo(Symbol(), MODE_DIGITS); if(digits == 3 || digits == 5) { pips = price * MathPow(10, digits) / …
mql4 EMA 计算
//+------------------------------------------------------------------+ //| EMA计算.mq4 | //| Copyright 2023, 100w123 | //| https://100w123.com | //+-----------------------------…
mql4 带箭头信号的MACD
//+------------------------------------------------------------------+ //| 带箭头信号的MACD.mq4 | //| Copyright 2023, 100w123 | //| https://100w123.com | //+------------------------…
mql4 绘制蜡烛图
//+------------------------------------------------------------------+ //| 绘制蜡烛图.mq4 | //| Copyright 2023, 100w123 | //| https://100w123.com | //+-----------------------------…