plot("Dotted",TradeTrailLimit,MAIN|DOT,RED);
plot("Dotted",TradeStopLimit,MAIN|DOT,GREEN);

Also you want not to name both "Dotted", rather name them Dotted1 and Dotted2.

https://zorro-trader.com/manual/en/plot.htm
MAIN - for plot, plot this and all following curves in the main price chart.