[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a function in TS2K ?



PureBytes Links

Trading Reference Links

Any help appreciated:

I have an indicator in TS2K that I need to write and save as a function (in order to use it in a system).

Inputs: Price(Close of Data1/Close of Data2), Len1(3), Len2(15);

Value1 = XAverage(Price*100,Len1);
Value2 = XAverage(Price*100,Len2);
Plot1(Value1-Value2,"WillSpread");
Plot2(0,"Zero");


Can anybody show me how to save it as a function. I tried several things but errors always appear on verify.


Appreciate your suggestions,


Davis