IF Strategy 1,2,3 Buy .. Otherwise Sell
-
kindly clarify if attached picture is correct in reference to post title description

If >> one of these blocks condition ( 6,7,8 ) met >> then its a Buy
otherwise >> its a sell
updated sequence of blocks numbering to begin with 3 ... ending with 11 (otherwise )
if its not correct please share how to conduct a statement of ( If ... otherwise ) in other way
thanks in advance
-
@saeed-2 if you're using that as otherwise, the yellow spots on each block are already for "otherwise". I would disconnect otherwise from IF and connect it to the yellow on each block. maybe even remove the otherwise block, it isn't necessary. Just go directly to sell now if you're saying that, if none of those situations are true, then you will short.
-
Pass block works in a sequence .. otherwise block is just a pass block to act as { otherwise }
so when EA reach (IF) block .. it will first check block :5 > 6
4 > 7
3 > 8
11 > 10whenever condition met ..EA open a trade
as explained in instructions
and yes agree with you if its connected directly with yellow circle throw Once per bar block it will operate more easier but most likely it will generate a clash with once per bar and start to open two trades
is there any block that has the function ( if .. otherwise )
i went throw all blocks and didnt find any
thanks man for bypass and assist
-
@jsauter86

Can AND block do required function ? it has the yellow spot where otherwise can process ahead
so here if none of these conditions met .. it will go to otherwise
thats correct ?
thanks again
-
sorry I dont use those much, I would opt for flags instead.
-
@saeed-2 No. That AND block is looking for all condition ABOVE it to be true, not those below. Do you ned ANY of strategies to be true and then if NONE is true Otjerwise should be executed. Right?
-
@l-andorrà yes if none of strategy 1 2 3 is true .. i need it to execute at otherwise which is a sell
is it possible ?
thanks alwyz for your assistance
-
Hi @saeed-2 ,
You may use something like below setup. Since there might (are) be better ways to do such thing, I believe it will do the work for you.

Regards.
-
-
You're welcome @saeed-2 . Hope it helps.