@jsauter86 Thank you, but this is not the reason
Posts made by khalids222
-
RE: How do I store the last BUY or SELL that occurred in a variable?posted in Questions & Answers
-
RE: How do I store the last BUY or SELL that occurred in a variable?posted in Questions & Answers
@l-andorrà Thank you, I'll try changing the id number to up
-
RE: How do I store the last BUY or SELL that occurred in a variable?posted in Questions & Answers
@l-andorrà Thank you. We missed you, our return for your presence and your responses.
we Hope you had a happy vacationI'm sharing the project, here
Also notice in the picture the condition is very simple
if CLOSE(0)> CLOSE (1) = BUY
CLOSE(0)< CLOSE (1) = SELLThe last transaction that is done according to these conditions, whether buying or selling, is the dividing line for the next process
-
RE: How do I store the last BUY or SELL that occurred in a variable?posted in Questions & Answers
@l-andorrà
open price.
The value of the recent open buy or sell -
RE: How do I store the last BUY or SELL that occurred in a variable?posted in Questions & Answers
@khalids222

How can I determine a fixed point on the chart? Or determine the last sell or buy made? And put it in a variable? Or just select it -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar
I tried to take advantage of your method, would you please look at the project?
I do not know why the balance is reduced at every close.
I tried to get away from the last two deals by value R4,R4 TO BUY AND R8,R9 TO SELL .
but at each close the balance is deducted
Possible total profit or LOTS. Not correct. I don’t know. Possible your opinion PLEASE?
https://fxdreema.com/shared/VBYFnuore -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar Thank you very much and thank you for your wonderful efforts.
-
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar I mean if I have one lot, it contains a loss of 50 dollars or 50 pips.
How can I find out the value of it loss or gain ? -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar Thank you, I appreciate your efforts and creativity. I will try it now
But I have a question, how can I know the value of the lot in some way? As an amount or points, not a number? -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
You also see at closing, buying and selling is not equal in amount, only by volume.
And as you can see above, the balance decreases with every closing -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar Here, as you can see, the expert advisor works to close equal open trades from the beginning, and this will make him bankrupt the account within only a time.
Because it does not wait until there are many deals .
I want it when closing deals does not affect the balance as it is equal, for example, profit 100 loss 100 close it.
or profit 100 loss 300 close 100.
Usually when these operations exist, the level of loss will be greater than profit, and if you open a position on each bar, there will be a large number of deals.
So, for example, I want to set a time, such as after an hour or four hours, that the calculation process begins to close equal deals only, so that the balance does not affect anything by closing them. -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar said in I have fixed volume for all trades and want to close equal trades from buy and sell:
Here's what I came up with, let me know if it works for you:
@roar Thank you very much you deserve more, it works right after every sell or buy and that won't let the price move.
I want to start half an hour after buying and selling or after one hour . -
RE: I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
@roar I apologize, but we do not dispense with your advice and opinion. You are such a creative person, and this makes us follow you intently in all of your responses.
So please guide me
I've tried to create a method when there are multiple buy and sell
I collect buy and sell positions after half an hour, for example:
buy= -75 and sell = +25
Here I want to close the same amount of buying and selling, which is +25 .
So that the buy = -50
Sell = 0
How can I do that, please?
can see my project please
https://fxdreema.com/shared/lbEHYheYc -
I have fixed volume for all trades and want to close equal trades from buy and sellposted in Questions & Answers
I have fixed volume for all trades and want to close equal trades from buy and sell
Example :
BUY = -70
SELL =+20
BUY= -20
SELL =+10
BUY= +15
SELL=-5
Here is the final total =
BUY= -75
SELL= +25
Here I want to close the same amount of buying and selling, which is +25 .
So that the buy = -50
Sell = 0
How can I do that, please? -
How do I close an equal buy and sell position?posted in Questions & Answers
How do I close equal deals of buying and selling.
Example :
You bought a buy position, lost 40 pips, and then opened a sell position, gained 40 pips, and a new buy position was opened.
How can I close equal deals in case there is more than one SELL and BUY transaction? -
RE: I want help with adjusting the lotposted in Questions & Answers
@roar Thank you very much it works well, thank you with all my heart.
Grateful to you -
RE: I want help with adjusting the lotposted in Questions & Answers
@roar said in I want help with adjusting the lot:
when MA changes direction, adjust open positions so that net position is 0.01 to the correct direction
Yes that's right
-
RE: I want help with adjusting the lotposted in Questions & Answers
The problem is the addition of a fixed volume in the same direction
-
RE: I want help with adjusting the lotposted in Questions & Answers
In this example when going from sell to buy it works fine no problem.


