He's rarely online anymore sadly. But I sent him a message.
Posts made by coinmaster
-
RE: Custom logic block implementation.posted in Questions & Answers
-
RE: EA not taking trades or taking false tradesposted in Questions & Answers
@jstap
That wasn't me that said that. It was Tempol. -
RE: EA not taking trades or taking false tradesposted in Questions & Answers
@jstap
Why would I want to round it? That would make it less accurate.
Also I've already tried using the variable values as a crossover trigger. I've tried as many funky workarounds as I could think of and they all give the same result.The only time it worked was when I used the arrows as triggers and I had the backtester in 'visual mode'.
Outside of visual mode nothing works. -
RE: EA not taking trades or taking false tradesposted in Questions & Answers
@tempol
What do you mean?
As you can see from my first post the variable values of the indicator are not rounded at all. -
RE: Custom logic block implementation.posted in Questions & Answers
It seems that the OnTester() and OnTesterPass() sections are not compiling into the code.
A search for OnTester() or OnTesterPass() in the source file does not reveal any results.Could this be a bug?
-
Custom logic block implementation.posted in Questions & Answers
Hello.
I am trying to implement a custom logic block that writes data into a file for each pass of the optimization.
The normal write to file logic block does not use use the frame() function and therefore cannot write to file during optimization.I paid someone to cook a bit of code up for me that will do this.
The code below will write the bid price to file as a test, however the intent is to replicate the 'write to file' logic block and select a list of variables to input.But for now I'm taking it one step at a time and I'm only trying to insert this test script as the logic block. However I can't seem to get it to work.
I placed everything beneath OnTick() into the logic block editor of https://fxdreema.com/studio/MQL5
I placed the OnTesterPass() and OnTesterInit() code into the custom functions section
and everything above OnTick into global variables.This did not compile.
So I placed a few of the global variables into the logic block until it compiled without errors.
However the function does not activate when I place the logic block onto the 'every bar' timer.Can anyone inform me of my error?



