Brian, I now know why you received this error. It is because you are associating the title of a plot with a string variable which happens when you use string L1 = str.tostring(maLength1) just before the plots. Titles need to be constant strings so change the 1st plot to plot(ma1, color=close >= ma1 ...
Are you getting any specific errors or messages? I notice that you are creating market orders but you don't have a qty in your strategy.entry statements so it won. The manual says... qty (series int/float) An optional parameter. Number of contracts/shares/lots/units to trade. The default value is 'N...
Don, You can add the following to the end of your buy_trigger and sel_trigger lines and barstate.islast however, this will only paint the lines on the last real-time bar if it's a buy or sell. So if the last buy_trigger or sel_trigger is 1 or more bars ago this won't display. The only way I can thin...