paladin80: What does this disconnection look like? If the EA is running on your computer or VPS, only you can disable it, or the office does not accept orders from you at that time.
A properly working EA does not place orders for exactly 1 hour, then it works normally for another 23 hours. The "break" from 23 to 24 hours and works again. Although in settings it is written: HourStart 0, HourEnd 24.
yosuf: A properly working EA does not place orders for exactly 1 hour, and then it works normally for another 23 hours. The "break" from 23 to 24 hours and it works again. But it is written in settings: HourStart 0, HourEnd 24.
What are you like small?
Do the ticks come in?
If yes, does the EA attempt to open an order?
If yes, what is the ticket number returned by OrderSend()?
I want to make a multi-timeframe MA, which changes its colour when the trend changes. I have done the average price display from other timeframes, but I do not know how to solve the problem with the colour change.
So, may someone suggest an idea or even a direct way to proceed?
Good afternoon! The indicator does not draw at all. I can't figure out what the error is, everything looks correctly written. I don't know what to think. And about the same code, without the function and not a big addition at the end, draws!!! Please tell me if there is something I don't know, don't understand, or just somehow I don't see the error I could have understood.
//+------------------------------------------------------------------+//| ИндюкДимонакомпил.mq4 |//| Copyright 2012, MetaQuotes Software Corp. |//| http://www.metaquotes.net |//+------------------------------------------------------------------+#property copyright "Copyright 2012, MetaQuotes Software Corp."#property link "http://www.metaquotes.net"#import "user32.dll"int PostMessageA(int hWnd,int Msg,int wParam,string lParam);
#import#define WM_COMMAND 0x0111int delimiter = 0;
#property indicator_chart_windowdouble ВерхняячертаBuffer1[];
double НижняячертаBuffer2[];
double СинняячертаBuffer3[];
double вершина;
double основание_первого_снижения;
double начало;
double вершина_волны_3;
externint T=4,K=200;
int timeframe, start ;
int бар_вершина ;
int бар_основание_первого_снижения;
int бар_начало;
int pereklutsatel;
double naklon,linija2; int P;externint RO=1;
//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+int init()
{
//---- indicators//----return(0);
}
//+------------------------------------------------------------------+//| Custom indicator deinitialization function |//+------------------------------------------------------------------+int deinit()
{
//----//----return(0);
}
//+------------------------------------------------------------------+//| Custom indicator iteration function |//+------------------------------------------------------------------+int start()
{
int counted_bars=IndicatorCounted();
int limit=Bars-counted_bars-1;
for (int i=limit;i>=0;i--) {
//----for ( int J=0;J<=RO;J++){
//----// for(int i=Bars; i>=0;i--)
i=Bars;
бар_вершина=iHighest( NULL, timeframe, MODE_HIGH, K, start ) ;
вершина =High[ бар_вершина ];
бар_основание_первого_снижения=iLowest( NULL, timeframe, MODE_LOW,NormalizeDouble ( бар_вершина/2,0), start ) ;
основание_первого_снижения=Low[ бар_основание_первого_снижения ];
бар_начало=iLowest( NULL, timeframe, MODE_LOW,NormalizeDouble (бар_вершина*1.5,0), бар_вершина ) ;
начало=Low[ бар_начало ];
if(начало>основание_первого_снижения){naklon=(начало-основание_первого_снижения)/(бар_начало-бар_основание_первого_снижения);
НижняячертаBuffer2[бар_начало]=начало;linija2=начало;for(i=бар_начало-1;i>=0;i--){linija2=linija2-naklon;
НижняячертаBuffer2[i]=linija2;
}
НижняячертаBuffer2[бар_основание_первого_снижения]=основание_первого_снижения;}
for (i=0;i<100;i++){ СинняячертаBuffer3[i]= Open[i];}
for (i=330;i<500;i++){ СинняячертаBuffer3[i]= Open[i];}
ВерхняячертаBuffer1[бар_начало]=начало;
double точка4; int бар_точка4; бар_точка4=iHighest( NULL, timeframe, MODE_HIGH, бар_основание_первого_снижения, 3 ) ;
точка4 =High[ бар_точка4 ];
if(вершина>точка4){naklon=(начало-точка4)/(бар_начало-бар_точка4);
double linija1=начало;for(i=бар_начало-1;i>=0;i--){linija1=linija1-naklon;ВерхняячертаBuffer1[i]=linija1; }}
double vulf=НижняячертаBuffer2[0];
if ( vulf==Ask&&vulf==Bid)vulf=1;
else{ for (vulf=vulf+Point*10; vulf==НижняячертаBuffer2[0];vulf=vulf-Point){
if ( vulf==Ask&&vulf==Bid){vulf=1;}}
for (vulf=vulf-Point*10; vulf==НижняячертаBuffer2[0];vulf=vulf+Point){
if ( vulf==Ask&&vulf==Bid)vulf=1;}
}
if (vulf==1){Comment (" Есть вульв!!! " , " timeframe " , timeframe);return(0); }
if (vulf!=1&&pereklutsatel==1) {
if(delimiter<3){delimiter++;Comment(delimiter);return(0);}
delimiter=0;
fChangePeriod();P++;
} } }
//----return(0);
}
//+------------------------------------------------------------------+void fChangePeriod(){int ii,hwd = WindowHandle(Symbol(),Period());
switch(Period()){
casePERIOD_W1 : ii = 33134; break; //PERIOD_D1;casePERIOD_D1 : ii = 33136; break; //PERIOD_H4;casePERIOD_H4 : ii = 33135; break; //PERIOD_H1;casePERIOD_H1 : ii = 33140; break; //PERIOD_M30;casePERIOD_M30 : ii = 33139; break; //PERIOD_M15;casePERIOD_M15 : ii = 33138; break; //PERIOD_M5;casePERIOD_M5 : ii = 33137; break; //PERIOD_M1;casePERIOD_M1 : ii = 33141; break; //PERIOD_W1;
}
PostMessageA(hwd, WM_COMMAND, ii, 0);
return;
}
Dimka-novitsek: Good afternoon! The indicator does not draw at all. I can't figure out what the error is, everything looks correctly written. I don't know what to think. And about the same code, without the function and not a big addition at the end, draws!!! Please tell me if there is something I don't know, don't understand, or just somehow I don't see the error I could have understood.
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.
What does this disconnection look like? If the EA is running on your computer or VPS, only you can disable it, or the office does not accept orders from you at that time.
A properly working EA does not place orders for exactly 1 hour, and then it works normally for another 23 hours. The "break" from 23 to 24 hours and it works again. But it is written in settings: HourStart 0, HourEnd 24.
What are you like small?
Do the ticks come in?
If yes, does the EA attempt to open an order?
If yes, what is the ticket number returned by OrderSend()?
If "-1", what error code does GetLastError() return?
Why are you so small?
Do the ticks come in?
If yes, does the EA attempt to open an order?
If yes, what is the ticket number returned by OrderSend()?
If "-1", what error code does GetLastError() return?
1. Coming;
2. They are coming, as usual, and persistently;
3., 4. - Now checking against the log.
I remembered, and on the tester does not place orders during this period.
Thank you.
Good morning dear friends. I used to program in C++ (institute about 10 years ago).
I need help with this question:
Algorithm opens 2 pending orders by condition. A BUYSTOP always opens first, a SELLSTOP after it.
This is a new TIC:
How to track if there are already working orders (BUY ? SELL ? BUYSTOP? SELLSTOP? ) ?
How do I know with a new tick if a triggered TakeProfit order is closed + in this case close the opposite order (if there is still one)?
Hello, could you please give me the code for an indicator to draw a line like this, or better yet a beam based on these two points.
A word of advice, please:
I want to make a multi-timeframe MA, which changes its colour when the trend changes. I have done the average price display from other timeframes, but I do not know how to solve the problem with the colour change.
So, may someone suggest an idea or even a direct way to proceed?
Good afternoon! The indicator does not draw at all. I can't figure out what the error is, everything looks correctly written. I don't know what to think. And about the same code, without the function and not a big addition at the end, draws!!! Please tell me if there is something I don't know, don't understand, or just somehow I don't see the error I could have understood.
Of course it doesn't, it has no indicator buffers.
How could I not?
Where are they?
Name one.