You're not boring, I spend very little time here on the forum.
I believe that what you need is to use a global variable to store the values or the (last values) filled in and place it so that when the EA is removed from the chart it saves the last data in these variables, in the same way, insert it in On init to so that your EA can read the variables and fill them in again. I'm going to take a look at my projects to see if I have anything that can help, if I do I'll put it in the answered topic, I'm sorry I can't help you quickly this time.
Posts made by OntradingX
-
RE: Help please, I want to identify where the error of this EA is and correct it so that it works...posted in Questions & Answers
-
RE: Help please, I want to identify where the error of this EA is and correct it so that it works...posted in Questions & Answers
@DragonZueloTrends Great My Friend, go to win
-
RE: Help please, I want to identify where the error of this EA is and correct it so that it works...posted in Questions & Answers
https://fxdreema.com/shared/vVejswNld CHECK THIS, i believe this solved
To solve I use ObjectSetInterger, one example below....
ObjectSetInteger(0, "btnCloseSell", OBJPROP_STATE, 0);
-
RE: Input Variablesposted in Tutorials by Users
@alok good job, thanks.
You have name and value to coordinates x and y? -
Slowness in closing all orders at the same time.posted in Questions & Answers
Does anyone else notice that there is a slowness in closing all orders simultaneously?
I realized that using the Close Position block it is closing the orders one by one individually, wouldn't the correct option be to close them all at the same time quickly?
Is there any code that we can use in an mql5 code block to execute this?
-
RE: How to save the time of a vertical line in a variable?posted in Questions & Answers
great work fine, thankssss @jstap thankss
-
How to save the time of a vertical line in a variable?posted in Questions & Answers
Can anyone help me with how to save the time of a vertical line that I had plotted on the graph in a variable?
Here is the example project:

-
Find the nearest round number, does anyone know how to do it?posted in Questions & Answers
I need to find a way for my EA to always locate the round number closest to the current price.
For example, if I am at EURUSD 1.08014 then the closest round number is 1.08000
I also need to know how to search for this by range, for example:Round number closest to 500 points
Round number closest to 1000 points.Does anyone have any ideas?

-
Eliminate (individual) negative ordersposted in Questions & Answers
Hello friends, I need help fixing a rule that I call eliminate orders. (I did it as shown in the project but it is not working), it is eliminating all orders at once instead of eliminating one order at a time.
Here is the project: https://fxdreema.com/shared/dRSBN1Wbc
What I want to do is the following:
Track 1 order at a time, always checking (from the oldest order to the newest) and then check if the value (loss) of this order is less than the value I defined, which in this case in the EA is 100$ and if this happens, it deletes just that single order and checks the next one.In short:
Value Informed to be used $100Step 1, when there are more than 3 open orders.
Step 2, always check from oldest to newest order.
Step 3, individually check each order if the loss is less than the reported value of $100.
Step 4, if for example the oldest order the value is negative at -25$ it means that this value is less than 100$, then this order can be deleted.
Step 5, repeat the procedure again for the next orders and delete 1 order at a time whenever their negative value is lower than the value entered.
-
RE: Help - Custom MQL Codeposted in Questions & Answers
@jstap
I wanted to say in the message some solution for MT5 that does not need to use (libraries) and that is (similar) to the MT4 solution where it works to compile directly in Fxdreema without having to generate the .mq5 file and include it manually within the code.
But it's okay if there is no such solution and I'll check if I can make it work and post the solution here for everyone when I find it. -
RE: Help - Custom MQL Codeposted in Questions & Answers
@willramsey
@jonatassantanacaje
@jstap
@sktsecDoes anyone have a similar solution to Disable AlgoTrading on MT5 that doesn't need to use libraries?
-
ISSUES in the "On Trade" tab blocks are possible TEMPORARY SOLUTION!posted in Bug Reports
PROJECT --> https://fxdreema.com/shared/YO9s8vEBc
Attention, all conditions that contain rules similar to these (They used to work, and now they no longer work).

Here below is how I managed to get it working again:

I hope it helps someone.
-
RE: Position closed block not working correctly.posted in Bug Reports
@mariussun Unfortunately, I'm encountering many problems even in ONCHART too and most of them didn't exist before, even in mt4 it happens too. I would like the administrator to be more attentive, because we pay for the service and we deserve to have a minimum of attention, as the days are deducted from our plans, but we were unable to move forward due to the lack of correction.
-
RE: Position closed block not working correctly.posted in Bug Reports
@mariussun MT4 work fine, but MT5 no. I will try other methods to solve and wait @fxDreema verify this.
-
RE: Position closed block not working correctly.posted in Bug Reports
@jstap This shouldn't matter, I've always used it this way, even so I believe it's a defect in the block, I see a lot of posts from people complaining about the same problem, I'm only using it in one symbol and that's what the block should do, or am I wrong ?
-
Position closed block not working correctly.posted in Bug Reports
Position closed block not working correctly.
I'm just trying to detect if the order was closed by Stop-Loss and I noticed that the block is not passing on this information.
@fxDreema can you check this?

Project Below:
https://fxdreema.com/shared/s77Ekci2b -
RE: Web Request - $EVZ (barchart.com)posted in Questions & Answers
@FaulknerTrading1 Perfect, I believe your next step is to create a google script or google api and publish this value on the web. Once this is done, point Fxdreema using the http request (get) block to this link and save the result in your variable within Fxdreema .
Post here if it works, even if you can make a tutorial, I believe it will help many people learn how to do this, which is very useful. -
RE: Web Request - $EVZ (barchart.com)posted in Questions & Answers
Friend, I hope to try to help with something.
First I identified the path through Google Chrome by inspecting elements
https://www.barchart.com/stocks/quotes/$EVZ/interactive-chart/
<span class="last-change ng-binding" data-ng-class="highlightValue('lastPrice')">6.87</span>
I'm not a programmer, but I believe it's possible for you to extract this value in some way using an API, it could be via Google Sheet, Pyton, in Fxdreema I still believe there is some way to get to this result and extract it, I've already had to do something similar and created a form on google that I inserted and updated in the google sheet so that at the end I could read it via fxdreema's http request block, but it was very complex, if I discover something I'll come back to this post to tell you, but there are some expert guys here who will perhaps intervene to help you more easily.
