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

Re: use IF statement, return nul value



PureBytes Links

Trading Reference Links

John:

My mistake.
 
This trick is only good to prevent indicator being plotted BEFORE a
certain user define nos of days -D- from the beginning of the chart, but
not after.

Eg: late Start 3 EMA

days:=Input("StartDays",1,5000,50);
launch:=Cum(1)>days;
Id:=Mov(C,3,E);
If(Cum(1)>launch,id,RSI(days+1))

I realise this may not solve your problem, but maybe you can explore
from this direction :).



> > One way is to force Metastock to plot an *unplottable* dummy indicator:
> >
> > Eg:  If( condition , value to plot when true , RSI(cum(1)+1) )


-- 

Regards.

Ong Hock Choon
hcong@xxxxxxxxxxxxxx