HFT millisecond

 

Hi all,

I've written an EA in MQL5, but I have a problem using the ENUM_TIMEFRAMES (int).
Lots of the classes of EA are using this ENUM while the shortest time is 1 minute.

This is a far too long for my Algo.

Do you guys know how to override this ENUM into double that I can speedup.

Tks 

 
Why do you need ENUM_TIMEFRAMES? Build your EA on ticks.
 
enivid:
Why do you need ENUM_TIMEFRAMES? Build your EA on ticks.

because it will avoid me to re-code TA indicators like MA, RSI...
that use this ENUM in the constructor.

//--- Get the handle for Moving Average indicator

   maHandle=iMA(_Symbol,_Period,MA_Period,0,MODE_EMA,PRICE_CLOSE);

 
statarb:

because it will avoid me to re-code TA indicators like MA, RSI...
that use this ENUM in the constructor.

//--- Get the handle for Moving Average indicator

   maHandle=iMA(_Symbol,_Period,MA_Period,0,MODE_EMA,PRICE_CLOSE);

I am afraid you cannot avoid that in MT5 if you want to use those indicators on ticks.
Reason: