PureBytes Links
Trading Reference Links
|
Bob,
Thanks for your comments. I substituted highest high and lowest low but
that didn't seem to work either. Any ideas? I get multiple buys and sells all
clumped together.
Inputs: BZ(2), SZ(1);
Sell at highest(high,50) - (highest(high,50)* (sz*.01)) stop;
buy at lowest(low,50) + (lowest(low,50)* (bz*.01)) stop;
At 6:56 PM +0200 5/12/01, Charles Strong wrote:
>This is my simple easylanguage:
>
>Inputs: BZ(2), SZ(1);
>Sell at SwingHigh(1,high,1,50) - (SwingHigh(1,high,1,50)* (sz*.01)) stop;
>buy at swinglow(1,low,1,50) + (Swinglow(1,low,1,50)* (bz*.01)) stop;
>
>I would like to continually reverse my position. I want to buy x% off of
>the swinglow and sell x% off of the swinghigh.
>
>My code does not seem to be doing the trick. Any suggestions, please?
The SwingHigh and SwingLow functions find the swing highs/lows after they
have occurred.
In the above code the "SwingHigh(1,high,1,50") function will search back 50
bars for the most recent swing high of strength = 1 and return that high
price. But by then it is too late to make the trade.
See the on-line help for a complete description of the functions.
Bob Fulks
--
|