If you are on Premium or above (there is no Professional plan) then there is a limit of historical data access of 20,000 candles. I suggest you go to the Help Centre on your TV menu and lodge a support ticket to TV for help on this.
Bmaloney, I'm having a challenging time on this script. For some reason the changes I made aren't working although logically they should be. This happens from time to time when programming!
Hey Rox2Metal, have you looked at request.security() and request.security_lower_tf() functions. I'm not sure if these will give you the answer you need but worth looking into. Here's the references. https://www.tradingview.com/pine-script-reference/v5/#fun_request.security https://www.tradingview.co...
Roy everything is case sensitive. You need to make sure you capitalise where it is needed. Usually Matt uses lowercase on the 1st part of a variable and Capital on the 1st letter of the subsequent parts. The fix to this is as follows:
If you've got a long trade and before it takes profit or stopped out the price reverts and you get a sell signal, why would you want to keep the original trade going and respecting the original take profit and stop loss levels?