[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 1014
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
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