Anyone knows MQL?

Hello.
I am making a trading bot using my manual trading system.
I am currently encountered with programming language problem.
Anyone knows mql here?

Hi @DonaldFx0707,

Many MQL developer here. You may put your question here. Surely some of them will give you answer.

Btw, I’m also Software Engineer :grin: I have been developing EA since the era of Megalodon :rofl:

Hello TYGMedia.
Thank you for your reply.
Can you tell me the way I get the current price using MQL5?

Hi @DonaldFx0707,

You have to be specific, there are many ways:

if you are asking market price, there are 2 ,ask and bid.

MqlTick price; 
SymbolInfoTick(Symbol(), price);
Print (price.bid, " ",  price.ask);

or this one

Print (SymbolInfoDouble(Symbol(), SYMBOL_BID));
Print (SymbolInfoDouble(Symbol(), SYMBOL_ASK));

All back to your requirement. :slightly_smiling_face:

That is very kind of you.
Thank you.
What types of EAs have you made before?

Hi @DonaldFx0707,

You’re welcome :slight_smile:

I have done many EA, more than 4000 since 2008. Single setup, grid system, hedging, scalping, HFT based, arbitrages and many others. :slight_smile:

You can use ChatGPT/DeepSeek (other AI are available) they can write MQL for you, just make sure you are specific as to what you want (and test it does what you expect!)

Wow, you must be a Megalodon of the EA field.
Can I see some of your product portfolio?

I tried it before, but it generates many errors and I am new to MQL so I can’t correct them.
I have been trading for 7+ years but have a very little knowledge about MQL.

If you have errors with ChatGPT, paste the code into DeepSeek and it will fix them :smiley:

Hi @DonaldFx0707,

I don’t sell EA here. It will be troublesome for providing after sales support. It’s better for me to use my time for trading. :slight_smile:

Examples one of them:

I create many trading bot to spend my time. All for private use only. :slight_smile:

One of my 2025 resolution is 1 bot each day. At least 365 new bot will be borne in the end of 2025 :smiley:

Why, if you’re not selling them? If there are 5 that work reliably, why are the other 360 needed? :expressionless:

2 Likes

You have a really good hobby.
Would you mind spending time teaching me?
I have a trading method that works well, but I don’t know what to do.
What do you think?

All are needed I think.
And more importantly by creating a bot he can sharpen his strategy and find new things interesting.

Hi @Thira,

I guess you are not familiar with trading automation :slight_smile:

First at all, I dont sell it because I dont want conflicts. It’s also can easily be pirated.
Example you sell it for 1000 USD. When your bot is good, other will crack it and sell it to others. I sold my EA before in 2010, something River*** for 500 USD to a “friend”. Later on, he used it for copy trade. When he earned money, he was quiet. When trouble came, he came to me, rushed me to help him. Is it fair?

Second reason, when your ea is performing well, no body will praise you. When it works badly, everyone curse you :rofl: … will you accept this treatment?

Third reason, since EA work mechanically, good ea need to be maintain. I have some trading bot that have been working well since around 2011. The secret is on how you adapt the mechanism to market dynamic. If you don’t know how to adjust the EA, it will kill your balance one day :sweat_smile:

Last thing, when you have a good EA that give you profit, why do you need to be so troublesome selling it? Even for 1000 USD, I wont sell it. When I sell it on high price, no body will trust, it will be rest as laughing stock for others. :rofl:

When you create an EA, mostly you have to pick a strategy. Example, when you write code for breakout, it will hit every breakout.

How about other opportunities, correction for example? You need to write code for correction to catch this type of positions. From here we have 2 strategies.

There are many type of breakout in the market, example from bollinger band we can have price extreme as breakout, there are many other type of breakout. So we will need multiple EA to catch every different breakouts. Can you see now?

Of course, we can combine them into one EA, but it will make the EA becomes complicated. More resource to run the EA, harder to monitor when there is problem. So the best practice is create different EA for different strategy. I can manage the EA easily, upgrade them without disturb others.

More strategy means more profit. So I try every ideas everyday, Example when I have a strategy which generate me 4% each month, when I can create other that can work as complement the first one, the performance will increase. Let say second strategy generate 4%, usually it will become 7-8% each month.

This is a how to develop a good trading bot base on my experiences. I limit my explanation till here. Hopefully it will be covering your question :slight_smile:

1 Like

Hi @DonaldFx0707,

I don’t mind to teach you. But you need to have good background in writing code. You need to understand the principle of algorithm. Learn how to convert your logic into line of code is very important.

I have tried to teach some of BP users here, some are fail, few only (about two) can continue. Some asked me to help them develop EA with no success because they were reluctant to expose the whole strategy. Some even accused me wanted to steal their strategy. So can you see how complicated it will become? :slight_smile:

I can help you but you have to explain everything to me, that means you will be on risk, exposing your secret to a stranger like me. There will be a risk that your strategy can’t be coded due to qualitative method. Only quantitative approaches can be used for trading system.

Hopefully you can understand :slight_smile:

I understand.
I can fully disclose my strategy to you.
But you shouldn’t tell the others about it.
Am I right?
I also want to discuss about forex and cryptos with you.

Hi @DonaldFx0707,

I’m fine. I will never expose your strategy. I have replied to you on private message.
:slight_smile:

1 Like

Hey, I’ve heard about MQL from a lot of traders it’s used for building bots on MT4/MT5 but I’m still new to it myself. Do you know any good places to start learning MQL as a beginner, maybe with simple examples?

MQL can be used for coding EAs however there are many other options available these days like python which is easy to learn. Besides learning if anyone wants to learn about mql just for coding any EA so better to get it coded from a coder/developer by giving them the strategy.