zahidmahmood:
hello
i have 5 trades currently open for example
Buy @ 1.1010
Buy @ 1.1040
Buy @ 1.1030
Sell@ 1.1070
Sell@ 1.1050
i want to get max BuyPrice currently open trades like currently open max Buy price is 1.1040 and opposite get min sell price like currently open sell min price is 1.1050
how can i get this
you have to have and use an appropriate indicator so that the analysis could be ,,,
i have an indicator that if we use these indicators we can predict when to sell and buy the right ,,
and I sell at a price that is not expensive ,,, just $125 ...
zahidmahmood:
hello
i have 5 trades currently open for example
Buy @ 1.1010
Buy @ 1.1040
Buy @ 1.1030
Sell@ 1.1070
Sell@ 1.1050
i want to get max BuyPrice currently open trades like currently open max Buy price is 1.1040 and opposite get min sell price like currently open sell min price is 1.1050
how can i get this
void GetHighestLowest(int magic) { double highest = -10000; double lowest = 10000; for(int cnt=0; cnt<OrdersTotal(); cnt++) { if(!OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)) continue; if(OrderMagicNumber()!=magic) continue; if(OrderOpenPrice()>highest) highest = OrderOpenPrice(); if(OrderOpenPrice()<lowest) lowest = OrderOpenPrice(); } Print("Highest price is: ", highest); Print("Lowest price is: ", lowest); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hello
i have 5 trades currently open for example
Buy @ 1.1010
Buy @ 1.1040
Buy @ 1.1030
Sell@ 1.1070
Sell@ 1.1050
i want to get max BuyPrice currently open trades like currently open max Buy price is 1.1040 and opposite get min sell price like currently open sell min price is 1.1050
how can i get this