Incorporated several improvements that are used in the new Gunbot Deluxe script.
Changed source to more closely match Gunbot's use of Bid/Ask prices.
Removed necessity to enter current dates each time, you may still do so by clicking on Enable Date Range.
Changed PP_BUY and PP_SELL lines to auto range closely to current high and low prices and to appear only after entering desired buy and sell prices.
To use:
Once you have been granted access, you will receive notification in TradingView (Bell).
Then right click on Chart area -> click "Insert Indicator..." -> click "Invite-Only Scripts" -> click "Gunbot PingPong" -> Add To Chart
At bottom -> click "Strategy Tester" -> click the "Gear" icon (Format) -> Input your desired settings to test.
Enter your desired PP_BUY and PP_SELL prices and the green buy and red sell lines will appear. When you switch to a different instrument (pair) you will need to click the Defaults:Reset Settings button to recenter chart for the new instrument (pair) that you are viewing.
NOTICE: There were some changes made to this script that may cause it to behave erratically if you have saved layouts with a previous version of this indicator. Please remove this (click [x] on indicator) from any saved layout charts and save those charts, refresh (reload) your browser page, then add the indicator back to your desired charts. If you still have problems you may have to empty the cache on your browser, sign out and sign back in.