您可以在需要的地方直接使用indicator,但这通常不方便,并且需要为MQL4和MQL5编写不同的代码。
nice!!!
0939、int indicatorcreate( string symbol, / 交易品种名称 enum_timeframes period, / 21、 时间表 enum_indicator indicator_id, / enum_indicator列举中的指标类型 int parameters_cnt=0, / 参量号 const mqlparam& parameters_array=null, / 参量数组 );0940、函数返回以 mqlparam 类型参量数组为基础建立的...
浅谈MQL5:图形对象的防破坏保护.pdf,浅谈 MQL5 : 图形对象的防破坏保护 1. 简介 MQL5编程语言的一个优点是, 使用MQL5的标准函数, 您可以在使用MetaTrader5交易终端时使用 代码完成各种任务以及达到各种目标. 这篇文章使用简明的语言, 易懂的实例, 使用两种不同方式来实现控
By company size Enterprises Small and medium teams Startups Nonprofits By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturing Government View all industries View all solutions Resources Topics AI DevOps Security Software Development...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
return(ObjectGetValueByTime(0,m_name,time)); } // 写入 OBJPROP_TEXT 属性 void W_OBJPROP_TEXT(string text) { ObjectSetString(0,m_name,OBJPROP_TEXT,text); } }; 您可以从代码中看到,它包含了读取和写入图形对象属性的方法,这个类在创建的时候与一个图形对象关联,并且它允许接收/传送用于任何交互...
IndicatorSetDouble(INDICATOR_LEVELVALUE,1,80); Day() DayOfWeek() DayOfYear() Hour() Minute() Month() Seconds() Year()MqlDateTime tm; TimeCurrent(tm); int Day=tm.day; int DayOfWeek=tm.day_of_week; int DayOfYear=tm.day_of_year; ...
ChartIndicatorAdd 用指定处理程序在指定图表窗口填加指标。 图表操作 ChartIndicatorDelete 从指定图表窗口移除一个指定名称的指标。 图表操作 ChartIndicatorGet 返回在指定图表窗口指定缩略名的指标句柄。 图表操作 ChartIndicatorName 返回指定图表窗口的指标列表的指标缩略名数量。 图表操作 ChartIndicatorsTotal...
我们使用衰减移动平均线作为测量和跟踪攻击角度重要性的指标。虽然也可以使用原始价格来监测攻击角度,但由于原始价格相比指标缓冲区(indicator buffer)的值更具波动性,因此我们选取了衰减移动平均线。其实,任何移动平均线都可以使用,但我们选择衰减移动平均线是因为它相对新颖,大多数交易者对其可能不太熟悉。 当前计算攻击...