@Streak , I want to devdelope macd either or condition for macd 15 min different sinario in single index i.e. nifty 50.
My concern is all the condition must folloes i.e. “Matches All” but follong two may follow either or in same strategy
Symbol(INDICES_NIFTY 50, MACD(12,26,9,macd,0) crosses above MACD(12,26,9,signal,0)
“OR”
Symbol(INDICES_NIFTY 50, MACD(12,26,9,macd,0) higher than equal to 0 )
“I have understood the ‘matches all’ and ‘matches any’ types that you mentioned—it’s a very good feature. My question is: in a strategy with 6-7 conditions, if all are under ‘matches all’, can some of those conditions be made either-or?”
You can add multiple blocks in your scanner/strategy and create your AND and OR conditions. Refer to the image shared below to learn how to write conditions using Matched All and Matches Any.
As you can see we have set the first block as Matches All and the second block to Matches Any. The above condition will take an entry if condition A and B satisfies together along with at least one of the conditions from C or D. Referring to the above you can create as per your requirements.
You will be able to add the Block function by clicking on the “Add +” as shown below. The “Block function” allows you to add different sets of conditions in a single strategy.