Download MetaTrader 5

Can I ask some questions on the EA?

To add comments, please log in or register
Do you have Linux? Find out how to install MetaTrader on it!
chapmann
45
chapmann 2013.01.24 14:23 

Hi guys,

  Nice to meet you. I first introduce myself. I am from Asia Hong Kong and is a CFA. Now I start learning MT4 EA and automated trading.   

  As I am not graduated from Computer Programming, I have lots of questions when start learning the programe in MT4.

  I have spent about 2 months to wrtie a sample automated trading system. I can only automate a very sample instructions. @@

  And I find that there is 1 big question for me.   How can I develop a EA using both H1 & H4 time period for my work? Is it I have to convert the H1 data into H4 data in the EA? Is there any sample for this?

  Could you guys give help to me ? I am deeply thank you for your great help ! 

 

Chapmann 

Trinh Dat
37203
Trinh Dat 2013.01.24 14:58  

you can use more than one timeframe.
chapmann
45
chapmann 2013.01.24 15:57  

tuoitrecuoi:

you can use more than one timeframe.

 

o..YES.

HAHA. Thank you very much. :) 

Andrey Barinov
39238
Andrey Barinov 2013.01.25 02:12  

Have a look at this page https://docs.mql4.com/series

You can access data from any TimeFrame, from any chart.

Timeseries access - MQL4 Documentation
  • docs.mql4.com
Timeseries access - MQL4 Documentation
chapmann
45
chapmann 2013.01.28 16:24  
Wahoo:

Have a look at this page https://docs.mql4.com/series

You can access data from any TimeFrame, from any chart.

Thanks All.

Your advise is helpful. 

In addition, I want to define some function by using the void XX()

 For example

 void StoplevelFiboBuy()
  {
   double Fb1,Fb2,Fb3,Fb4,Fb5,Fb6,Fb7,Fb8,Fb9,Fb10,Fb11,Fb12,Fb13;
   double Ma144_1 = iMA(NULL,0,144,0,MODE_EMA,PRICE_CLOSE,1);
   double Ma169_1 = iMA(NULL,0,169,0,MODE_EMA,PRICE_CLOSE,1);
   double MedVegas=NormalizeDouble((Ma144_1+Ma169_1)/2,Digits);

  } 

When I compile this, there is a warning saying Function"StoplevelFiboBuy" is not referenced and will be removed from exp-file.   

Is there something wrong about it?

Hope will seek your help. Thanks. 

phi nuts
2184
phi nuts 2013.01.29 06:30  
Please ask your question about mql4 at MQL4.com/forum
MQL4: automated trading forum
  • www.mql5.com
MQL4: automated trading forum
hao nguyen xuan
254
hao nguyen xuan 2013.01.29 10:48  
phi.nuts:
Please ask your question about mql4 at MQL4.com/forum
Yes. We can find most code sample and explained everything us question at MQL4.com/forum. Wish you become a coder mt4.
MQL4: automated trading forum
  • www.mql5.com
MQL4: automated trading forum
To add comments, please log in or register