[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 368

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I've tried many options. Both picture and text and stats. All come with zero volume. On the local computer of course the files are not empty.
Then XZ, i.e. either ask telepaths, or code in the studio.
However, it's not always the case that the server is successful with MT4 transactions. There were cases when switching between passive-active modes helped, and there were cases when nothing helped. Not all servers and not all clients support full RFC 959 protocol, hence the problems.
Good evening!
Dear Professionals, Could you please advise a newbie? I am writing an EA and I stumbled on a certain moment:
I am trying to open orders according to a certain scheme and they may close on the opening day or stay in the market for another 3 days.
I cannot figure out how to register so that I could find an order that has been active for 3 days and close it without closing an order opened later.
The opening scheme is the same for all orders. I assign magics to all of them in the following way: Magic_s =Magic_s+1.
Please, if anyone knows how to solve this problem, please write an answer. I will be very grateful :)
Good evening!
Dear Professionals, Could you please advise a newbie? I am writing an EA and I stumbled on a certain moment:
I am trying to open orders according to a certain scheme and they may close on the opening day or stay in the market for another 3 days.
I cannot figure out how to register so that I could find an order that has been active for 3 days and close it without closing an order opened later.
The opening scheme is the same for all orders. I assign magics to all of them in the following way: Magic_s =Magic_s+1.
Please, if anyone knows how to solve this problem, please write an answer. I will be very grateful :)
Have I understood the algorithm correctly?
After the entry condition is triggered, only one position is opened. If it closes on profit or loss, do not trade on the day it closed. By the way, do you trade on one symbol or several?
I do not know about the disabling of the EA because I do not use it, maybe someone who knows here will write whether it is possible.
Hello!
Can you please tell me how to set the time range of the EA to fully automate it, let's say from 10:00 to 22:00, 5/7?
Hello!
Can you please tell me how to set the time range of the EA to fully automate it, let's say from 10:00 to 22:00, 5/7?
Choose to suit your tastes!
you got it right! writing an EA for one currency pair! thanks for your time!! will study the MQ4 tutorial further!
There you go:
Good afternoon, help for a newbie!
Does the advisor set a sellstop? I get a reply from the server:
2012.09.04 08:30:22 '426944': order was opened : #1896720337 sell stop 308.70 EURUSD at 1.25599 sl: 1.25689 tp: 1.25549
2012.09.04 08:30:22 '426944': request was accepted by server
2012.09.04 08:30:22 '426944': pending order sell stop 308.70 EURUSD at 1.25599 sl: 1.25689 tp: 1.25549
As far as I understand it means the order is accepted.
The order is trading:
Why the order opened at 1.25663 at 16:06???? although the price of 1.25599 was at 16:04.
And then I also moved the stop loss to 1.25650. How could the stop loss have been below the price level?
Thanks in advance for your help!
Здравствуйте извините тему дублирую, так как этой ветки сразу не заметил. Есть такой код, подскажите как к нему прикрутить звук, что то вроде PlaySound("alert.wav"); чтобы новые торговые сигналы сопровождались звуком... Исходник прилагается..
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Red
#property indicator_width1 1
#property indicator_color2 Lime
#property indicator_width2 1
#property indicator_color3 Red
#property indicator_width3 1
#property indicator_color4 Lime
#property indicator_width4 1
extern int SignalGap = 4;
extern int ShowBars = 500;
int dist=24;
double b1[];
double b2[];
double b3[];
double b4[];
int init() {
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(2,DRAW_ARROW,STYLE_SOLID,1);
SetIndexStyle(3,DRAW_ARROW,STYLE_SOLID,1);
SetIndexBuffer(0,b1);
SetIndexBuffer(1,b2);
SetIndexBuffer(2,b3);
SetIndexBuffer(3,b4);
SetIndexArrow(2,234);
SetIndexArrow(3,233);
return(0);
}
int start() {
int k,i,j,limit,hhb,llb;
if (ShowBars >= Bars) ShowBars = Bars;
for (i=0;i<ShowBars;i++) {
b1[i]=0;
b2[i]=0;
b3[i]=0;
b4[i]=0;
hhb = iHighest(Symbol(),0,MODE_HIGH,dist,i-dist/2);
llb = iLowest(Symbol(),0,MODE_LOW,dist,i-dist/2);
if (i==hhb)
b3[i]=High[hhb]+SignalGap*Point;
if (i==llb)
b4[i]=Low[llb]-SignalGap*Point;
b1[i]=High[hhb];//+SignalGap*Point;
b2[i]=Low[llb];//-SignalGap*Point;
}
return(0);
}
Welcome, because the old one is slowing down immensely.
Link to previous top : https://www.mql5.com/ru/forum/134688