Multi Timeframe Indicators - page 422

 

Please help

Hi mladen please help to convert them to MTF. Thanks in advance.

Files:
vsd_ha.ex4  6 kb
vsd_ha.mq4  4 kb
 

fxcollection

It is a decompiled code. Do you have a "normal" version of that code?

fxcollection:
Hi mladen please help to convert them to MTF. Thanks in advance.
 

reply

mladen:
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

fxcollection:
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

fxcollection:
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

Files:
kprmst.mq4  4 kb
 

Here you go

mort000:
Hello Please make MTF and alert when crossing levels 20 - 80. thx
Files:
kprmst.gif  38 kb
 
mladen:
Here you go

not easier here's so

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; }
 

Easier from this ?

string sTfTable[] = {"M1","M5","M15","M30","H1","H4","D1","W1","MN"};

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

ZIGANI:
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; }