在这个线程中,我会教你如何编写代码或做一些编程。我将使用MQL4作为编程语言。
我将在明天开始制作视频并在此发布。
我会尽力让你们轻松一点。
问题可能是MT4不允许在Backtest上运行OnChartEvent()。这意味着它不会允许来自您的外围设备的输入,即通过OnChartEvent()进行鼠标点击或键盘点击Originally Posted by ;
这仅仅意味着它不是原始的源代码。这是一个非法盗版/反编译的代码。没有严肃的编码员与那种文件一起工作...请不要误解我的意思......没有不敬的意见在这里。你不是罪魁祸首!Originally Posted by ;
经典也许我可以学到一两件事......谁知道
插入的视频
null以下是我在视频中使用的代码请仔细阅读代码,试用MQL4文档参考网站中提供的指标库
https://docs.mql4.com/indiors插入的代码// --------------------------------------------- --------------------- /| tutorial1.mq4 |/|版权所有2017,MetaQuotes Software Corp. |/| https://www.mql5.com |/ ----------------------------------------------- ------------------- #property copyright版权所有2017,MetaQuotes Software Corp.#属性链接https://www.mql5.com #property版本1.00 #property严格#属性indior_chart_window double indiorOutput = 0;字符串名称= Yousername;/ ----------------------------------------------- ------------------- /|自定义指标初始化函数|/ ----------------------------------------------- ------------------- int OnInit(){//---指标缓冲区映射//--- return(INIT_SUCCEEDED); }/ ---------------------------------------------- -------------------- /|自定义指标迭代函数|/ ----------------------------------------------- ------------------- int OnCalculate(const int rates_total,const int prev_calculated,const datetime time#91;#93 ;, const double open#91;#93; ,const double high#91;#93;,const double low#91;#93;; const double close#91;#93;#const; long long tick_volume#91;#93; const long volume#91;#93; ,const int spread#91;#93;){//--- indiorOutput = iCCI(NULL,PERIOD_CURRENT,20,PRICE_TYPICAL,5);打印(indiorOutput =,indiorOutput);打印(Hello World,我的名字是,名字);/---下一次调用返回时的prev_calculated返回值(rates_total); }/ ---------------------------------------------- --------------------
在上面的视频中,我想向您介绍并让您了解使用MQL4 Doc参考网站的感受。因为大部分时间你会在编码时花更多时间在这里。如果您能记住MT4提供的所有库函数/方法,那么它对您有好处。当您习惯使用MQL4进行编程时,您会记得您经常使用的大部分功能。Originally Posted by ;
在这第二部影片中,我向您介绍事件处理功能(重要和MQL4基本)插入的视频
null插入的代码// --------------------------------------------- --------------------- /| tutorial1.mq4 |/|版权所有2017,MetaQuotes Software Corp. |/| https://www.mql5.com |/ ----------------------------------------------- ------------------- #property copyright版权所有2017,MetaQuotes Software Corp.#属性链接https://www.mql5.com #property版本1.00 #property严格#属性indior_chart_window double indiorOutput = 0;字符串名称= Yousername;/ ----------------------------------------------- ------------------- /|自定义指标初始化函数|/ ----------------------------------------------- ------------------- void OnInit(){Print(OnInit被调用123456); }/ ---------------------------------------------- -------------------- /|自定义指标迭代函数|/ ----------------------------------------------- ------------------- int OnCalculate(const int rates_total,const int prev_calculated,const datetime time#91;#93 ;, const double open#91;#93; ,const double high#91;#93;,const double low#91;#93;; const double close#91;#93;#const; long long tick_volume#91;#93; const long volume#91;#93; ,const int spread#91;#93;){//--- indiorOutput = iCCI(NULL,PERIOD_CURRENT,20,PRICE_TYPICAL,5);打印(indiorOutput =,indiorOutput);打印(Hello World,我的名字是,名字);/---下一次调用返回时的prev_calculated返回值(rates_total); }/ ---------------------------------------------- --------------------