I've programmed in Tradestation EasyLanguage for 25 years, but am finding it very difficult to transfer over to ThinkScript. I'm trying to plot a line only for certain symbols. I'm sure that there are several syntax errors in my code, but I can't figure out what should work. Can anyone help?
Code:
if GetSymbol() == "/ES"
then
{ plot Line01= 4590;
Line01.SetDefaultColor(Color.RED);
Line01.SetLineWeight(2);
plot Line02= 4560;
Line02.SetDefaultColor(Color.WHITE);
Line02.SetLineWeight(1);}
else Double.NaN;