![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Please help
Hi mladen please help to convert them to MTF. Thanks in advance.
fxcollection
It is a decompiled code. Do you have a "normal" version of that code?
Hi mladen please help to convert them to MTF. Thanks in advance.
reply
fxcollection It is a decompiled code. Do you have a "normal" version of that code?
Hi sorry for the late reply. I only have the ex4 version which i download it somewhere. So i decompilied it myself and hope it may help. So do i need to yet the normal version?
fxcollection
Coders in general do not want to work with decompiled code, and I think you might have a problem getting anybody making what you need on a decompiled code
Hi sorry for the late reply. I only have the ex4 version which i download it somewhere. So i decompilied it myself and hope it may help. So do i need to yet the normal version?
ok thank for the response, i will try to find the mql version
...
fxcollection
As far as I see, you should try at this thread : https://www.mql5.com/en/forum/general (since it seems to be a well known heiken ashi smoothed indicator) There are already multi time frame version at that thread too
ok thank for the response, i will try to find the mql version
hello
Hello Please make MTF and alert when crossing levels 20 - 80.
thx
Here you go![](https://c.mql5.com/forextsd/smiles/smile.png)
Hello Please make MTF and alert when crossing levels 20 - 80. thx
Here you go
not easier here's so
case 1 : TimeFrameStr="Period_M1"; break;
case 5 : TimeFrameStr="Period_M5"; break;
case 15 : TimeFrameStr="Period_M15"; break;
case 30 : TimeFrameStr="Period_M30"; break;
case 60 : TimeFrameStr="Period_H1"; break;
case 240 : TimeFrameStr="Period_H4"; break;
case 1440 : TimeFrameStr="Period_D1"; break;
case 10080 : TimeFrameStr="Period_W1"; break;
case 43200 : TimeFrameStr="Period_MN1"; break;
default : TimeFrameStr="Current Timeframe"; TimeFrame =0; }Easier from this ?
int iTfTable[] = {1,5,15,30,60,240,1440,10080,43200};
string timeFrameToString(int tf)
{
for (int i=ArraySize(iTfTable)-1; i>=0; i--)
if (tf==iTfTable) return(sTfTable);
return("");
}[/CODE]
You decide which is shorter and easier, and even though it is up to anybodies preference what kind of coding will one use, I'll stick to my mode because it is much easier to add "custom" time frames to it (offline charts for example) and is simpler (and I am a sucker for simplicity when it comes to coding)
Wish you (and all the members) a happy new year in advance![](https://c.mql5.com/forextsd/smiles/smile.png)
not easier here's so
[CODE]switch(TimeFrame) {
case 1 : TimeFrameStr="Period_M1"; break;
case 5 : TimeFrameStr="Period_M5"; break;
case 15 : TimeFrameStr="Period_M15"; break;
case 30 : TimeFrameStr="Period_M30"; break;
case 60 : TimeFrameStr="Period_H1"; break;
case 240 : TimeFrameStr="Period_H4"; break;
case 1440 : TimeFrameStr="Period_D1"; break;
case 10080 : TimeFrameStr="Period_W1"; break;
case 43200 : TimeFrameStr="Period_MN1"; break;
default : TimeFrameStr="Current Timeframe"; TimeFrame =0; }