This script is just for reference to see the trading range.
Do not use this strategy logic, it is just Test strategy.
The trading range is colored depending on whether it is profitable or not.
You can change the color if you want.
When you declare the strategy, put (process_orders_on_close=true,calc_on_every_tick=true, max_boxes_count=500) in your script.
Then it...
This will allow you to enter the date when the strategy should start trading. It cancels all orders if the the current bar is older than the date you entered in the input field.
Motivation: strategy(lookback) never worked for me and even if it did, it is garbage, because I want to set a date instead of number of bars. I can see on the chart clearly what period is...