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

First Buy signal



PureBytes Links

Trading Reference Links

I know this is trival for alot of veterans in this list, 
but some of us have to start somewhere...

I'm attempting to write a very simple BUY signal based
on a recent pivot peak value.  Ideally i would like 
to place a buy stop on the any bar that passes over 
the recent pivot peak.

I know i'm overlooking something very simple, but
because of lack of experience with easyscript, i'm
not seeing the signal i'm interested in..

Many thanks in advance..

eddie :)

  == recent pivot peak
  ||
  ||           
  \/        *   <========Buy signal above recent peak
  * -------------
   *      *
 *  *    *
*       *                             
     *
      *

================ code ========================
inputs: Pricehigh(High), LStrenhigh(2), RStrenhigh(2);
Variables: HighPivot(0);

HighPivot = PivotHighVSBar(1, Pricehigh, LStrenhigh, RStrenhigh,
RStrenhigh+1);

If Close Crosses Over HighPivot Then
	buy ("PivB") at next bar at market;
==============================================