Can I ask some questions on the EA?

 

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 

 

you can use more than one timeframe.
 

tuoitrecuoi:

you can use more than one timeframe.

 

o..YES.

HAHA. Thank you very much. :) 

 

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
 
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. 

 
Please ask your question about mql4 at MQL4.com/forum
MQL4: automated trading forum
  • www.mql5.com
MQL4: automated trading forum
 
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
Reason: