mst_ab: I'm wondering if there is a way to convert DT oscillator (attached) to a function, such as this:
double calculateDT(int timeframe, int PeriodRSI, int PeriodStoch,int PeriodSK, int PeriodSD,int MAMode,int line,int shift)
That is exactly what you should write, an encapsulated iCustom call to make your code
self-documenting.
Detailed explanation of iCustom -
MQL4 and MetaTrader 4 - MQL4 programming forum
whroeder1:
Thanks whroeder1 for your reply, but I don't want to use iCustom because it's very slow and my EA calls the function several times in each tick, so EA optimization will be almost impossible. I want to import the calculation of indicator inside my own function...
That is exactly what you should write, an encapsulated iCustom call to make your code
self-documenting.
Detailed explanation of iCustom -
MQL4 and MetaTrader 4 - MQL4 programming forum

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everybody,
I'm wondering if there is a way to convert DT oscillator (attached) to a function, such as this:
double calculateDT(int timeframe, int PeriodRSI, int PeriodStoch,int PeriodSK, int PeriodSD,int MAMode,int line,int shift)
{
//
//here is the codes
//
}
here is the main "start" section of indicator:
//
//
//
I almost did it and works on current time frame, but it's not working on different timeframes. Would somebody please help me???