Multi Timeframe Indicators - page 492

Suvra Prakash Mandal
10
Suvra Prakash Mandal  

Thanks chief..I am still into the coding..will definitely come back with more problems

Suvra Prakash Mandal
10
Suvra Prakash Mandal  

how do i pass on an array to a different function?

suppose i calculate all the timeframe averages in a seperate function say macalculation() and invoke them into 2 other functions say checkopen () and checkclose(). Right now I am getting some problem with the values.Can u guide me on right syntax.

Mladen Rakic
153912
Mladen Rakic  
rickyponting:
how do i pass on an array to a different function? suppose i calculate all the timeframe averages in a seperate function say macalculation() and invoke them into 2 other functions say checkopen () and checkclose(). Right now I am getting some problem with the values.Can u guide me on right syntax.

Pass the array by reference to the function. Something like this :

double arrayToPass[100];

someFunction(arrayToPass);

[/PHP]

and the someFunction() in this case would be something like this :

[PHP]void someFunction(double& arrayReceived[])

{

arrayReceived[0] = 1; // array will be assigned some value

}

the "&" tells to compiler that the array is passed by reference

PS: used some values that are just for example. The size of the array you should determine according to your needs (as well as the operations you wish to do on the array elements)

PPS: please, in the future, posts about coding issues post at this thread : https://www.mql5.com/en/forum/174385 since this thread is dedicated to multi time frame indicators not coding questions

john1368
97
john1368  

Can this be made MTF? Also notice that it only works on specific pairs, can it be modified to work on any chart it is attached to, is this possible at all?

Mladen Rakic
153912
Mladen Rakic  
john1368:
Can this be made MTF? Also notice that it only works on specific pairs, can it be modified to work on any chart it is attached to, is this possible at all?

Decompiled code. Sorry

Marco Hinderink
254
Marco Hinderink  
mladen:
john1368 Here you go

Dear Mladen,

Could you make this indicator also with arrow alerts on screen in chart and seperate window(to be swichted on/off mode) when colored lines DarkSlateGray Crosses DodgerBlue for long and short signals on screen. Short = when DarkSlateGray crosses form under through DodgerBlue and vice versa. Thx a lot for your cooperation and help. Marco

GWTriDiffMetatrader4 mtf.mq4

William Snyder
9492
William Snyder  
Marco320:
Dear Mladen,

Could you make this indicator also with arrow alerts on screen in chart and seperate window(to be swichted on/off mode) when colored lines DarkSlateGray Crosses DodgerBlue for long and short signals on screen. Short = when DarkSlateGray crosses form under through DodgerBlue and vice versa. Thx a lot for your cooperation and help. Marco

GWTriDiffMetatrader4 mtf.mq4

Marco320, added the arrows(dots) and alerts. Also being that the Gold line is really osma like for the Tma/Sma macd and signal cross added a multiplier if you put it at 1 or less than 1 will be smaller if greater than 1 the line will be more pronounced on your screen, but no matter the size it will still cross zero the same time as before.If you prefer arrows can change it to that, no problem.

updated version posted here: https://www.mql5.com/en/forum/173574

good_heart
201
good_heart  

Please make a mtf version of the indicator. Thank you!

Files:
wifiguy
34
wifiguy  

I find FX Pulse very useful. It shows the trend in all the time frames as well as showing which markets are open and the time there. Here is a screen shot:

If you do download it make sure you disable the news feed as it crashes my MT4.

Files:
William Snyder
9492
William Snyder  
guest21:
Please make a mtf version of the indicator. Thank you!

Guest21, I have this indicator think it's the same, this one is a fixed version, think you might have some problems with the signals on that version.

________________________

Updated version posted here : https://www.mql5.com/en/forum/173574