|
QuantShare
2015-02-03 03:03:08
0
|
|
Hi,
You could use the "GetSeries" function to reference another symbol (stock market index for example)
Using the formula editor this can be translated into:
s = getseries("SYMBOL", close);
a = s > sma(s, 30);
buy = a;
You can also add that using the wizard, by adding the "Getseries" function in the first line then adding the moving average in the second line and in the "Param" control click on "+" to select the "Getseries" again: sma(getseries("SYMBOL", close), 30)
|
|