Articles

编制自动交易系统的基本知识 for MetaTrader 4

解释使用MQ4语言编制自动交易系统的基本知识, 通过例子说明自动交易系统程序文件的基本构成

Forum

Why prev_calculated jump between 0 and Bars ?

Why prev_calculated jump between 0 and Bars ? prev_calculated means last calculated bars , but now only is 0 or Bars int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[], const double & open[]

How to Draw Cnadle chart in indicator_separate_window ?

in indicator_separate_window , DRAW_HISTOGRAM use 0 as base to draw HISTOGRAM. in indicator_chart_window, DRAW_HISTOGRAM use another buffer as base to draw HISTOGRAM. how to draw candle chart in indicator_separate_window like it in indicator_chart_window? And how to code in codes to receive same

How to Draw a circle ?

How to Draw a circle ? ObjectCreat() not good since it always draw ELLIPSE, I want to draw a circle with a line linke two points. but in MT, it draw ELLIPSE since different X/Y scale( Y is price, X is time, they are never same scale, but I want draw circle whenever axes change). I want use one 2

How to draw stick not candle indicator?

sir: when draw costum indicator in DRAW_HISTOGRAM, it is drawn in candles. how to draw it in stck mode

How to auto iraterate active all char windows?

How to auto iraterate active all char windows with indicator? frequently, the actived front windows auto-refresh only, those back char MDI-windows not refresh

Why is the time axe not linear and uniform ?

prices ~ time graphes are not arawed in un-linear and un-uniform . This happens in all graphes!! So also when graphes drawing in o ther sacle mode. What is wrong? plear check the three bars in graph, their time mark is 2013.09.24 04:50;04:45;04:30; not in 5 minutes intercal ! And pleace check the

set the X-range of chart in MQL prigram, is it possiblr?

There is a function ChartGetInteger(...) Where is the function Chart Set Integer(...) ? I want to set the X-range of chart in MQL prigram, is it possiblr

how to creat indicator with other priod??

I used indicator with other priod not current period,but no data received,why and how? void OnInit () { .... Ext1Handle= iCustom ( NULL , PERIOD_CURRENT , "xxxx" ,SlowEMA1); Ext2Handle= iCustom ( NULL , PERIOD_M5 , "xxxx" ,SlowEMA1); Ext3Handle= iCustom ( NULL , PERIOD_M15 , "xxxx" ,SlowEMA1);

Opinion--- How about such trading? 3 times less one month

Opinion--- How about such trading? 3 times less one month. basically, the lots is small and profits each deal is samall, since the initial deposition is only 53 $

Is it possible to use EA to check manual-trade benfore it sended to server?

If I want use EA to monitor and check manual-tading action, how to progeamming? for example, EA can check and then decide aloow or reject user's manual tade before the trade send to server. now,EA only can check the orders state after server receiving orders. Need a event before any order-operation