So here it is :
===============================
expCyc:=Input("Options Cycle: (1-JAJO 2-MJSD, 3-FMAN, 4-ALL",1,4,4);
expDay:=Input("ExpDay: (1-Mon, 2-Tue, 3-Wed, 4-Thu, 5-Fri)",1,7,5);
expWeek:=Input("ExpWeek:(1-st, 2-nd, 3-rd, 4-th, 5-th)",1,5,3);
plot:=Input("Plot ExpDay (1-Signal, 2-Count)",1,2,1);
pplot:=Input("Plot PreExpDay (1-Signal, 2-Count)",1,2,1);
day:=DayOfWeek()=expDay;
pday:=Ref(day,-1);
d:=DayOfMonth();
exp1:=If(Month()=1,1,If(Month()=4,1,If(Month()=7,1,If(Month()=10,1,0))));
exp2:=If(Month()=2,1,If(Month()=5,1,If(Month()=8,1,If(Month()=11,1,0))));
exp3:=If(Month()=3,1,If(Month()=6,1,If(Month()=9,1,If(Month()=12,1,0))));
cycle:=If(expCyc=1,exp1,If(expCyc=2,exp2,If(expCyc=3,exp3,1)));
xSignalCount:=
If(day AND d<=7 AND cycle,2,
If(day AND d>7 AND d<=14 AND cycle,4,
If(day AND d>14 AND d<=21 AND cycle,8,
If(day AND d>21 AND d<=28 AND cycle,2,
If(day AND d>28 AND cycle,2,0)))));
signal:=expWeek=xSignalCount;
signal2:=expWeek=Ref(xSignalCount,+1);
If(plot=1,signal,xSignalCount);
If(pplot=1,signal2,Ref(xSignalCount,+1));
=================================
Strangely the "signalCount" is ploted but the "signal" doesn't.
What do I do wrong?