Comment on Managing your Script
Didn’t get what you are trying to do on the script. Can you explain me the buy logic firstly,
1. Orders will generate based on the conditions in the script, so you will have to write the code for what you think is support/resistance linke
2. Again, you will have to define what you mean by market is sideways
3. You have to define by what market is going up.