longs count and short count by group AND check trade count with multiple number in the same block
-
hi, how can i get long/short count of a group of trades ? i can do that with condition block but it dosen't has the group function ..
and also i need to check trade count by multiple number .. es 1,3,5 ecc... i can do it only using N blocks.. -
@clacky
https://fxdreema.com/shared/pUmNON0Td
In this example block 1, 2, 3, 4 are the conditions that you wanna confirm before you buy or sell, so replace them with what ever you want
Block 7 and 8 count the number of trades that the ea executes (separately for both long and short)
Look in the on trade menu you will find blocks with ID 9, 10 11 and 12 these blocks are decreasing the number of trades that are previously counted in case a trade is closed.
Block 13 Is used to print the number of currently long and short trades on the chart. The variable buycount and sellcount are storing the number of long and short trades you can use these 2 variables to further proceed
In my case I simply printed them on the screen hence block 13, and 14, you can do whatever you want with these 2 variables -
amazing... i miss the last step ... if i want say:
if buycount is equal to 1,3,5,7,9,11 ... then buy -
@clacky
1 (or) 3 (or) 5 (or) 7 .... -
ok, look what i found out:
just have one variable, BuyCount ..
if buy then buycount + 1
if sell then buycount-1
so after a buy, BC will be 1 , after sell BC will be 0.
i want do this:
if BC equal to 0, then buy
if BC is equal to 1, the sell -
-
top
thanks bro very helpy
