Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 589

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
Why is the virtual Compare method overridden in the CListNode class ignored?
Checked in debugger, always uses Compare from CObjectHi, I wrote an EA like this. Why does it report a sell signal almost every second?
//+------------------------------------------------------------------+
//| Peresechenie TM.mq4 |
//| Popov Vladimir |
//| http://vk.com/id143715412 |
//+------------------------------------------------------------------+
#property copyright "Popov Vladimir"
#property link "http://vk.com/id143715412"
double SellPrice;
double TakeProfit;
double StopLoss;
extern string TimeFrame = "current time frame";
extern int HalfLength = 20;
extern int Price = PRICE_CLOSE;
extern double ATRMultiplier = 2.0;
extern inttern ATRPeriod = 100;
extern bool Interpolate = true;
double PriceHigh, PriceLow, PriceMiddle;
double HighesBuffer[];
double LowesBuffer[];
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
if (Digits == 3 || Digits == 5)
{
TakeProfit *= 10;
StopLoss *= 10;
}
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
int start()
{
PriceHigh = iCustom (Symbol (), 0, "Time", TimeFrame, HalfLength, Price, ATRMultiplier, ATRPeriod, Interpolate, 2, 0);
PriceLow = iCustom (Symbol (), 0, "Time", TimeFrame, HalfLength, Price, ATRMultiplier, ATRPeriod, Interpolate, 1, 0);
PriceMiddle = iCustom (Symbol (), 0, "Time", TimeFrame, HalfLength, Price, ATRMultiplier, ATRPeriod, Interpolate, 0, 0);
if(Ask <= PriceLow)
{
Alert("Signal to Buy");
}
if(Bid >= PriceHigh)
{
Alert("Signal to sell");
}
return(0);
}
//+------------------------------------------------------------------+
Can you please tell me if it is possible to automatically save the report after testing?
I just need to do a lot of test runs in automatic mode (I plan to do it through optimisation without GA) and to save the full report (including picture) on HDD.
Can you please tell me if it is possible to automatically save the report after testing?
I just need to do a lot of test runs in automatic mode (I plan to do it through optimization without GA) and to save full report (including picture) on HDD.
There is function TesterStatistics() andOnTester()
Take a look at them, it may help
Hi, I wrote an EA like this. Why does it report a sell signal almost every second?
Try replacing
at
There is a TesterStatistics() and OnTester() function
Take a look at them, it might help.
Thanks for the advice, but it doesn't seem to help as it's the report itself in its original form (htm) with an image that is needed. There seems to be no ready-made solution. I will try to make a script in autoit, which in the tester specified number of times presses the "Start" button and after each run goes to the tab "Report" and saves the results in the file
Hello! Please help me with the following problem: starting from build 625, the values from the Alert (...), Print(...), Comment(...) functions are not displayed on the indicator chart in the MT4 tester; these values are displayed during the indicator launching for real trading or through the debugger. So, it becomes impossible to monitor parameter changes on historical data using the Print(...) function at least. I had no problems with the 610th build as all values were displayed in the "Experts" tab of the terminal.
Perhaps, the code should be reworked in some other way similar to MQL5? I do not know what to do, I still have to use the old build...
Hello. Has anyone encountered this problem yet?
I have several EAs in the folder, but the terminal (MT 4, build 625) does not have them. And those that are on the terminal are not in the folder. Is it a miracle?
Hello. Has anyone encountered this problem yet?
I have several EAs in the folder, but the terminal (MT 4, build 625) does not have them. And those that are on the terminal are not in the folder. Is it a miracle?
No miracles.
File --> Open Data Folder --> In the window that opens --> MQL4 --> and that's where the folders you are used to are located. The link to this article on the main page of the forum. I am just too lazy to do it.
Why is the virtual Compare method overridden in the CListNode class ignored?
Checked in debugger, always uses Compare from CObjectNeed to override Compare in CData class.