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

Help with Radarscreen filter



PureBytes Links

Trading Reference Links

I'm trying to convert a Showme into a Radarscreen filter.  The Showme works very well but I can't
get it to give the correct Green or Red (True or False) results in a Radarscreen quote monitor.

====================
This is the Showme:
====================
{STOCH(10,10) below BuyZone and dss crosses it's ma}

Input: DStLen(6),Sgnl(3),BuyZone(20),SellZone(80),Space(.2), BubuyZon(25);
Variables: Value1(_Dstoc(DStLen)), Value2(Average(_DStoc(DStLen),Sgnl));

Value1=_Dstoc(DStLen);
Value2=(Average(_DStoc(DStLen),Sgnl));

{Value1 is the double smoothed stochastic and Value2 is the Average of the double smoothed
stochastic}

If Value1[1] <Value2[1] and Value1>Value2  and  Value1[1]<=20 and
 (XAVERAGE(FASTK(10),10))<= BubuyZon   then begin

Plot1(Low-Space,"dssSTOCROVar");

End;

IF CHECKALERT THEN ALERT=TRUE;


===================================================
This is the Radarscreen filter that only shows Red (False) even when the Showme gives a signal:
===================================================

Inputs:  DStLen(6),Sgnl(3),BuyZone(20),SellZone(80),Space(.2), BubuyZon(25),
            TrueColor(Green), FalseColor(Red);
Variables: Filter(""),Value1(_Dstoc(DStLen)),Value2(Average(_DStoc(DStLen),Sgnl));

Value1=_Dstoc(DStLen);
Value2=(Average(_DStoc(DStLen),Sgnl));

{Value1 is DSS and Value2 is the Average of the DSS}

If Value1[1] <Value2[1] and Value1>Value2  and  Value1[1]<=20 and
(XAVERAGE(FASTK(10),10))<= BubuyZon   then begin

 Filter = "T";
 If TrueColor <> -1 Then
  Plot1(Filter, "T/F", default, TrueColor)
 Else
  Plot1(Filter, "T/F");
End

Else Begin
 Filter = "F";
 If FalseColor <> -1 Then
  Plot1(Filter, "T/F", default, FalseColor)
 Else
  Plot1(Filter, "T/F");
End;
=======================

This is only the second time I've tried this...I took a working Radar Screen filter and dropped in
the Showme.  I did the exact same thing with a different Showme and it worked.  This time something
isn't right.  I'd appreciate any suggestions.

John