Code: Select all
vars: Sym1 (symbol), Sym2 (symbol data2);
Condition1= Sym1 = "CVX" and Sym2 <> "XOM";
If condition1 then
CommandLine(".csy dnum=2, name=XOM, df=IQFeed");
When I run this in Data1 with the symbol being CVX it does indeed switch the symbol in Data2 to XOM, however, there is a long pause while calculating, usually longer than 30 seconds.
If I put "Abort;" at the end it executes immediately but of course that is not ideal for how I want to use it.
Can anybody suggest another way to get it execute immediately?
Thank you