PureBytes Links
Trading Reference Links
|
Sentinel Trading wrote:
>What is the function $Upperband, and $Lowerband. That is probably where the
>problem lies.
Hi
Well here they are and its looks okay to me. I haven't a clue.
{Lowerband function}Input:
Price(NumericSeries),Length(NumericSimple),SDev(NumericSimple);
$Lowerband = Average(Price, Length) - StdDev(Price, Length) * SDev
{Upperband function}Input:
Price(NumericSeries),Length(NumericSimple),SDev(NumericSimple);
$Upperband = Average(Price, Length) + StdDev(Price, Length) * SDev
>Input: Price(C),Length(18),SDev(2),upper(100),Lower(-100);
>Plot1(((100*(Price-$Lowerband(Price,Length,SDev))/($Upperband(Price,Length,S
>Dev)-$Lowerband(Price,Length,SDev)))-50)*2,"Place");
>
>Plot2(upper,"Upper");
>Plot3(lower,"Lower");
>IF CheckAlert Then Begin
> IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2
> or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3
> or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3
> Then Alert = TRUE;
>End;
>
>Can't figure what its needs without messing up what the original author was
>attempting to do here.
>Anybody see the problem it will verify.
>
>Thanks in Advance
>
>Robert
>
>
>
|