Short = Cross(High,Study("RE",1923));
Buy = Cross(Study("SU",1923),Low);
Filter = Buy OR Short;
AddColumn(Close,"Close");
AddTextColumn(WriteIf(Buy,"Buy",WriteIf(Short,"Short","xx")),"Trade"); // Always results in "xx"
AddColumn(IIf(Buy,1,IIf(Short,-1,0)),"Trade2"); // Works OK
The last 2 lines are the issue. Last line
works OK. Prior line does not.
Anyone see the problem?
Ara