#property copyright "Copyright 2020, IVZ."
#property link "https://www.mql5.com/ru/users/febintegral/"
#property version "1.00"
#property tester_everytick_calculatedouble stat_values[7]; // Массив для показателей теста
int cnt = 0;
input double test = 1;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class SomeData
{
public:
string store;
};SomeData pSomeDAta[1];
bool Executed = false;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void OnTick()
{double bidPrice = SymbolInfoDouble(_Symbol,SYMBOL_BID); // Getting the Bid Price
double Mass[20];
for(int i =0; i < 17; i++)
Mass[i] = i;MqlDateTime mdt;
TimeToStruct(TimeCurrent(),mdt);
string output = IntegerToString(mdt.year) + "." + IntegerToString(mdt.mon) + "." + IntegerToString(mdt.day) + "_" + IntegerToString(mdt.hour) + ":" + IntegerToString(mdt.min) + ":" + IntegerToString(mdt.sec)+ ";" + DoubleToString(bidPrice) + ";";for(int i =0; i < 17; i++)
output += "SomeData_" + DoubleToString(Mass[i]) + ";";pSomeDAta[0].store += output + "\r\n";
datetime dt = TimeCurrent();
MqlDateTime mdt1,mdt2;
TimeToStruct(dt,mdt2);TimeCurrent(mdt1);
int PassNumber = 0;
if(mdt.hour == 23 && mdt.min >= 50 && Executed == false)
{string file_name; long search_handle=FileFindFirst("*.csv",file_name,FILE_COMMON); //--- проверим, успешно ли отработала функция FileFindFirst() if(search_handle!=INVALID_HANDLE && -1 != StringFind(file_name,"filetest",0)) { int abc= 0; //--- в цикле проверим являются ли переданные строки именами файлов или директорий do { abc++; } while(FileFindNext(search_handle,file_name)); string sep="_"; // A separator as a character ushort u_sep; // The code of the separator character string result[]; // An array to get strings //--- Get the separator code u_sep=StringGetCharacter(sep,0); //--- Split the string to substrings int k = StringSplit(file_name,u_sep,result); PassNumber = (int)StringToInteger(result[1]); PassNumber++; //--- закрываем хэндл поиска FileFindClose(search_handle); } string headers="Header_1;Header_2;Header_3;Header_4;Header_5;Header_6;Header_7;Header_8;Header_9;Header_10;Header_11;Header_12;Header_13;Header_14;Header_15;Header_16;Header_17;Header_18;Header_19"; int h2=FileOpen("filetest_" + IntegerToString(PassNumber) + "_.csv",FILE_READ|FILE_WRITE|FILE_SHARE_WRITE|FILE_CSV|FILE_COMMON); FileSeek(h2,0,SEEK_END); FileWrite(h2,headers); FileSeek(h2,0,SEEK_END); FileWrite(h2,pSomeDAta[0].store); FileClose(h2); Executed = true; }cnt++;
}
Website doesn't fit all the code into the box for some reason. I attached file.0_1629040410511_FramesAndFiles (1).mq5
-
RE: EA not taking trades or taking false tradesposted in Questions & Answers
The indicator does not repaint so that is not a concern.
I had a direct hand in its development, I simply erred by not testing it within an EA before handing over the payment to the developer.The test is done by a simple line cross indicator
https://fxdreema.com/shared/SBHKZRwPcHowever I have also tested many other styles of line cross using other blocks to create the same logic and also using the 'arrows' option within the indicator as a trigger.
The only time I managed to get it working was when I used the arrows as a trigger when the backtester was in 'visual mode'.
The other methods are usually somewhat improved within the visual mode backtesting as well.
However, outside of visual mode, nothing works properly. -
RE: EA not taking trades or taking false tradesposted in Questions & Answers
So you are implying that this is a bug with the indicator and not FXdreema?
What I want to know is if it's possible for the data window to have different data than the indicator buffer.
It seems strange that FXdreema variables would show a different value than the data window since the data window gets its values from the indicator and the data window is showing correct values, this makes me think it is a bug within fxdreema no? -
RE: EA not taking trades or taking false tradesposted in Questions & Answers
Nah, I need this indicator. I put a lot of time and money into its development. I need to do whatever it takes to make it function.
The data window numbers are valid.
But the indicator data captured from FXdreema is not always valid.I'm trying to figure out why it is failing. I can't tell if it is a bug in the indicator or in FXdreema.
Using triggers from objects only works in visual mode of backtest.
When not in visual mode it takes the wrong trades or skips many trades
Is there a way for me to capture the data from the data window and use that as a trigger? I don't understand how the data from FXdreema variables can be different from the data window. Aren't they extracted from the same source?
-
EA not taking trades or taking false tradesposted in Questions & Answers
Hello. I have an indicator that has a filter which causes it to sit at the 'zero' value for long periods of time.
This indicator has a moving average attached to it for triggers.
However when the indicator sits at zero value it is very buggy on crossover triggers.

The Data window shows that the indicator line and the moving average line are behaving normally, but the crossover logic ignores the data values and gets buggy.When I try to throw the indicator MA values into variables and output them as text I get inconsistencies between what the data window says and what the variable says.

Those 0.0 values don't exist in the data windowsI've tried using "when indicator is visible' blocks but it is buggy and inconsistent within the strategy tester unless I run the strategy tester in 'visual' mode. I'm guessing the objects don't render in the same way in the tester?
Does anyone know why this happens and what the workaround might be?
Since the data window is correct I assume the issue lies with FXdreema and not the indicator correct?
Would greatly appreciate the help.
-
RE: "Write to file" for all passes during optimization in mt5?posted in Questions & Answers
I've never asked this question before in my life. You clearly didn't read the other thread. Nor the title of it.
-
"Write to file" for all passes during optimization in mt5?posted in Questions & Answers
Hello.
I am trying to write various data to a file for every pass within an optimization.
In other words I want the trading data for every set of parameters tested within the parallel optimization of MT5.However, when I run the optimization I only get data from a single parameter set.

There are the different parameter settings I ran during the optimization.

However only the parameter 6 was chosen to be written.
image url)How can I make it write the data of all parameter sets during the optimization?
-
RE: Multi-symbol variablesposted in Questions & Answers
I can't optimize a multi symbol EA on separate symbols.
The whole point of multi-symbol is to maintain statistical significance if there isn't enough trades taken within a single currency.Also as far as I understand, the "set market" block runs once per tick, on the first currency in the list. Not once per tick on all currencies in the list. So it is effectively useless when used in series.
There's no way getting around the need for a multi-currency "modify variable" block.
My question is, is it possible to be done in the custom block creator? I'll just pay someone to get the job done if it is. But I would really like to know the answer. -
Multi-symbol variablesposted in Questions & Answers
Unfortunately, in FXdreema is it very tedious and time consuming to convert EAs into multi-symbol because each set of variables needs to be created for each symbol and each block needs to be updated with the currency list.
I think I can work around the block issue by duplicating the EA and using a different "set current market" block for each duplication of the EA.
However the issue of making multiple variable sets for each currency is not solved.
Is it possible in fxdreema to make a custom multi-symbol "modify variable" block?
Like if a variable is placed within the block the values that are updated to the variable are stored in a multi-symbol array?
This way each value of the variable is stored in its own index for its currency type.
Can this be done? I'm not good at coding mql5 but this is such a huge problem that I might need to learn it in order to solve the issue.
-
RE: "write to file" is posting all data within 1 columnposted in Questions & Answers
But there have been multiple other threads about the 'write to file' block where people show that it writes the data into different columns.
-
"write to file" is posting all data within 1 columnposted in Questions & Answers
I'm trying to use the "write to file" block and all of the 'columns' are posted in the first row.

I know this was a problem a few years ago and the admin fixed it but the problem is back again, unless I'm doing something wrong?
-
RE: MQ5 file not auto-filling the enum and data fields. Getting 4002 error.posted in Questions & Answers
Yeah I tried adding the enumerations. It just tells me that there is an error with the enumeration.

-
MQ5 file not auto-filling the enum and data fields. Getting 4002 error.posted in Questions & Answers
Hello. I have recently contracted some individuals to convert a few indicators from mt4 to mt5 for me but for some reason they do not automatically fill in the enumeration, data, and buffer fields when I try to add them into FXdreema. However, every other indicator I have ever added has done this automatically.
I have tried to fill in the fields manually but I keep getting 4002 errors and I can't get it to work.Is there some requirement in the code that allows for it to auto-fill?
Appreciated.
-
RE: How to make EA multi currency most efficiently?posted in Questions & Answers
But my problem is that, the variables are currency independent, So I need to make hundreds of new variables on some of my EAs if I want to do multi-currency.
In the example I gave, blocks 2, 6, 8, and 12 are linked between all currencies. I want it to save the values of 2, 6, 8, 12 for each currency separately without needing to make a dedicated variable for each currency.