函数

自定义函数 功能函数 实现某个目的的一段代码

函数

图片自动缩放

阅读(497)评论(0)

Example of scaling factor calculation: //--- Creating a 1.5 inch wide button on a screen i...

函数

伦敦突破策略

阅读(1734)评论(0)

伦敦突破(London Breakout Strategy)策略简单好用,深受投资者及交易员的喜爱。许多EA交易员也会基于该策略制定相应的MT4/MT5程序。 在Google搜寻London Breakout Strategy,大家会发现有50多万条相关信息的网页,最原始的模型恐怕已经找不到,有人说它属于对冲交易、有人说它仅适合于英镑对美元...

函数

OrderReliable

阅读(1301)评论(0)

//============================================================================= // OrderReliable.mqh // // Copyright ? 2006, Derk Wehler ...

函数

两个浮点数是否相等

阅读(1003)评论(0)

bool sqDoublesAreEqual(double n1, double n2) { string st1 = DoubleToStr(n1, Digits); string st2 = DoubleToStr(n2, Digits); return (st1 == st2); }

函数

动态魔术号码

阅读(891)评论(0)

int 动态魔术号() { int Li_ret_0 = 0; int arr_size_4 = ArraySize(读取结果); for (int index_8 = 0; index_8 < arr_size_4; index_8++) if (读取结果[index_8] == Symbol()) Li_r...

函数

净值回落平仓

阅读(861)评论(0)

当前盈亏 = 总浮盈(); if (!启动净值保护) { 最赚 = TotalProfit_Target * 手数单元;//1 Gd_520 = 最赚; Gd_528 = TotalProfit_Step_Ta...

函数

一种分类的写法

阅读(1216)评论(0)

void OnTick() { int h = 0; double pf = 0.; bool doit = false; int phase = 0; int k = 0; for(int i=OrdersTotal()-1;...

函数

净值恢复算法

阅读(1656)评论(0)

根据历史盈利情况,计算当前应该下的手数,使用马丁方法,一般适用于策略非常稳定的ea,偶尔亏损,可使用该手数计算方法。 double 净值恢复算法() { double HisProfit; int pcs; double MinHisProfit; int MinHisProfitPOS; doub...

函数

SQLogTrades.mqh

阅读(1399)评论(0)

#define ACTIVE_ORDERS_SIZE 50 #define CLOSED_ORDERS_SIZE 20 struct order_info { int ticket; // ticket number of the order double atr; // A...

函数

RenkoToCSV

阅读(1614)评论(1)

状态未知,未测试 https://renkoscalper.com/ RenkoToCSV.ex4