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

Re: Simple Easy Language Code



PureBytes Links

Trading Reference Links

A sell stop is triggered whenever you are <= stop price X.
A buy stop is triggered whenevr you are >= stop price X.
By default you are goiing to be <= highest(h,50)
and >= lowest(L,50) most of the time and BOTH buys
and sells will be triggered. Do you mean to use limit
orders? Or perhaps you mean to buy at the highest highs
and sell at the lowest lows?

Bill Wynne

>From: Charles Strong <css8@xxxxxxx>
>To: omega-list@xxxxxxxxxx
>Subject: Re: Simple Easy Language Code
>Date: Sun, 13 May 2001 02:08:02 +0200 (MEST)
>
>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
>
>--
>