Basic questions from a newcomer - page 2

 
Thank you! Wrote it using the MACD Sample pattern. It works, but only by itself. Visualization shows that positions are opened and closed not due to specified conditions, but it is not clear when. So far, I cannot find out what is wrong in the code. But thanks for making it work at least!
 
doublezero:
Thank you! Wrote it using the MACD Sample pattern. It works, but only by itself. Visualization shows that positions are opened and closed not due to specified conditions, but it is not clear when. So far, I cannot find out what is wrong in the code. Thank you for making it work at least!
I am not an EA anymore because I should get into details of mql 5 and I am currently working only with mql 4
 

MKL5 is a bit of a wild goose chase. Indicators are assigned weights(?!). I don't need them, if my strategy is based on mutual positioning of indicator lines. I do not know how to circumvent these weights. In general, in my view, this is a reversed nonsense for one type of Expert Advisor. It is difficult to write something else.

And gammaray gets respect and credit.

 
I have a question: I started to study MKL4 to automate my own TS, but somehow I googled "MKL5" and read that to write an advisor in MKL5 you do not need to know the programming language, any beginner can do it. I can do it without any programming language. I found the same in MKL5 as in MKL4. Can you please tell me in a nutshell what is the difference between MKL4 and MKL5?
 
toni_stark:
My question is this: i started to study MKL4 to automate my own EA and somehow googled "MKL5" and read that i don't need to know programming language to write an EA in MKL5, any beginner can do it. I can do it without any programming language. I found the same in MKL5 as in MKL4. Can you please tell me in a nutshell what is the difference between MKL4 and MKL5?

The difference is the contrivance.

I, too, have fallen for this trick. In fact, in MKL4 and especially in MKL5 there are so many nuances which you can't read anywhere about that it's frustrating. Tried to adapt ready-made codes to my strategy, but they are all written differently. So far I have not managed to grasp the essence of it. The deeper you get into MCQL, the clearer it becomes that you can write an Expert Advisor without studying the programming in details, using only trading systems available in the code base, by slightly modifying them. And if your TS differs fundamentally, nothing will work. In my opinion, this is done on purpose, in order to order an Expert Advisor from a specialist, paying money and giving up your profitable strategy. My question is this: when I started studying the Expert Advisor, I started to study it and I've found out that it is not profitable.

 
doublezero:

The difference is the contrivance.

I, too, have fallen for this trick. In fact, in MKL4 and especially in MKL5 there are so many nuances which you can't read anywhere about, that it sinks in. Tried to adapt ready-made codes to my strategy, but they are all written differently. So far I have not managed to grasp the essence of it. The deeper you dive into MCQL, the clearer it becomes that you can write an Expert Advisor, without studying programming and in details, using only trading systems available in the code base, by slightly modifying them. And if your TS differs fundamentally, nothing will work. In my opinion, this is done on purpose, in order to order an Expert Advisor from a specialist, paying money and giving up your profitable strategy. And having tested a lot of ready-made Expert Advisors from the base, I was convinced that ALL of them are unprofitable.

When I was programming for 15 years, I realized that mql has so many pitfalls other languages got rid of a long time ago that it's hard to believe. Note that I haven't started mql 5 at all because my broker does not support Metatrader 5. My broker does not support Metatrader 5. I don't have a choice, so I have to work with mql. But there is no choice, so I have to work with what is available.)
 
doublezero:

The difference is the contrivance.

I, too, have fallen for this trick. In fact, in MKL4 and especially in MKL5 there are so many nuances which you can't read anywhere about, that it's frustrating. Tried to adapt ready-made codes to my strategy, but they are all written differently. So far I have not managed to grasp the essence of it. The deeper you get into MCQL, the clearer it becomes that you can write an Expert Advisor without studying the programming in details, using only trading systems available in the code base, by slightly modifying them. And if your TS differs fundamentally, nothing will work. In my opinion, this is done on purpose, in order to order an Expert Advisor from a specialist, paying money and giving up your profitable strategy. And having tested a lot of ready-made Expert Advisors from the base, I was convinced that ALL of them are unprofitable.

And what, I'm sorry, did you expect? The market situation is changing very frequently, and the EA that was working well yesterday, today may lose your entire deposit, knowing full well that it is doing everything right. Your don't worry about your broker and the fact that 98% of the Russian brokers earn only when you are losing.
And as for the code. Different authors - different style of code writing. Nothing right or wrong here, just different approaches. Some like to write in procedural style (functions call other functions), some in Object Oriented Programming style. Somewhere one fits better than the other.
MT5 has a radically different approach to trades. If in MT4 the basic unit is an order, in MT5 it is already a position as a set of orders.
 
gammaray:
Having been programming for 15 years I realized that mql has so many pitfalls that other languages got rid of a long time ago, that it's hard to believe. I have to say that I haven't looked at mql 5 at all because my broker does not support Metatrader 5. My broker does not support Metatrader 5. I don't have a choice, so I have to work with mql. But there is no choice, so we have to work with what we have.)
So you deliberately, without having the slightest experience in programming in MQL5, engage in language talks? This is a technical forum and words should be supported by code.
 
Karputov Vladimir:
So you are deliberately, with not even the slightest bit of MQL5 programming practice, engaging in language negotiation? This is a technical forum and words should be confirmed by code.
MQL5 has more possibilities, but there's nowhere to apply them in real trading, let's say. And those who played with a tester five years ago are already trading on MT4. So with MT5, you have to start somewhere...
 

I added a product to the market, the moderator said to add a Free Funds Control.

The condition he gave me, but what action should it perform?

I can set the counter to infinity (thereby the robot will wait for reloading.), Notification to the user at least on a mobile phone. I can set the counter to infinity (the robot will wait for the robot to restart).

Reason: