@l-andorrà I just need them to be displayed on the screen, the biggest problem is that it has to be something daily and it may be necessary to work with a matrix for this. the mt5 report generates an excel and I'm trying to get this information through it.
Posts made by OntradingX
-
RE: Record, gains, loss and operations by day.posted in Questions & Answers
-
Record, gains, loss and operations by day.posted in Questions & Answers
Hello friends, can you help me to produce a logic to find some data???
Below what I want to find and register:Operations Record:
- Maximum amount of Operations per day.
- Minimum number of Transactions per day.
- Average number of Transactions per day.
Earnings record:
- Maximum amount of Earnings per day.
- Minimum amount of Earnings per day.
- Average amount of earnings per day.
Loss record:
- Maximum amount of Earnings per day.
- Minimum amount of Earnings per day.
- Average amount of earnings per day.
At the end, I want to generate a report informing me of all this so that I can generate for each EA that I develop a type of management based on the potential number of operations, daily gains and losses.
Does anyone have any example projects with this? -
LIMITATION or BUG ??? Block " Set "Current Market" for next blocks"posted in Questions & Answers
I'm trying to monitor 50 symbols using this block, but I realized that for some reason that I don't know the block doesn't allow 21 symbols to be exceeded.

Projetct block for tests> https://fxdreema.com/shared/t1NeDb90c
How did I find out???
Answer: I created a project where I am trying to get data from 50 assets simultaneously, it can be for example an RSI, so I simply write the name of the 50 symbols, or I try to just write the name EURUSD 50 times (separated by commas).
I noticed that the block when adding the EA on the screen and copying and placing the (50) EURUSD lets them be inserted, but if you press (ok) then the EA automatically deletes it leaving only 21 EURUSD symbols.
@fxDreema Can you please check if it is a limitation and if so, can you increase it to up to 100 assets??
If it's not a limitation, can you guide me on how to solve this or even if it's a BUG, can you fix it? -
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
@lucag you is correct, great information.
-
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
@lucas-farias-de-almeida Oi lucas, para que isto funcione adequadamente são vários passos, inclusive um que talvez esteja faltando ai do seu lado é o do bloco comentário para exibir os dados da noticia. Me chame no reservado e talvez eu possa lhe ajuda no telegram.
-
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
@Dre ENUM_CALENDAR_EVENT_IMPORTANCE is correct
-
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
@Dre please, print your screen (constants and variables) here
-
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
below complete code:
/*
int minbeforeEvent = 6024;
int minAfterEvent = 6024;
string currency_code = "";
string country_code=NULL; //--- country code (ISO 3166-1 Alpha-2)
ENUM_CALENDAR_EVENT_IMPORTANCE min_event_importance = CALENDAR_IMPORTANCE_HIGH;
*/int FilteredEventsCount = 0;
MqlCalendarValue values[];
//--- set the boundaries of the interval we take the events from
datetime date_from=TimeCurrent() - (60minbeforeEvent);
datetime date_to=TimeCurrent() + (60minAfterEvent); // 0 means all known events, including the ones that have not occurred yet
//Print(TimeToString(TimeCurrent(), TIME_DATE|TIME_SECONDS), " -> Searching from ", TimeToString(date_from, TIME_DATE|TIME_SECONDS), " to ", TimeToString(date_to,TIME_DATE|TIME_SECONDS));
//--- request event history since the beginning to future time//if(verbose) Print("Begin Searching for events from " + TimeToString(date_from,TIME_DATE|TIME_SECONDS) + " to " + TimeToString(date_to,TIME_DATE|TIME_SECONDS) + " For Country " + country_code + ", currency " + currency_code );
if(!CalendarValueHistory(values, date_from, 0, country_code, currency_code))
{
PrintFormat("Error! Failed to get events for country_code=(%s), currency=(%s)", country_code, currency_code);
PrintFormat("Error code: %d", GetLastError());} else {
//if(verbose) Print("Found some events");
//PrintFormat("Received event values for country_code=(%s), currency=(%s) is (%d)", country_code, currency_code, ArraySize(values));
int total=ArraySize(values);
string commentString = "";
for(int i=0; i<total; i++)
{
//if(values[i].impact_type < )
MqlCalendarEvent event;
ulong event_id=values[i].event_id;
if(CalendarEventById(event_id,event))
{
if(((ENUM_CALENDAR_EVENT_IMPORTANCE)event.importance >= min_event_importance )
&& (values[i].time <= date_to)
)
{
FilteredEventsCount++;commentString = commentString + TimeToString(values[i].time,TIME_DATE|TIME_SECONDS) + " " + event.name + " " + EnumToString((ENUM_CALENDAR_EVENT_IMPORTANCE)event.importance ) + "\n"; } } }commentString = "MQL5 returned " + FilteredEventsCount + " events from " + TimeToString(date_from,TIME_DATE|TIME_SECONDS) + " to " + TimeToString(date_to,TIME_DATE|TIME_SECONDS) + " For Country " + country_code + ", currency " + currency_code + "\n" + commentString;
if(verbose) Comment(commentString);
}
if( FilteredEventsCount > 0 )
{~next~}
else
{~inext~}BELOW, CODE TO INSERT IN GLOBAL VARIABLES:
string event_info = "";AND, NEED CREAT THIS:

