I got some serious troubles copying signals because my Broker (GKFX) sets the displayed Account Leverage in MT4 to 1:10. The Support answered that the technical reason for this is because they have different Leverages for each Symbol (e.g. GBP/USD is 1:200 and EUR/USD is 1:400) so they set...
How to write a program code for a EA, to uncheck an ' Allow Live Trading ' box on the EA Common Settings window ( but not on the Platform Trade Permissions), whenever the Net Balance falls to a level, that you want it to disable opening trades. But checks the box back again, whenever the Net...
I followed this post
but it does not change lot (still trade0.01 in my demo account)
could anyone please send me ExpertMAMA codeI can change lot size?
Thank you very much!
I've recently started using fxdreema and I'm a newbie. I looked at many answers but couldn't find an answer to my question.
Is there a way to setup EA to wait and to trade in certain conditions?
Example: I want my EA to buy when cande close is above the 200 EMA but wait and not open any...
I have a good entry system and exit for trading, but I don't have time to stare at my chart until my exit setup appears.
So, I'm wondering if it's possible to code an EA that will exit for you only?
I'm not asking for free coding. I just want to know if this is possible before placing a job in...
I developed an expert.
As far as I know, the expert starts running when the price change.
However, if the price change again, and my expert does not get to finish, the expert do not continues and another expert run starts.
This happens when the market is under strong variations.
I'm searching for a EA that move the stop loss like a trailing stop but even when the SL is in a loo area.
the starting price is 100
starting SL 90
"dynamic" stop loss is 10
when the price is 101 the EA will move the SL to 91. When the price get to 111 it become a norma trailing...
Can someone please give me an example of how to use the MQL5 built-in class TrailingFixedPips ?
I tried the following:
#include <Trade\Trade.mqh>#include <Expert\Expert.mqh>#include <Expert\Trailing\TrailingFixedPips.mqh>input string Expert_Title = "toets8";ulong...
I am developing expert advisor.
But there is an "invalid volume" problem in my coding.
Below is the method I learn and think at mql5 articles.
//+------------------------------------------------------------------+//| Check the correctness of the order...
I'm trying to get a formula to calculate trade lotsizes based on stop loss and a % of the account to risk.
I know this has been asked a million times but I still can't get a formula to work. It will need to calculate the value based on conversion to the account currency...
Ola pessoal estou tendo dificuldades com a leitura de um arquivo TXT, peguei um programa q ja faz isso porem por algum motivo na hora da leitura dos dados a funcao entra em loop infinito. Poderiam me ajudar com o problema ou postar algum codigo exemplo.
segue a baixo o ponto q entra em loop...
Is there a way to calculate the Average number of Pips per tick?
I am new to coding in MQL4.
I would like to check in my code if there is a sudden fast movement against my trade and close it out if true.
Should I use the spread?
Thanks for any assistance.
Some of the objects that typically appear in Strategy Tester are not appearing in my live account.
More specifically, the entry arrows do appear but the exit arrows and the lines joining the entry and exit arrows do not appear.
Also, the red dashes that mark the stop loss price and...
I am a amateur trader for 4 years and still trading manuel.
According to my technical system ı need to enter conditional sequentional pending order.
Step-1- First order:Pending buy (dont use limit order) order with SL and TP
Step-2 İf First...
0 error(s), 0 warning(s), compile time: 2485 msec 1 1
Attachement to a chart :
2016.05.26 18:16:13.167 MTea invalid EX5 file (533)
Previous attachement to the same previous chart : successful.
Any idea ?
PS 1 : After check, all EA compiled from...
Hi Every One;
I need to write a code to open trade as the following:
I open the trade by end of the candle so I open sell if the close price more than the open price, and I open Buy if the close price less than the open price.
so if I use the one hour chart , and the last price or the close price...
I'm not sure is it right or wrong? i try on backtest. i think it's strange. for example : if pips loss below -5000 points. i want to set stoploss when rebound again it has to stop at -1000 points. if pips loss below -10000 points. i want to set stoploss when rebound again it has to stop at -2000...
What are the methods to retain a variable value if mt4 was restarted?
i can only think of either
1. storing the information in the comment of an order
2. save the info in a csv file and read it back later
I got a problem with OrderSend.
The order was executed in 150063.782 ms It's too much.
Take a look at the log: (I ommited the account and change the deal number on this log for security reasons..)
OP 0 13:46:06.258 Trades '00000':market sell 1.00 EURUSD
KJ 0 13:48:36...
I read somewhere we can draw trendline in indicator but the information is still very vague for me
Need help to clarify a few things
1. I assume it is true you can draw trendline with mql4. do we use obj_trend for this?
2. is it possible to write an EA whereby...