Hello Dear programmers, I'm really askingyou to write an EAbased on the indicator. The indicator does not draw, which is the most important thing. It shows good results. It has two modes of operation. The first one, when a diamond appears, should open a position, while the reverse signal closes the order and opens it in the opposite direction. The second mode should have a fixed take profit and stop.
At a glance, opposite positions should be closed at the opening positions:
//--- open positionif(m_trade.PositionOpen(Symbol(),ORDER_TYPE_BUY,InpLots,priceAsk,0.0,tpAsk))
{
printf("Position by %s to be opened",Symbol());
ClosePositions(POSITION_TYPE_SELL);
}
else
...
At a quick glance, you need to close the opposite positions at the opening positions:
You have 10 open positions in SELL and 10 positions in BUY and you only need to close BUY positions. That's what he asked. And what you're telling us has a place, if that's the logic you're looking for.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
But maybe I got it wrong. If he doesn't say anything then he has understood it!
Good afternoon, happy baptism to all. I've been trying to add two more lines on my own, but when I compile it, I get zero errors and the indicator stops showing up on the chart. I also tried to add a contraction or expansion between lines in the parameter Shift when zero is all right when you put 1 indicator begins to hang and then the lines are extended, can you make the parameter responsible for the expansion between the lines could enter a decimal number separated by a comma, such as 0.78. Thanks in advance.
Hello dear programmers. Could you write an EA or better an indicator for MT4? I want it to find two candlesticks, which necessarily go one after the other with the same High or Low. And if you can add an alert with a sound signal and a message on the monitor screen from which currency pair a signal came. Thank you very much.
acya13 #: Hello, dear programmers. Could you write an EA or better an indicator for MT4? I would like it to find two candlesticks which follow each other with the same High or Low. And if you can add an alert with a sound signal and a message on the monitor screen from which currency pair a signal came. Thank you very much.
Hello. Will the indicator be installed in each instrument separately? Or, will the list of currency pairs to be monitored be set in the parameters?
And a question about the TF. Will it be fixed in the settings?
Hello. If you can, yes, it would be desirable to install it in each instrument separately. I do not really understand the second question. If you mean do you want to customize the indicator, you don't have to do it according to the system. You may do it the way you want.
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.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The function is taken from the code ofVladimir Karputov
Thank you! Now I will try it
Hello Dear programmers, I'm really askingyou to write an EAbased on the indicator. The indicator does not draw, which is the most important thing. It shows good results. It has two modes of operation. The first one, when a diamond appears, should open a position, while the reverse signal closes the order and opens it in the opposite direction. The second mode should have a fixed take profit and stop.
<*.ex* file was deleted
The function is taken from the code ofVladimir Karputov
At a glance, opposite positions should be closed at the opening positions:
At a quick glance, you need to close the opposite positions at the opening positions:
You have 10 open positions in SELL and 10 positions in BUY and you only need to close BUY positions. That's what he asked. And what you're telling us has a place, if that's the logic you're looking for.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
But maybe I got it wrong. If he doesn't say anything then he has understood it!
Hello, dear programmers. Could you write an EA or better an indicator for MT4? I would like it to find two candlesticks which follow each other with the same High or Low. And if you can add an alert with a sound signal and a message on the monitor screen from which currency pair a signal came. Thank you very much.
Hello. Will the indicator be installed in each instrument separately? Or, will the list of currency pairs to be monitored be set in the parameters?
And a question about the TF. Will it be fixed in the settings?
Hi. Can I write an EA that would disable autotrading in MT4 terminal for all traded pairs at set drawdown? Thanks for that.
here - but it's easier to add in your EA - ExpertRemove();
function (keystroke) is taken from this codehttps://www.mql5.com/ru/code/8567
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
you need to allow the .dll to work
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
No, it is better not to allow the . dll - but allow in the Expert Advisor settings to .dll and Allow EA to trade