Currently I realized that my EA at any given moment has one or 2 orders in progress with the negative value for a long time, and the other orders that are opened in the sequence are in profit quickly and close, so the EA takes a long time for the market again leaving the losing position in profit, I want to deal with this losing position, increasing the volume of the next trade and if the market is in favor of this position that is open due to the volume being larger and covering the loss of the other trade, I will stay in the same profit the other position is closed negative.
It would look something like this:
order 1: volume 0.03 profit -50.00
order 2: volume 0.10 profit 75.00
This means that the order of 0.10 when it was closed in addition to covering the -50.00 of the previous order it generated a profit of 25.00
Posts made by fabiobioware
-
RE: EA with increased positionsposted in Questions & Answers
-
EA with increased positionsposted in Questions & Answers
Can anyone give any example with fxdreema project?
My EA works with EDGE and position increases.
When he buys, if the price is negative for example at 50 pips he opens another purchase and opens purchases randomly.What I would like to do:
-
Each new open purchase must have a volume that is compatible to cover the loss of the previous order and remain in profit.
And this has to be limited to, for example, the EA allowing the opening of a maximum of 10 orders. -
When one of the orders reaches the objective of covering the loss amount of the previous order and is also in profit, the trailling stop must be placed taking the risk out of the operation.
-
If the order fails to cover the value of the previous order and also becomes negative, the next order must repeat the process and use a volume that covers the values of the previous 2 orders, and so randomly must be done up to a maximum of 10 orders .
-
If during the opening of the 10th order, the EA is negative at more than 100 pips, a stop loss must be set for all orders to be closed when the 10th order has a negative value at 100 pips.
-
-
Buy1, Buy 2 and Buy3 strategyposted in Questions & Answers
Hello, I would like to know how I make a condition as follows.
I have 3 buying strategies
Purchase1
Purchase2
Purchase3When Purchase1 is made with the 0.01 lot, if it reaches a profit of 100 pips it will be necessary to look for a new trade again starting with the Purchase1 strategy
But, if the Purchase1 that is in progress becomes -0.20 negative, the Purchase2 strategy is enabled, if answered it opens a new purchase with 0.05 lot.
If the value of Purchase2 becomes positive and overcomes the loss of the value of Purchase1, then all trades must be closed immediately.
Otherwise, if Purchase2 is also negative at -0.20, the Purchase3 strategy is enabled, if the rules of the strategy are met, it must open a new purchase with 0.20 lots, if it for some time exceeds the value of the loss leaving profit all negotiations must be closed.Can you help me and create this?
-
RE: How can I use the trailling stop correctly?posted in Questions & Answers
@l-andorrà 40 pips ? why? no understand reason for the number 40, i not set 40 ...
You can explain? -
How can I use the trailling stop correctly?posted in Questions & Answers

