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.
Hi codersguru, just a small question. How do you define the MagicNumber variable on your function ? I mean is it some kind of global variable definition ? Thank you in advance
__________________ David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Hi codersguru, just a small question. How do you define the MagicNumber variable on your function ? I mean is it some kind of global variable definition ? Thank you in advance
hi firedave,
I define it on the top of the expert code (before the main functions start() , init() and dinint() :
PHP Code:
//--- Global variables int MagicNumber = 101090; string ExpertComment = "PriceCross";
to make it in the global scope and the every line in the expert code can use it.
When the contest starts the code will be availabe! I'm sorry for that!
You are trading with too much risk.
Maybe thats a good strategy for a contest, but not for real trading.
Btw, will there be a fixed risk ratio (fixed lot size to use) for the contest EAs?
Loss protector I meant is for the all of opened trade!
Anyway my ProfitProtector code has been executes at 150USD level and this is the final statement!
I define it on the top of the expert code (before the main functions start() , init() and dinint() :
PHP Code:
//--- Global variables
int MagicNumber = 101090;
string ExpertComment = "PriceCross";
to make it in the global scope and the every line in the expert code can use it.
When the contest starts the code will be availabe! I'm sorry for that!
Hi codersguru, thank you for the prompt reply. No problem with your EA, I'm just need the information about global variable definition. Your answer is much satisfy. Again thank you and all the best for you
__________________ David Michael H
"Trader helps traders with sincerity, honesty and integrity"