I am new to MT5. I am not inquiring about specific brokers, or trying to get recommendations. I want to respect the above wishes, but I am curious about something. Not so long ago I installed MT5 on my machine. I clicked on file - webtrader, and it took me to a site where it looked alive, prices were moving, trades could be made, and there was a $100,000 demo account. I was kind of having fun practicing on it. I went there today and it looked like it had been cut off, and had brecieved no data since midnight last night.
I couldn't see any broker name, but I am curious, was it actually a broker, or a temporary service for practice provided by MT5. No broker names need be mentioned here, I am just trying to figure out what just happened, Any thoughts within the guidelines of this thread would be appreciated.
I am new to MT5. I am not inquiring about specific brokers, or trying to get recommendations. I want to respect the above wishes, but I am curious about something. Not so long ago I installed MT5 on my machine. I clicked on file - webtrader, and it took me to a site where it looked alive, prices were moving, trades could be made, and there was a $100,000 demo account. I was kind of having fun practicing on it. I went there today and it looked like it had been cut off, and had brecieved no data since midnight last night.
I couldn't see any broker name, but I am curious, was it actually a broker, or a temporary service for practice provided by MT5. No broker names need be mentioned here, I am just trying to figure out what just happened, Any thoughts within the guidelines of this thread would be appreciated.
Cheers.
The market closes for most instruments on Friday night and opens again on Sunday night.
Good afternoon guys . I have the following code in mql5 that is not working as expected . The code is supposed to open trades on 2 setups , namely the big shadow and the kangaroo tail . here is how the setups are formed 1 Big shadow : it is a candle that engulfs the previous candle and has the lowest low or high of the previous 7 bars . when it is a bullish candle it closes in the top fifth of the candle and when it is a bearish candle it closes in the bottom fifth of the candle . 2 : kangaroo tail : it open and closes in the top third of the candle , when the candle is bullish and close and opens in the bottom third of the candle when the candle is bearish. well the type of the trade ie buy or sell, is determined by one condition, the high or low . If the candle has the lowest low of the previous 7 candles , trade is a buy .However if the candle has the highest high of previous 7 candles , it is a sell trade . Finally , the setup candle has to be on a support and resistance zone and have a body size that is half of the candle's range . I coded all this and it doesnt open trades on the correct candles . It looks like the EA is opening trades randomly during the test. why does this happen ?
That is not an assignment; it's initialization of a common (globally declared), or static variable(s) with a constant. They work exactly the same way in MT4/MT5/C/C++.
They are initialized once on program load.
They don't update unless you assign to them.
In C/C++ you can only initialize them with constants, and they default to zero. In MTx you should only initialize them with constants. There is no default in MT5, or MT4 with strict (which you should always use).
MT4/MT5 actually compiles with non-constants, but the order that they are initialized is unspecified and Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've received a tick), as there may be no connection/chart yet:
Terminal starts.
Indicators/EAs are loaded. Static and globally declared variables are initialized. (Do not depend on a specific order.)
OnInit is called.
For indicators OnCalculate is called with any existing history.
Human may have to enter password, connection to server begins.
New history is received, OnCalculate called again.
A new tick is received, OnCalculate/OnTick is called. Now TickValue, TimeCurrent, account information and prices are valid.
That is not an assignment; it's initialization of a common (globally declared), or static variable(s) with a constant. They work exactly the same way in MT4/MT5/C/C++.
They are initialized once on program load.
They don't update unless you assign to them.
In C/C++ you can only initialize them with constants, and they default to zero. In MTx you should only initialize them with constants. There is no default in MT5, or MT4 with strict (which you should always use).
MT4/MT5 actually compiles with non-constants, but the order that they are initialized is unspecified and Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've received a tick), as there may be no connection/chart yet:
Terminal starts.
Indicators/EAs are loaded. Static and globally declared variables are initialized. (Do not depend on a specific order.)
OnInit is called.
For indicators OnCalculate is called with any existing history.
Human may have to enter password, connection to server begins.
New history is received, OnCalculate called again.
A new tick is received, OnCalculate/OnTick is called. Now TickValue, TimeCurrent, account information and prices are valid.
Hi All,I tried to add a second stochastic to someone else's stochastic alert indicator but can't get it to display the second the second stochastic. Can anyone help ?.
When I sign up for the platform's introductory account, it asks me for the password, and when I type a code and save it, it says the password is wrong. Help us to complete the rest of the settings.
@انور شمسان سعيد#: When I sign up for the platform's introductory account, it asks me for the password, and when I type a code and save it, it says the password is wrong. Help us to complete the rest of the settings.
It is difficult to understand your question.
Are you referring to a trading account or the MQL5 website community account?
Hi,
I am new to MT5. I am not inquiring about specific brokers, or trying to get recommendations. I want to respect the above wishes, but I am curious about something. Not so long ago I installed MT5 on my machine. I clicked on file - webtrader, and it took me to a site where it looked alive, prices were moving, trades could be made, and there was a $100,000 demo account. I was kind of having fun practicing on it. I went there today and it looked like it had been cut off, and had brecieved no data since midnight last night.
I couldn't see any broker name, but I am curious, was it actually a broker, or a temporary service for practice provided by MT5. No broker names need be mentioned here, I am just trying to figure out what just happened, Any thoughts within the guidelines of this thread would be appreciated.
Cheers.
Hi,
I am new to MT5. I am not inquiring about specific brokers, or trying to get recommendations. I want to respect the above wishes, but I am curious about something. Not so long ago I installed MT5 on my machine. I clicked on file - webtrader, and it took me to a site where it looked alive, prices were moving, trades could be made, and there was a $100,000 demo account. I was kind of having fun practicing on it. I went there today and it looked like it had been cut off, and had brecieved no data since midnight last night.
I couldn't see any broker name, but I am curious, was it actually a broker, or a temporary service for practice provided by MT5. No broker names need be mentioned here, I am just trying to figure out what just happened, Any thoughts within the guidelines of this thread would be appreciated.
Cheers.
The market closes for most instruments on Friday night and opens again on Sunday night.
Thanks, I forgot it was a Saturday.
cheers.
Don't hijack other threads for your off-topic post. Next time, make your own, new, thread.
Examples are in the documentation.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
That is not an assignment; it's initialization of a common (globally declared), or static variable(s) with a constant. They work exactly the same way in MT4/MT5/C/C++.
They are initialized once on program load.
They don't update unless you assign to them.
In C/C++ you can only initialize them with constants, and they default to zero. In MTx you should only initialize them with constants. There is no default in MT5, or MT4 with strict (which you should always use).
MT4/MT5 actually compiles with non-constants, but the order that they are initialized is unspecified and Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've received a tick), as there may be no connection/chart yet:
Unlike indicators, EAs are not reloaded on chart change, so you must reinitialize them, if necessary.
external static variable - MQL4 programming forum #2 (2013)
That is not an assignment; it's initialization of a common (globally declared), or static variable(s) with a constant. They work exactly the same way in MT4/MT5/C/C++.
They are initialized once on program load.
They don't update unless you assign to them.
In C/C++ you can only initialize them with constants, and they default to zero. In MTx you should only initialize them with constants. There is no default in MT5, or MT4 with strict (which you should always use).
MT4/MT5 actually compiles with non-constants, but the order that they are initialized is unspecified and Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've received a tick), as there may be no connection/chart yet:
Unlike indicators, EAs are not reloaded on chart change, so you must reinitialize them, if necessary.
external static variable - MQL4 programming forum #2 (2013)
why does the EA still open trades during testing ?
When I sign up for the platform's introductory account, it asks me for the password, and when I type a code and save it, it says the password is wrong. Help us to complete the rest of the settings.
It is difficult to understand your question.
Are you referring to a trading account or the MQL5 website community account?
Can you show a screenshot?