Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 367
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
I've honestly never used these SB resources. But what prevents you from looking in the SB where there, by what methods, the colours are set. What you have shown in the listing:
- are object names - CPanel, CEdit, CBmpButton and CWndClient classes.
And you need to find names of members of these classes where colours are stored and use which methods they can be initialized or changed.
And you'll probably have to initialize them first and then build the object itself.
Click on the error message. The cursor will indicate the variable name. It needs to be declared
Thank you!
You should not post decompiled code on this forum. I understand that you haven't posted code, just a picture. But it means that you are working with stolen software products. This is strongly discouraged here - this is... how shall I put it... a violation of community ethics. Here on the forum and resource lion's share of forum users are programmers - we write our own code or use public works of our colleagues. But you use and remake someone else's stolen code (maybe someone else's here too). In general, it is not a good idea to start your activities here.
Colours are defined in Defines, then objects are colored using ObjectSetInteger() functions. At the moment I'm also painting directly with this method. But I'd like to try it through OOP. As I see, if there isn't a separate public method to modify, there's no way to get through to the private member. I'm just not that well versed in inheritance and virtual methods, I'm still "swimming" and studying the subject. Okay, I'll try to ask in service-desk to make a public method for coloring, and if it's possible in another way, maybe they will tell me how.
Temporarily, copy this class to your Include\your_folder and put in theclass member variables you need to store the colours and public methods to set and return them.
Plus - you will be able to do as you already need. Minus - when you update the SB in the original class, there may be refinements, and you do not have them and have to copy and paste the methods you need into the updated class again.
... Well it's strange that there is no possibility to change the colour quietly - without defines ...
Please help - how can I quickly get and information on the volume (number of lots total) of all open positions on all instruments? Please share the function.
Please help - how can I quickly get and information on the volume (number of lots total) of all open positions on all instruments? Please share the function.
Function GetAmountLotFromOpenPos().
This function returns the amount of lots of the open positions. More accurate selection of counted positions is specified by external parameters:
Thank you.
Please advise the following question: Zig-zag by threshold(depth(in points, High(Low) are formed after passing n-points, depth=Depth*Point). There is a chain of points (ArrUp(ArrDn)) that shows addition drawing of the zigzag, i.e. the last point was ArrUp, then the depth is dropped down and the first point ArrDn is formed, after it a series of ArrDn points, as the price went down (addition drawing). We have to build the algorithm in such a way that there is an indentation of depth. Maybe a for loop, I can't figure it out.
Hi all.
Teach me how to stop the EA and start when a new candle appears.