Moneymanagement Tool as an indicator. How to get the information about the secondary currency? - page 2

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
You can try looking through the list of Window functions for a solution. https://docs.mql4.com/windows.
I do-not work much with graphical objects. When I do need text information on the screen, I usually comment them with line_breaks which places them in a column on the left side. Then I use objects to fill the back_ground so that the chart does-not clash with my text, like the green_box below.
You can also try shifting the chart some_more by using the triangle highlighted in the picture. You can then place all your information within the column on the Right_Side without conflicting with the chart.
Yes. At one point I wanted to make the font_bigger but couldn't. I resulted to drawing object labels. The only problem I had at the time was the name conflict. What I mean is the chart has 2_layers, the foreground and the background. You cannot draw these objects on the background because your candles will mask them because candles are drawn on the foreground. When everything is on the foreground, the objects are drawn according to their name. ObjectNames starting with A are drawn before names starting with B and so-on. I do-not remember if A went on top of Z or vice-versa. Just keep that in mind.
So start the name of your background squares with something like ZZ_Background. If they're landing on top of your Text_Objects then name them something like AA_Background. I believe mines was ZZ_Background+i. The codes are buried somewhere in my archives and I'm too lazy to find it.
ubzen, there is something I don't understand. I wanted to make an indicator with three moving averages. SMA 20, 50, 100. When SMA20 > SMA50 and EMA50 > SMA 100, I want to print a blue histogram between SMA20 and SMA50. And the same the other way: when SMA20 < SMA 50 and SMA50 < SMA 100, the histogram between 20 and 50 should be red. The moving averages themselves are no problem. But I have a question about the histogram: I read here in the forum that I need two buffers for a histogram (upper and lower value). Right now I have 5 buffers: 3 for the SMAs and two for the histograms (blue and red). Do I need another two buffers for the histogram? I am confused because I already have the values for the histogram. It is SMA20 and SMA50. I am not sure how to go on now and how to draw the histogram. I just know that the histogram bars should be drawn between the SMA20 and SMA50 if the conditions are met. Maybe you can give me a tip how to go on?
EDIT: I tried a little bit and one histogram works! But not the other and I have no idea why... I also don't understand why I can remove the line "LongZoneLow[i] = SMA50[i];" completely and I still get the same results, although the lower value for the histogram would be missing then... questions over questions...?!?
This is what I have so far:
ubzen, there is something I don't understand. I wanted to make an indicator with three moving averages. SMA 20, 50, 100. When SMA20 > SMA50 and EMA50 > SMA 100, I want to print a blue histogram between SMA20 and SMA50. And the same the other way: when SMA20 < SMA 50 and SMA50 < SMA 100, the histogram between 20 and 50 should be red. The moving averages themselves are no problem. But I have a question about the histogram: I read here in the forum that I need two buffers for a histogram (upper and lower value). Right now I have 5 buffers: 3 for the SMAs and two for the histograms (blue and red). Do I need another two buffers for the histogram? I am confused because I already have the values for the histogram. It is SMA20 and SMA50. I am not sure how to go on now and how to draw the histogram. I just know that the histogram bars should be drawn between the SMA20 and SMA50 if the conditions are met. Maybe you can give me a tip how to go on?
This is what I have so far:
histogram on main chart ??
think this is nicer looking .... arrows on middle MA
Hey deVries, definitely a nice idea! But I am learning to code right now and therefore I would like to know how to do it.
no arrow buffervalue will be .......
arrows on middle MA value == .......
.
if (SMA20[i] > SMA50[i] && SMA50[i] > SMA100[i]) fill buffer 4 color green
if (SMA20[i] < SMA50[i] && SMA50[i] < SMA100[i]) fill buffer 5 color red
Sorry, I don't get the point.. My questions are:
Why do I get a navy-colored buffer between SMA20 and SMA100 and not between SMA20 and SMA50? Why does the indicator use the SMA100 value as the lower line?
Why is there no maroon-colored buffer when SMA20 < SMA 50 and SMA 50 < SMA 100? It is exactly the same code but nothing happens...?!?