PureBytes Links
Trading Reference Links
|
Can someone help translating the Enigma system from
Tradestation code to metastock?(enigma developed by christian stremiz).
Thanks.
Inputs: Signal(Close of Data2);Vars:
SmoothSignal(0);SmoothSignal = 0.13785 * (2*Signal - Signal[1])
+0.00070 * (2*Signal[1] - Signal[2]) + 0.13785 * (2*Signal[2] -
Signal[3]) + (1.2103 * SmoothSignal[1] - 0.4867 *
SmoothSignal[2]);If SmoothSignal > 0 then Buy else Sell;I
figured it to be something like this, but it does not work:
Signal:=Security("$ADV",C);
SmoothSignal:= 0.13785 * (2*Signal -
Ref(Signal,-1)) +0.00070 * (2*Ref(Signal,-1) - Ref(Signal,-2)) + 0.13785
* (2*Ref(Signal,-2) - Ref(Signal,-3)); SmoothSignal1:=(1.2103 *
Ref(SmoothSignal,-1) - 0.4867
*Ref(SmoothSignal,-2));SmoothSignal2:=SmoothSignal+SmoothSignal1;
If(SmoothSignal2 > 0,1,-1);
Bob
|