Thanks @roar
Will test it out tomorrow once the market is open 
Just to be sure: i've added currentsym (string) and open_new (bool) - at least i got it to compile
Thanks @roar
Will test it out tomorrow once the market is open 
Just to be sure: i've added currentsym (string) and open_new (bool) - at least i got it to compile
@roar i'm still testing the current one; however i experience a lot of open trades on the same pair (as main- and counter currency)
F.e.: my EA opens a trade in GBPCAD with 1 sec between trades (i'm opening 3 trades at the same time right now)
1 sec later another GBPJPY opens (3x), followed by 3 more EURGBP trades 2 seconds after.
I have 0 idea what i can do or where i shall place the loop so that this doesnt happen again, do you have any idea?
Right now, i have the loop at the very top on the onTick page, after that i check all my conditions based on the rules and start buying/selling whichever is applicable.
Any response is highly appreciated and needed.
Regards,
M
@roar works great, thanks a lot.
Maybe you find the time to also check the case where BE is hit, allowing the same symbol to be traded again.
Thanks much in advance
M
@roar awesome, many thanks for the help. Will give it a try soonest
@roar i've tried to put the block elsewhere but it doesnt help.
Would be awesome if you could let me know what you get tomorrow in the live environment.
Thanks
@roar tried with no trade/order at the very top, still the same
Just tried it and got a stack overflow exc, any idea?
Thanks @roar
Will test it out tomorrow once the market is open 
Just to be sure: i've added currentsym (string) and open_new (bool) - at least i got it to compile
I'm trying to get my EA to not open any new trade if there is already one trade open, unless this trade is already set to BreakEven or trails its stop in profit.
Example: EA opens trades in EURUSD - trade is not yet BE (or trails in profit) -> do not open any new trade with EUR as main currency or counter currency (same for USD).
If current trade is already BE (or trails in profit) a new trade with both, EUR and USD as main or counter currency, can be opened.
Is there a way to handle this?
Greetings, M