lot buy and sell
-
I try to create a lot every time it works to subtract the sell from the buy, the difference between them is collected by the other party +0.01
Example
sell= 0.01
buy= 0.01
buy=total buy -total sell + 0.01 = (0.01- 0.01)+ 0.01 = 0.01
Suppose all buy trades are closed and 10 sell trades remain in the market
sell= 0.01
buy = 1.20
sell = total sell - total buy + 0.01 =( 0.01 - 1.20) +0.01 = 1.10+0.01 = 1.20The problem is when the second party is zero, the lot will be doubled, if there are two buys behind some or more, for example
buy = 1.20
sell= 0.01
buy2= total sell - total buy + 0.01 =( 0.01 - 1.20) +0.01 = 1.10+0.01 = 1.20+1.20 = 2.40 -
@khalids222 I am a little lost on how RESULT is getting a value, I will say though before buying/selling check what trades are running and if needed change the lot variable.
-
@jstap I think your understanding is correct.
Rule
If buy count = sell count
Buy count - sell Count +1Buycount > sell count or vise versa
Fixed lot 0.01
Suppose we have ten buy and ten open sell trades in the market, ،it uses the following ruleSuppose the sell profit and closed will remain ten buy in the market I want a fixed lot to buy. In the event of a sell , it covers all buy transactions