As far as I understand this is where the comparison is made. If I'm wrong, let them correct me.
if( (sar10>Open[0])&& // SAR 1 // compare with open price (sar11>Close[0+1])&& // minute and compare with close price (sar50>Open[0])&& // SAR 5 (sar51>Close[0+1])&& // minutes (sar150>Open[0])&& // SAR 15 (sar151>Close[0+1])&& // minutes (sar152<Close[0+2]) // trend start
)
but that's not it. To clarify, the Expert Advisor is attached to the 15 min. chart and SAR is compared to the price for 15, 5 and 1 min. time intervals.... Open[0] Close[0+2] and Close[0+2 ] is the open and close price. I need to compare the bottom of the chart, which is attached to the Expert Advisor on lower timeframes!
Try to recalculate all Timeframes when you get the message "No new data for symbol", because it asks you to do so. I usually do so: I open the data loading window (F2), double-click on the required symbol, double-click on M1 and load the data, despite all its messages. And I do it for each TF - M1, M5, M15 ... Month...
Usually it helps... Although I'm sometimes confused by it... :)
But that's not it. To clarify, the Expert Advisor is attached to the 15 min. chart and SAR is compared to the price for 15, 5 and 1 min. time intervals.... Open[0] Close[0+2] and Close[0+2 ] is the open and close price. I need to compare the bottom of the chart, which is attached to the Expert Advisor on lower timeframes!
Thanks in advance...
iSAR(Symbol(),PERIOD_M1, step,maximum,1); // Данные параболика для текущего символа с периода М1iSAR(Symbol(),PERIOD_M5, step,maximum,1); // Данные параболика для текущего символа с периода M5iSAR(Symbol(),PERIOD_M15,step,maximum,1); // Данные параболика для текущего символа с периода М15iSAR(Symbol(),PERIOD_M30,step,maximum,1); // Данные параболика для текущего символа с периода М30
iOpen (Symbol(),PERIOD_M1,0); // цена открытия минутной свечи текущего (нулевого) бара
iClose(Symbol(),PERIOD_M1,0); // цена закрытия минутной свечи текущего (нулевого) бара
iOpen (Symbol(),PERIOD_M1,1); // цена открытия минутной свечи предыдущего (первого) бара
iClose(Symbol(),PERIOD_M1,1); // цена закрытия минутной свечи предыдущего (первого) бара
iOpen (Symbol(),PERIOD_M5,0); // цена открытия пятиминутной свечи текущего бара
iClose(Symbol(),PERIOD_M5,0); // цена закрытия пятиминутной свечи текущего бара
Try to recalculate all Timeframes when you get the message "No new data for symbol", because it asks you to do so. I usually do so: I open the data loading window (F2), double-click on the required symbol, double-click on M1 and load the data, despite all its messages. And I do it for each TF - M1, M5, M15 ... Month...
Usually it helps... Although I'm sometimes confused by it... :)
artmedia70: artemida70, there is a currency pair in the Market Watch window. I tried your method of loading, but it doesn't work. When loading the data, the green bar does not reach the end and the loading stops. On reloading, the "No new symbol data..." tableau stopped appearing. By the way, all timeframe cubes became bright colours at the same time (although the loading is done on M1). May be the loading file got corrupted? Your opinion - what to do ?
Maybe you wanted to ask how to get the value of a variable described in the include file?
Yes, that's exactly it. There is a file, you've posted, which is very useful, OptimizationReport.mq4. I slightly improved it in order to calculate the Recovery Factor. Now I want to get the value of this variable in the main code to speed up optimization by detecting the pass of the tester and setting the limit of the PV level. I tried to do it through global variables. The value of my variable is not visible in the main code.
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.
001 replied.
As far as I understand this is where the comparison is made. If I'm wrong, let them correct me.
if(
(sar10>Open[0])&& // SAR 1 // compare with open price
(sar11>Close[0+1])&& // minute and compare with close price
(sar50>Open[0])&& // SAR 5
(sar51>Close[0+1])&& // minutes
(sar150>Open[0])&& // SAR 15
(sar151>Close[0+1])&& // minutes
(sar152<Close[0+2]) // trend start
)
but that's not it. To clarify, the Expert Advisor is attached to the 15 min. chart and SAR is compared to the price for 15, 5 and 1 min. time intervals.... Open[0] Close[0+2] and Close[0+2 ] is the open and close price. I need to compare the bottom of the chart, which is attached to the Expert Advisor on lower timeframes!
Thanks in advance...
Do you have this pair in the Market Watch window?
Try to recalculate all Timeframes when you get the message "No new data for symbol", because it asks you to do so. I usually do so: I open the data loading window (F2), double-click on the required symbol, double-click on M1 and load the data, despite all its messages. And I do it for each TF - M1, M5, M15 ... Month...
Usually it helps... Although I'm sometimes confused by it... :)
But that's not it. To clarify, the Expert Advisor is attached to the 15 min. chart and SAR is compared to the price for 15, 5 and 1 min. time intervals.... Open[0] Close[0+2] and Close[0+2 ] is the open and close price. I need to compare the bottom of the chart, which is attached to the Expert Advisor on lower timeframes!
Thanks in advance...
By analogy, go ahead and do it yourself...
Do you have this pair in the Market Watch window?
Try to recalculate all Timeframes when you get the message "No new data for symbol", because it asks you to do so. I usually do so: I open the data loading window (F2), double-click on the required symbol, double-click on M1 and load the data, despite all its messages. And I do it for each TF - M1, M5, M15 ... Month...
Usually it helps... Although I'm sometimes confused by it... :)
What may be the reason, when EA does not close orders (even though it is specified in its code), and tester gives such errors:
By analogy, go ahead and do it yourself...
Please check!!!!!
No errors detected on compile!!!!!
Thanks in advance!
artemida70, there is a currency pair in the Market Watch window. I tried your method of loading, but it doesn't work. When loading the data, the green bar does not reach the end and the loading stops. On reloading, the "No new symbol data..." tableau stopped appearing. By the way, all timeframe cubes became bright colours at the same time (although the loading is done on M1). May be the loading file got corrupted? Your opinion - what to do ?
Maybe you wanted to ask how to get the value of a variable described in the include file?
Yes, that's exactly it. There is a file, you've posted, which is very useful, OptimizationReport.mq4. I slightly improved it in order to calculate the Recovery Factor. Now I want to get the value of this variable in the main code to speed up optimization by detecting the pass of the tester and setting the limit of the PV level. I tried to do it through global variables. The value of my variable is not visible in the main code.
In the EA I write:
double myValue = GlobalVariableGet("myValue");
Print("myValue="+myValue);
MessageBox("myValue="+myValue);
Alert("myValue="+myValue);
In include(laying out):
GlobalVariableSet("myValue", 1);
Doesn't work, myValue=0.00000000
Thought I'd check in here as well ...
How do I set up sending email to narod.ru?
All variants tried:
SMTP server - smtp.narod.ru
SMTP login: - имя@narod.ru
SMTP password - password
From: slt-soft@narod.ru
To: slt-soft@narod.ru
Error: Mail: login to smtp.narod.ru failed