BELOW CONFIGURATIONS:






AND TO FINISH INSERT THIS BUTTON CREATED IN ON TICK OR ON TIMER

Hope this helps someone.
-
RE: Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
@jstap

Acredito que eu consegui algo, vou testar e ver se atende ao que eu preciso, muito obrigado pela sua ajuda até o momento. -
RE: Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
@jstap but have project link in this post
https://fxdreema.com/shared/O7P4ykyyc -
RE: Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
@jstap
I still don't understand what you're saying, without showing it with images it's hard for me to understand, I'll try to show what I'm doing:- Here below I am performing a Looping on all orders (already closed) in the pink block.
- I created a condition to (filter) only the orders that were (closed) on the day, month and year (current) so I defined 0, that is, I understand that every (new day) new values should be saved.

Then I call check each closed position in the sequence I want and save it in the variable.
In the first rule I meant:- Loop only the (1) oldest order and write to the variable (ORDERCLOSED1).
- Loop only (1) oldest order (skip 1 order) and write to variable (ORDERCLOSED2).
- Loop only the (1) oldest order (skip 2 orders) and write to the variable (ORDERCLOSED3).
I would like to know where am I going wrong, and how should I fix it?

-
RE: Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
I don't understand, can you give me an example?
I already tried to manipulate in all ways, maybe my logic is not correct. -
RE: Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
I don't understand, can you give me an example?
I already tried to manipulate in all ways, maybe my logic is not correct. -
RE: Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
@l-andorrà
exactly that. imagine i'm on day 1 and my EA starts trading. after finishing this trade 1, the result value of it must be recorded in variable 1. Then another trade opens, so this one to be closed must record its value in variable 2. It is And so on. Then day 2 started, my EA resets these variables to the value 0, and then the EA performs trade 1, when this trade 1 is closed, its value must be recorded in variable 1 and trade 2 happens and writes a new value, and so on for 10 trades. -
Recording sequentially after closing each order the amount they were closed.posted in Questions & Answers
I would like to just record the values of each order as each of them individually closes.
A reset must always be done when a new day starts, changing all the values to 0 and filling in the values of the 10 new orders again.
Can you help me finish this project?
I noticed that I am recording from the first day, but as soon as the next day starts new orders are opened and the data is not being updated. -
RE: Finally, News Filter for MT5 in 1 easy to use Block !!posted in Tutorials by Users
Work fine, but need adjusts.
-
RE: URGENT Fxdreema too slow.posted in Bug Reports
@sktsec yess, i add 8.8.8.8 and 4.4.4.4 and work fine now.
-
RE: URGENT Fxdreema too slow.posted in Bug Reports
@fxDreema friend, please disregard, I had a DNS problem at my internet provider, it has already been resolved by the provider and now everything is fine, thank you very much in advance.
-
URGENT Fxdreema too slow.posted in Bug Reports
I noticed that for about 2 days fxdreema has been very slow.
With small or large projects there is a huge delay to save .mq5 or .ex5 files. I can barely save my projects and their files locally in eCan you please urgently check if there is something going on with your provider or your system?
@fxDreema

