Page 1 of 1

Trix Mo System

Posted: Mon Jun 13, 2016 6:42 pm
by henry1224
A:="TRIX(12,20)[TRIX]";
Sell:=(A - Ref(A,1) < 0) &
(MA(A - Ref(A,1),3) <
A - Ref(A,1));
Buy:=(A - Ref(A,1) > 0) &
(MA(A - Ref(A,1),3) <
A - Ref(A,1));
D:If(BarsSince(BUY)<BarsSince(Sell), 1,If(BarsSince(Buy)>BarsSince(Sell),-1,0)),Colorstick;


here are the events

Long

A:="TRIX(12,20)[TRIX]";
Sell:=(A - Ref(A,1) < 0) &
(MA(A - Ref(A,1),3) <
A - Ref(A,1));
Buy:=(A - Ref(A,1) > 0) &
(MA(A - Ref(A,1),3) <
A - Ref(A,1));
D:=If(BarsSince(BUY)<BarsSince(Sell), 1,If(BarsSince(Buy)>BarsSince(Sell),-1,0)),Colorstick;
Event:Cross(D,.5);

Short

A:="TRIX(12,20)[TRIX]";
Sell:=(A - Ref(A,1) < 0) &
(MA(A - Ref(A,1),3) <
A - Ref(A,1));
Buy:=(A - Ref(A,1) > 0) &
(MA(A - Ref(A,1),3) <
A - Ref(A,1));
D:=If(BarsSince(BUY)<BarsSince(Sell), 1,If(BarsSince(Buy)>BarsSince(Sell),-1,0)),Colorstick;
Event:Cross(-.5,D);

Re: Trix Mo System

Posted: Sat Jul 09, 2016 8:48 am
by jwilder
Hi Henry;
thanks for all of the posting you are doing. Would you let me know where I can use these systems (codes) is it in Edgerater or maybe tos?
thanks
jwilder

Re: Trix Mo System

Posted: Sat Jul 09, 2016 3:09 pm
by henry1224
the codes are made to just cut and paste

Start in edgerater Chart designer, in the upper right corner click on chart scripts, click new,
cut and paste the formula into the blank box,

If the formulas have parameters, you would then have to put the into the parameter tab

next name the formula then save the formula

if the formula is an event it can then also be used in the entries and exit tabs