Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
What is the purpose of the magic number in EA codes, and what are the magic numbers for all the pairs
??
Magic number is the number that you choose. It can be any number that you want eg 12345 or 432121 or 929292 just as you wish. It is used to mark sent order by the ea to find it later to eg. move stop loss or change take profit or close that order. With magic number you can manage many orders with many ea's and each one of them will know which orders are signed to it. Magic number is independent from the currency or timeframe.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................
so how do you set the magic number on the trade? is it the order number?
i know how to put in the EA, how about how to put it in the oreder?
int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................
int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
not that.. how do i make the order the same magic number as what i place in my EA? is it in the comment?
not that.. how do i make the order the same magic number as what i place in my EA? is it in the comment?
You mean - you have ea that controls orders eg, by magic number 11111 and you want to open manually another trade and set the magic for that manual order to 11111 so the ea could control it?
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................
What if I pick a number that someone else is using, will our trades get mixed up?
LOL, no, magic number is separated for each platform (each metatrader instalation).
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................