|
Dennis Schutten
2016-03-12 09:25:16
|
|
Hi,
I have multiple external signals which are imported from ascii files.
I have this code below which is working. Is there a method in which the strategy loops through a list of external signals names called : naam ?
Otherwise I have to make a strategy for each individual external signal.
naam="SP_90-102";
// Buy rules
Rule1 = (GetSeries(naam, Close)) > (0);
buy = (Rule1);
// Sell rules
Rule2 = (GetSeries(naam, Close)) <= (0);
sell = (Rule2);
// Short rules
Rule3 = (GetSeries(naam, Close)) < (0);
short = (Rule3);
// Cover rules
Rule4 = (GetSeries(naam, Close)) >= (0);
cover = (Rule4);
|
|