- Ask!
- FOREX - Trends, Forecasts and Implications 2015(continued)
- Indicator Miscellaneous Questions
No idea what you're trying to do.
Your code says: If I find an open order (belonging to me) that doesn't match condition1 and I find a (possibly different) order (also belonging to me) that doesn't match condition2 then (and only then) do I "open order condition"
So still someone that can help me fix this code? Or who can lead me on other way of thinking in fixing this...
As far as I am concerned you haven't explained clearly what your issue is. Why can't you simply code . . .
if( condition1 && condition2 ) { // do something }
As I said previously, my both conditions need a select order loop, and if I put them in the same loop I do not get the result I need it ... because my X conditions is searching for double position at the same price (so I need an order select in a bool) and my Y condition is a way to open order from step to step... If I put every block just as a single block works perfectly, but I need both of them to work together in the same EA.
PS: And this is the only way I thought it will works... maybe there is another way with void but I do not understand how to use void function and couldn`t find a tutorial or book to explain it well.
Why do you think people should help you if you cant be bothered to write a clear and accurate description of what you are trying to do? That vague 2 line post won't cut it.
I am takig a wild guess from what you said, are you saying you want to condition1 to be filled more than once before proceeding to test for condition2 ?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use