how i can to separate the sell quantity and the buy quantity separately ?
-
hello
how i can to separate the sell quantity and the buy quantity separately ?
mean , if i want know about volume buy only ( how many create buy ) in this frame or other frame , and like that about volume sell only ( how many create sell ) in this frame or other frame ?
there any code or any indicator tell me that ?
thank you
-
@moon Let's first check if I get you right. You want to know how many lots of Buy orders for a specific symbol are open and how many Sell orders. Did I get you right?
-
@trader-philipps yes from all people trade on this time and specific on every frame
-
@moon Actually that is a good question and I have something in mind, but haven't tried it yet with fxdreema. If you want to divide the trades by different timeframes, you need to use different magic numbers in order to keep the EA's seperataly trade their strategies. So my idea is to have something like a base magic number you specify in fxdreema and than add the timeframe in minutes to it.
Example:
Base magic number: 100
M1: 1001
M15: 10015
M30: 10030
H1: 10060
H4: 100240
D1: 1001440I haven't proofed it yet, but I think that using groups do something similar. Maybe someone can confirm this.
If that is the case you might use a variable as group number that contains your timeframe in minutes. -
Using different group number will work for sure. That I can confirm.
-
@l-andorrà Yes, you are right. I did some testing. If you specify magic number 1000, group 1 will have magic number 1001 - it adds the specified number. Group number 2 will have magic number 1002.
Having this in mind, you could implement the approach I described above,
Things to do:
a) create an int variable

b) on Init tab: set current timeframe in minutes to the int variable

c) Everywhare when usual EA activity allows for setting a group number, specify the int variable.
Here are some samples
The result will be that if you apply the EA to M15 chart, it will use the magic number 1015 (base is set to 1000, group 15 is added by fxdreema's group function). Same EA on H1 chart, EA's magic number would be 1060 and so on.
Hence you can run the same EA on several TF per symbol and it will take care for it's timeframe only.
Next thing would be to get trade information from all magic numbers. In that case you'd specify all the group numbers possible by the timeframe logic .. here an exampke in a For each Trade block

I think that's a cool auto magic number solution. The only pitfall is that you need to specify the group information everywhere possible.
-
BUT WHERE CONDITION OR CODE BY IT CAN KNOW HOW MANY TRADE BUY OR HOW MANY TRADE SELL FROM ALL PEOPLE IN THE WORLD IN THIS CURRENCY IN THIS TIME
HOW I CAN KNOW THIS DATA ? -
@moon Just use the Bucket of Trades block and some Modify Variable for instance ..

Adjust it to your needs. AND place a variable where I entered the text SOME_VRAIABLE!!
-
A brilliant idea trader.philipps, once more.

-
@trader-philipps this your idea will be give me my trade only
not all people trade
i want know the data in network forex all or on my broker any one -
@trader-philipps like
in indicator volume give you how many buy and sell in this time in this currency
but give you buy + sell + close trade = all trade happen from all people not you onlyi want know buy only
sell only
not together -
@moon What do you mean by "all people"? Your EA can only monitor 1 trading account - the one you attached it on a chart. Please try to give more detailed information.