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

Easy Lang Prob



PureBytes Links

Trading Reference Links

I am having problems with a strategy.

The ShowMe has pivot highs and lows and works fine.

However, when I try to convert it into a strategy:

Buy when the High is greater than the PivotHigh and sell when the low is
less than the PivotLow:

Does not trade right.

Any idea what I'm doing wrong?

Thanks

Tom


Inputs: PriceH(High), LStrenH(6), RStrenH(2);

IF PivotHighVSBar(1, PriceH, LStrenH, RStrenH, RStrenH+1) <> -1 Then Begin}
	If H crosses above PivotHighVSBar(1, PriceH, LStrenH, RStrenH,
RStrenH+1) Then buy at H stop;
End;


Inputs: PriceL(Low), LStrenL(6), RStrenL(2);

IF PivotLowVSBar(1, PriceL, LStrenL, RStrenL, RStrenL+1) <> -1 Then Begin}
	If L crosses below PivotLowVSBar(1, PriceL, LStrenL, RStrenL,
RStrenL+1) Then sell at L stop;
End;

The PivotHigh function is from Omega's downloads.