@roar
This is a simple example, but as you can see when opening, he closes only one trade and does not close the second, I need logic to define both deals together.
https://fxdreema.com/shared/d7bb2S8Ub
Posts made by khalids222
-
RE: How can I close two or three deals out of ten or more deals?posted in Questions & Answers
-
RE: How can I close two or three deals out of ten or more deals?posted in Questions & Answers
@roar Simply any buy + sell equals = (+)positive .
I want to close the buy + sell exactly -
RE: How can I close two or three deals out of ten or more deals?posted in Questions & Answers
@roar Let me clarify to make the picture clearer:
Suppose we have any number of deals, whether two, three, or more.
Every time or every trade I want to combine the sell with the buy if their sum is equal to one. I want to close the deals that are equal to only one.
Regardless of the sell and buy value, as long as the sum is greater than one and not zero.
Usually, most of the loss is when the market goes up or down, and if we assume the market went in an opposite direction to you, there will be increased trades and thus a loss of the balance.
The best way to avoid this is to close the sell while buying at the same time every time the total is positive
I am not good at English, but simply any buy + sell position is equal to a positive number. I want to close these specific deals -
RE: How can I close two or three deals out of ten or more deals?posted in Questions & Answers
@l-andorrà Thank you.
@roar It seems that this problem will not be solved except with you.
Is there a response please or the matter is complicated? -
How can I close two or three deals out of ten or more deals?posted in Questions & Answers
How can I close two or three deals out of ten or more deals?
So that if I have ten short deals and I want to close the two deals that total zero
Is there a suggestion ,advice -
RE: Collect buying and selling profitsposted in Questions & Answers
@khalids222 i developed a model, but it is not good
-
Collect buying and selling profitsposted in Questions & Answers
How can I create a loop through which I can collect profits from winning and losing trades.
When the sum of two deals reaches +10
close the two deals only
Example
-
RE: Open sell from buy position every ten pipsposted in Questions & Answers
@bk7 Thank you very much for your response, the project is being tested.
Thank you again for your thoughts -
RE: Open sell from buy position every ten pipsposted in Questions & Answers
@rahim-1 Thank you very much, but what is required is to open a sell through an open long position when the price goes down, but I took advantage of your method.
-
RE: Open sell from buy position every ten pipsposted in Questions & Answers
@bk7 Thank you, but this method is not successful. Do you have a better suggestion
-
RE: Open sell from buy position every ten pipsposted in Questions & Answers
HERE https://fxdreema.com/shared/JVNbMczyd
Here I tried several ways to buy ten pips after the last deal and vice versa, but it did not succeed
I tried again to collect the buying and selling and divide them /2, and from the same point, buy after +ten pips and sell when going down after -ten pips, and it did not succeed
-
RE: Open sell from buy position every ten pipsposted in Questions & Answers
@l-andorrà Is it possible a simple form as well for the method, thank you in advance
-
Open sell from buy position every ten pipsposted in Questions & Answers
How do I open a buy position every ten pips up
And open a position of selling every ten pips down from the first point of buy
I am talking about opening a sell position from an existing long position,and vice versa.
Is there a suggestion * Help -
RE: How do I set a special condition in the stop out level or margin ?posted in Questions & Answers
@l-andorrà said in How do I set a special condition in the stop out level or margin ?:
I'm afraid I don't fully understand. You have 10 buys and cannot open the eleventh one but want 11 sells at one? Is that what you mean?
@l-andorrà said in How do I set a special condition in the stop out level or margin ?:
I'm afraid I don't fully understand. You have 10 buys and cannot open the eleventh one but want 11 sells at one? Is that what you mean?The ea works on the following:
1- buy=0.01
2- sell= 0.02
3- buy=0.02
4- sell=0.02
5- buy=0.02
6- sell=0.02
7- buy=0.02
8- sell=0.02
9- buy=0.02
10-sell=0.02
11-buy=0.02Here, at this moment, you will find that the number of long positions exceeds the number of short positions by one
total buy=11 lot & total sell = 10 lot
At the same time, I closed my winning long positions = total buy (11 lot) & Remain short positions in loss (10 lot)
At the moment the price direction has moved up, the expert advisor will open a buy position (11 lot) selling lot +1 .
Also at the same moment, the expert advisor will not be able to open additional lot due to margin or stop out level .
At the moment there are several options :
1- make the expert open the same number of open trades in the market : 10 buy only So that they become hedging. -
How do I set a special condition in the stop out level or margin ?posted in Questions & Answers
Suppose now I have (10) ten long open positions in the market .In the case of loss
And my expert advisor works every time it calculates deals, buy and sell and increases one
In the present example
i have (10) buy And I can't open (11) sell , Because stop out level .Here at the moment I want to open the same number of open positions it is (10 sell) then + 1.
How would the condition be in this case? -
RE: Decrease numbers after the comma to an integer 0.00221010posted in Questions & Answers
@raja0033 Thank you very much - useful information.
-
RE: Decrease numbers after the comma to an integer 0.00221010posted in Questions & Answers
@l-andorrà It is not an integer, my problem is that it is not an integer?
I do not know how you got an integer number?