In this example I put it thinking about the following:
- Activate the Trailling stop when the price reaches 200 pips
- When the Price reaches 200 pips, move the stoploss to 100 pips of profit from the opening order price
- Move every 20 pixels as the price moves in favor of profit
Is everything I said correct?
Is there another way more efficient? -
RE: create buffer for indicator auto trendlinesposted in Questions & Answers
@l-andorrà said in create buffer for indicator auto trendlines:
You can do that by importing your indicator to your personal custom indicators pool. Right here:
Yes, this I already know how to do, what I want is to create buffers to make entries with the indicator.
-
create buffer for indicator auto trendlinesposted in Questions & Answers
0_1591727542314_autotrendlines.mq5
Hello friends, i need create buffer to this indicator.
For example:
Buffer 1 trend blue
Buffer 2 trend redFor example, my idea is to use in my EA using a condition, if candle id 1 X> trendline blue buy
-
RE: Total gains or loss operationsposted in Questions & Answers
@l-andorrà said in Total gains or loss operations:
Ok. Could you please forus on just one same thread, please?
yes, i will use the same.
-
RE: Total gains or loss operationsposted in Questions & Answers
@l-andorrà @roar @FXDREEMA
it works perfectly in the backtest, but in the real market it does not work, it is not recording and counting the amount of gains or losses. I tried to use it to test the "profit period of time" block and the result was the same, can you help? -
RE: EA turns on and off, but only in backtes, demo or real market does not work.posted in Questions & Answers
@fxdreema @roar @l-andorrà
it works perfectly in the backtest, but in the real market it does not work, it is not recording and counting the amount of gains or losses. I tried to use it to test the "profit period of time" block and the result was the same, can you help? -
Integration of EA fxdreema and telegram.posted in Questions & Answers
Hello, has anyone managed to integrate fxdreema with the telegram to send messages and screen images?
Does anyone have a project as an example, or can you help me?
I've seen several explanations here on the forum but I haven't been able to make any of them really work. -
RE: EA turns on and off, but only in backtes, demo or real market does not work.posted in Questions & Answers
@l-andorrà Yes, my parents are not forex, do not own or use. But could this be affecting anything?
-
EA turns on and off, but only in backtes, demo or real market does not work.posted in Questions & Answers
Hello friends, I created this test project to apply a simple rule where my EA when I reach some goals, but unfortunately I do not know the reason it is not working correctly in the real market, it works perfectly in backtest but in demo account or real market it does not records the amounts of profit, loss and trades and does not shut down the EA.
If anyone can help me solve this I would appreciate it. Project here --> https://fxdreema.com/shared/xaBZCbfLc
Below are the functions I tried to implement:
- Record the number of trades closed on the day.
- Record of this total of closed trades on the day how many were winners.
- Record of this total of closed trades on the day how many were lost.
Then I created rules and constants to facilitate management.
- How many earnings are allowed per day
- How many losses are allowed per day
-
Help to create all functionposted in Questions & Answers
Re: [Custom Block Release] Send a message or screenshot to Telegram Blocks
Hello @Spuzy please can help me to fix issue in my project?
I perform all steps, and receive this error below when create .ex5 file.

-
RE: RSI condition about Valueposted in Questions & Answers
I am analyzing a new way to observe the value that was found in the slope of the line at each tick, I treat this value as a difference, if the line is at the current tick at 50 and it changes at the next tick to 65 I consider that there was a difference of 15 so the line went up, two factors are important, first the value (15) and another value which is a positive number so I understand that the line is bigger than in the (tick) previous moment.
if from 50 it changes to 35 I consider that there was a difference of -15 then it shows that the line is down, therefore smaller than the previous moment.Values are important because I am analyzing how much aggressiveness in the movement of the other pair is being influential in the pair I am trading. This allows me to search in optimizations which values are more attractive to make my entry, which values are more aggressive that can represent a force in the movement of the asset that is correlated.
I do not know if there is a more effective way to check the previous tick and the current tick to make this calculation, if there is, please let me know. -
RE: Total gains or loss operationsposted in Questions & Answers
@l-andorrà Hi, I believe I got my friend,
I just include a condition under "For each close trades" to check if the gain on the closed trade was> or <than 0, if greater it adds +1 to the profit count if less it adds +1 to the loss count.
Now I will test it in the real market to see if the rule is respected.
Thank you very much my friend for your help. -
RE: Total gains or loss operationsposted in Questions & Answers
@l-andorrà said in Total gains or loss operations:
Then try this for loser trades only. And again, rememberf to use the limit of maximum trades accepted wherever relevant in the EA (no here):
This did not work, because I use the trailling stop, so when the price is closed with profit by the trailling stop it means that the stop loss was touched to be closed, but it was a profitable trade and is counted as a loss.
Do we have any solution that looks at each gain or loss in the operation? -
Maximum 2 trades per day then STOPposted in Questions & Answers
@fxdreema hello, you have this project, i need this.
@FXB you have?
i need the same solution for my EA. -
RE: Stop and start negociationsposted in Questions & Answers
@l-andorrà Okay, I saw that you created the variable "trade" but how do I count the number of trades?