Count buys and sells by asset
-
Hi all. I know this can be done using buckets however I run out of buckets at times so need a better way and I am hoping someone can help with a more efficient method.
I have two assets, Asset one and Asset two (Constants). At any time I can be in either buys or sells and I want to be able to see by count how many buys I have in asset one, how many sells I have in asset one how many buys I have on asset two and how many sells I have on asset two. I have been struggling with this all day and it should be simple hahaha. I have attached a link to what I have come up with (doesn't work), to show my logic and objective. I hope someone can assist. Many thanks https://fxdreema.com/shared/NCsMiWXxb
-
That is loops but you are limiting to 1, above the for each modify variable to 0 and don't limit the trade counts, this should give you all of 1 type
-
@jstap said in Count buys and sells by asset:
That is loops but you are limiting to 1, above the for
Hi jstap. Firstly, thanks so much for replying. I have implemented what you said as I understand it however I am still getting the same outcome. I have added the updated shared link. May I ask, am I missing something? Thanks again.
https://fxdreema.com/shared/J10BRNI9d -
Lets look at 1 at a time, what comment results are you getting for buy groop 1?
-
@jstap Hi mate. It is placing the trades and the comments are appearing as they should, its just not summing the total of trades.

This is the updated link with the comments.
-
Your place holder 1 buys are always going to == 1 which means your asset 1 buys will always == 2?

-
Oh!! makes sense. Thanks so much for your help
-
@proppassed
