Multiple pairs get opened, need help.
-
@jstap Please give an idea to start
-
@forexbob-0 A no trade block will limit to 1.
-
@jstap said in Multiple pairs get opened, need help.:
@forexbob-0 The set symbol block wont work if set by a constant.

it does if you use it as a string, at least I feel like I have...
-
@tipsywisdom but either way, hes already changing the market about, no need to change it within the block
-
@TipsyWisdom That was my point, if set market is changing the symbol, a constant will prevent this and, make the symbol fixed.
-
@tipsywisdom I already done that but didn't work. I used it as string, also tried by removing these from constants but it didn't work
-
@forexbob-0 do you mean you attached the ea to one pair but yet trades are taken on other pairs ?
-
@kestra No,
I want to trade on 2 pairs together.
for eg. If I want to trade on AUDCHF and USDCHF.
I want to SELL AUDCHF at the same time BUY USDCHF.
https://fxdreema.com/shared/RkU4Iz0nd
Problem in this project is that it opening multiple pairs of Buys and Sells but I want only 1 pair (1 BuyAUDCHF 1 Sell USDCHF or vice versa) at a time. -
@forexbob-0 Set up diffrant trees, 1 that checks AUDCHF, and another that checks USDCHF, then each tree places a hedge.
-
@jstap Got it, one question I have, do i need to place "no position" block on begining of each tree, and it need to be 2 same condition block for 1 pair hedge right ?
In total this way we will have 4 trees.
-
@forexbob-0 no mate only pink, the no position will limit 1st tree to 1, the on trade tab will only work when trade opened, thinking about it though you need to use group numbers so on trade only works from 1st tree.
-
@jstap It stops taking trades now
https://fxdreema.com/shared/msxp2o9ae -
@forexbob-0 Light pink only works under dark pink.
-
@jstap I tried this project in mt4 version and 90% working is upto mark as I need but problem I am facing in this is that, it opens 2 pairs few times not every time it trades, only just few times. Don't know what is the issue.
I mean it tooks 1 sell 1 buy just after few milliseconds it again open same pair of trades.
-
@forexbob-0 Not sure, add a shared link to look at.
-
-
@forexbob-0 Put the set market above no trade, if you have a constant in a block the set market can't work.
-
@jstap This same thing we have already done in MT5 version but nothing improved,
-
@forexbob-0 I can only tell you what to try, the set market is a loop, if below no trade it will loop under and with your pointless constant will loop under, if above with a constant it can't change the market, so will place on the fixed constant pair.
-
@jstap okay, let me try this. one more thing comes in mind that can we limit the orders like maximum orders equals to 2 as if trade triggers it will not open more than 2 trades. if it is possible which block need to be used to make it happen