
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
Programmers, take a look at this thread
https://www.mql5.com/en/forum/180799
Cycle Indicator
Can someone help to code this cycle indicator (if code MTF is better):
Cycle To build cycle we start to calculate this indicator:
1). I = [ 4.1*Stochastic%K(5,3)+2.5*Stochastic%K(14,3)+Stochastic%K(45,14)+4*Stochastic%K( 5,20) ] / 11.6
2) Then we calculate the moving average from I to 9 bar.
mm = Average[9](I)
3)The cycle is the difference between these two results:
Cycle=I - mm
4)Pls draw in HISTOGRAM
Interpretation: In everyday life, cycles allow us to predict events: For example (planetary movements,seasons etc...). The analysis of cycles is also employed in financial markets to determine the reversal of trend. According to these cycles one can buy and sell more easily. This analysis is also relevant to trading commodities in relation to the seasons.
Thank you very much
Hi guys,
I need a help on this simple code..
I'd like to change color of a text but no idea how..
Here's the code line..
extern color TextColor = Red;
If I want to change color, I can simply change Red to other color such as white and black..
How about other colors that can't simply defined as a word?
For example, I like to change it to 150,150,150
This is a very light gray.. and it works on MT4 manually
but it won't work when changing Red to 150,150,150..
Any idea how?
I'll appreciate any input.
Hi guys,
I need a help on this simple code..
I'd like to change color of a text but no idea how..
Here's the code line..
extern color TextColor = Red;
If I want to change color, I can simply change Red to other color such as white and black..
How about other colors that can't simply defined as a word?
For example, I like to change it to 150,150,150
This is a very light gray.. and it works on MT4 manually
but it won't work when changing Red to 150,150,150..
Any idea how?
I'll appreciate any input.Hello!
Color constants can be represented in three ways: literally, by integers, or by name (for named Web colors only).
Literal representation consists of three parts representing numerical rate values of three main color components: red, green, blue. The constant starts with C and is enclosed in single quotes. Numerical rate values of a color component lie in the range from 0 to 255.
Here is example of such variable (i used blue color)
extern color bfcolor = C'34,0,255';
Can someone help to code this cycle indicator Thank you very much
Definitely this indicator is useful, especially when you combine it with zigzag.
Very good start to ea coding.
Definitely this indicator is useful, especially when you combine it with zigzag. Very good start to ea coding.
Welcome back Kalenzo.
Definitely this indicator is useful, especially when you combine it with zigzag. Very good start to ea coding.
Thank you very much Kalenzo

This is the one I tried to edit myself.
There were a large number of missing () as well as an extra }
This one compiles correctly.
Robert Hill aka MrPip
There were a large number of missing () as well as an extra }
This one compiles correctly.
Robert Hill aka MrPipThanks Robert, I will try.
Bongo
Hi guys,
I need a help on this simple code..
I'd like to change color of a text but no idea how..
Another tip that I tell all my students is when you have a problem like this simply click your mouse in the middle of the item you want some information about, in this case color, and click F1. You've got all the information you need right there, you just have to get used to searching and finding it.
Good luck
Lux