It appears that you want to include both contra condition code by putting OR. You are for example asking system to do some thing when some is greater and less than same number. Hence you are expecting code to find some thing equal to which is not coded.
Let’s say x= 30
29<x and 31>x
System would throw error because
29<X or 31>x would let give any out put.
Try putting brackets for each statement (ssssssss) or (dddddd)
It may work, I am not sure.
Are you using this tradescript in backtesting or scanner? also, you didn’t mention the error, I have checked the above code,I guess the two conditions which you are combining with OR is buy and sell conditions, you can use those by putting each in buy and sell columns of pi backtest or in 2 scanners separately, I have verified and it’s working fine.
The problem while combining two opposite conditions into one using OR is, In backtest the buy signal is followed by sell and vise-versa, and it needs at least one buy and sell script to give signal otherwise it will throw error of " the script generated no trades needs buy and sell"
so you can use both conditions separately in buy and sell columns and try. check my below screenshot for reference
click on edit script when you get error and see " OR " would have got mixed with other scrip without space, give more space on both sides as shown below screenshots and try it will work fine
Can we scan all the futures in a single scanner? About 180 symbols?
Is Zerodha Pi capable of running 2 scanners simultaneously? Each containing 180 symbols?
Can you please provide a default market watch of all futures. I know current limit is 50 symbols.
Whenever alert is generated in scanner, the scrip should move up and come on top of the scanner. But their position changes only when we click on alert time column 2 times for sorting in descending order of time.
there is no limit for adding symbols, you can add as many scrip and number of scanner which your PC and internet speed supports, as scanner fetches every LTP tick and computes with your given condition, the PC goes hang when it reaches its capacity. so I recommend to go with 50 scrips and then try to increase more if it is working fine.
yes, there is a limitation in the number of scrips on Market watch and the scanner doesn’t sort automatically.
You can try advanced web version of backtesting and scanners of streak.zerodha.com