Forum

What is the problem of this code?

Hi there, I am trying to test simplest EA which only buy's a stock at a specified price. But when I do strategy test, I get no result and seems there is a problem in my code. May you help me to know is my code a complete robot or what is the problem? Thanks in advanced

Is it possible for "take profit" and "sell request" to get confilict?

I am newbie in EA system and it's the first time I am trying to write one of them, So a question came up to me: Should we write sell request for our EA, if we have specified take profit in our buy request? I mean the EA won't sell our stock when the market price reached to our bought price+ take

How can I send my order in pre-specified market price point?

Hello everyone, I read about different pending orders in MT5 but unfortunately I couldn't find what I need. What I need is putting buy orders exactly when the market price reached to a specified point. For example, consider market price of stock_a is $100 at the moment. I guess it will goes down up

How to read a text file and trade upon it?

I want to write an EA that reads a text file with contents like bellow and do automatic trading upon it. Name: stock_a Range: 122 - 124 cost: 1000 Type: buy (IT means today buy the stock_a in prices between 122-124 with total volume of 1000 dollar for example). And the text file will be update

How can I send sell/buy commands to MT5 from outside of the application?

Hi there, I like to know is there any API to use it on my program to send sell/buy commands to MT5? What I am trying to do is do some calculations on all stocks in my C++ program, then find best stocks to buy/sell, then send buy/sell commands to MT5 to do that. May someone help me to know how should

How can I test to see if my broker allows me to do automatic trading or not?

Hey guys, Is there a simple code that I can test on my MT5 application to see if my broker allows automatic trading or not? (I am not in Forex market and just like to see does automatic trading work in our market(Iran market) or not? I know my broker allows conditional orders on MT5) ***I also seek

Is it possible to write and train a neural network in MT5?

Hi, I am very new on this topic. What I like to do is to write a neural network system, for automated trading on MT5. I know how to write a NN in Matlab or C++, but I don't know is it possible and good idea to learn MQL5 and try to write the NN in this language or not? Is MT5 IDE powerful enough for

How MT5 gets data from this site: "tsetmc.com" ?

Hello, This site "tsetmc.com" is the Tehran stock market's website. When I use MT5, I connect to this server "MofidSecurities-Server" and it gets data from the Tehran stock market website online. My question is here: How does this server work? I mean do they pay money to "tsetmc.com" to get their

How to pass data from MT5 to a c++ program and vise versa?

How can I get data from MetaTrader5, pass it through a C++ program and do some processing on it, then send the result as some commands to MT5 to buy or sell

Can I use C++ in MetaTrader5?

Hi there, I like to know if is it possible to use C++ to create a bot in MetaTrader5 or I must learn MQL4/5? Thanks a lot