Count Number of Open Buy / Sell Position then store in variable
-
Hey guys, ive been working for this project for about 3 days but still i cant get it fixed.
What I wanted to do is count the number of open position separately the buy / sell
Now, here are the conditions.
First Condition
if Trade Count Buy = 1
if Trade Count Sell = 0
Condition 1 == 1
if above is false then Condition 1 == 0if Trade Count Buy = 10
if Trade Count Sell = 1
Condition 1 == 1
if above is false then Condition 1 == 0
Second Condition
if Trade Count Buy = 1
if Trade Count Sell = 1
Condition 2 == True
if above is false then Condition 2 == 0
Third Condition
if Trade Count Buy >= 2
Total Lot Buy != Total Lot Sell
Condition 3 == True
if above is false then Condition 3 == 0
My problem is that, it seems condition 2 and 1 are interchanged, if there is position then it says Condition 1 = 0.
Guys hope you can help me here.
Thank you.
-
This will do it: https://fxdreema.com/shared/59hH95MFc
-
@jstap Thank you sir
-
Your welcome