I'm learning MQL5 and I'm me with a question. In most EA examples, the stop loss and take profit are realized by points. However, I would like to use the stop loss and take profit by the price. How can I do that?
mrequest.action=TRADE_ACTION_DEAL;...
How can I get magic number when i have TRADE_TRANSACTION_HISTORY_ADD event
hi im new. i want to make new EA for Trailing Stop, so it can take care of all open trade on the chart.
normally i will set manually for all open positions. i just what to make the triling stop to be automated.
can it be done?
can anybody help me ?
sir i need reverse order sir
instead of BUYSTOP order in upper side i need SELLLIMIT order in upper side
instead of SELLSTOP order in lower side i need BUYLIMIT order in lower side
pls help me sir
i tried but not work
pls fix this one
Hello everyone,
I have a question regarding the search for a Martingale indicator.
I would love to get an EA that just does Martingale and nothing more.
One that monitors trades coming in and change lot's when losing.
My trading (entries, exits) come from my personal EA, but I have difficulties...
any body able to assist fixing the compile errors in the code below //+------------------------------------------------------------------+ //| defines | //+------------------------------------------------------------------+ // #define MacrosHello "Hello, world!" //
could someone please help me in coding this:
double lotsoptimized(){
double lot;
if(stoploss>0)lot=AccountBalance()*(risk/100)/(stoploss*pt/MarketInfo(Symbol(),MODE_TICKSIZE)
*MarketInfo(Symbol(),MODE_TICKVALUE));
else lot=NormalizeDouble((AccountBalance()/lotsize)
*minlot*risk...
Hello guys
I tried to code an EA, but i have a problem in pending orders.
when signal called and pending order did set, if pending order get not reach and open, EA dose not delete that and dose not set new pending order for new signal.
What should i do now?
Most part of my EA
input string...
This is just for verification because I seem to be getting conflicting results but per my below code shouldn't my most current values be CloseArray[0] and RSI_ARRAY[0] ? Or did I get my signals mixed and my most current values would be CloseArray[1] and RSI_ARRAY[1] Thoughts?...
Hi, I am trying to receive CHARTEVENT_MOUSE_MOVE event for a chart that I open with ChartOpen : int OnInit () { //Everything is fine for the current chart, I receive the CHART_EVENT_MOUSE_MOVE events with the following line ChartSetInteger ( 0 , CHART_EVENT_MOUSE_MOVE , 0 , true ) //I open an
I tested the EA in https://www.mql5.com/en/docs/chart_operations/chartindicatoradd and works well.
Now I wish modify indicator's style/width/color, is there a way?
Thanks
Nicola
Hello folks, I have spent all the afternoon trying to get the following code works.
After tried it with no success, I built a completely different code with Windows APIs to use the correct names from Kernel32 library but also didn't work.
https://msdn.microsoft...
Discuss about Sharpe Ratio.
I think if a signal with Sharpe Ratio lower than 0.2 is not good. I mean it is very risky. Your opinions?
hi,
I can not download ea from macket, the maket tab diaplayed error, pls refer the attachment.
My system is windows 2008 server and the mt4 is udpated on this VPS .
pls suggest how to download this EA?
Anyone know of an EA that works on Parabolic SAR and RSI
In the FAQ for Signal Service, we have this stated limitation:
On Provider's account all trades are performed with volume of 0.1 lots. I want to copy these trades with larger volume, for example 0.3 lots. Can I raise the volume somehow?
All volumes are calculated automatically. Subscriber can...
Hello fellow traders and programmers,
I'm interessted in your opinion and would like to know how you evaluate a EA. What are the important requirements that a EA must fulfill?
Of course I want to know that because I need help with my own EA... Also, I dont know how much I can trust the backtests...
Hello, I would like to know how to be sure that a custom indicator have been already loaded into the chart?
I have an script, then inside it I create an instance of a custom indicator (slower than built-in indicators) and add it to the chart.
After that I read some values of the custom indicator...
Hi,
I am a newbie to programming and a part-timetrader.
I cannot watch the chart all of the time. I am looking for an ea that will open a trade at the end ofthe candle. I want to open 4 separate positions at 1 time and be able to also set TPand SL or Trailing Stop for each position individually. I...
hi
i need mql code to store static values A and one for dynamic variable as B
so i need to compare this one
let for example one high made it stored in static and another high made as dynamic variable as B
so i have to compare this two values
pls help me out to give code for this
hello,
i have a question : some one know if there are a system like Hlaiman (https://www.mql5.com/en/market/product/6077)
this system allow to put arrow to learn the strategy ...my question there are some open surce free program like it that can be modified and allow to add indicator .
if...
Does anyone know how to capture the current closed price? I'm writing an EA program and I assumed that the current closed price was contained within the below but I was wrong.
input ENUM_APPLIED_PRICE CURRENT_CLOSE = PRICE_CLOSE;
like the title say i have small acount of 100 euro and i w to try an ea
Hallo Traders....
Does anybody know which charttemplate (*.tpl) is used during optimization process?
I always thought it should be "tester.tpl", which is by default used during one-off backtesting.
Well, this is quite interesting (andfrustrating) and it may influence dramatically final...
Hello folks, I have an indicator {indicator_diff} where I need to make use of the handles of other two indicators {indicator_1, indicator_2}. What my indicator does is output the difference between the other two indicators, given by the handles: {handle_1, handle_2}. Both handles are passed as input
About optimization.
A strategy tester doesn't end any more forever from the way during a test from an update of 12 Jun 2015 Ver.
There is also EA which normally ends, but there is also EA which has not ended any more forever from the way.
It could normally be tested in MT4 before 12 Jun 2015 Ver....
Hy guys
I've just downloaded the MT5 version 5.00 build 1150 (22 may 2015) provided by my broker and I notice the the EA does not work as on the the demo version. It looks strange because the indicator, the trailing stop loss and the adx check seems to looks fine, the problem it that the EA know...
Comments that do not relate to the "Indicator modification help needed.", have been moved into this topic.
ive recently finished making a simple moving average strategy using the 100bar ma on the 1 hour and 4 hour time charts and desperately need help creating an ea for it. i have zero experience with ea's and dont even know where to start. it is a simple strategy that i can easily explain to someone
Hi !
Using CTrade. Strategy Tester.
Trade.PositionModify(_Symbol,sl,0);
returns
2013.05.21 23:59:00 CTrade::OrderSend: modify EURUSD (sl: 1.28620, tp: 0.00000) [invalid stops]2013.05.21 23:59:00 failed modify sell 0.22 EURUSD sl: 0.00000, tp: 0.00000 -> sl: 1.28620,...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.