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

Re: Formula Help-MS ver 5.11



PureBytes Links

Trading Reference Links

Why not? If for example the open is 10 and the atr(10) is 2 then
Open+ATR(10)*.250=10+2*.250=10.5 and 10*2*.125=10.250. So we are looking
at any number between 10.250 and 10.5.

What the real problem is seems to me to be in the statement that Al
wants to enter long when the open is "n" below the previous days close
and then trades "n" above the previous days close. These seem to be two
different bars, the open bar and the open + 1 bar or however many it
takes to go above the previous days close. I don't see how to write this
properly on end of day data. Or maybe I misunderstand the question.

John Manasco

Harvey Pearce wrote:
> 
> Al/
> 
> You have set up two mutually exclusive conditions:
> 
> a.  the open plus ATR(10) * .250 be LESS than yesterday's close, and
> 
> b.  the open plus ATR(10) *.0125 be GREATER than yesterday's close.
> 
> They cannot both apply to the same bar.  Since I'm not yet into
> intra-day coding I won't attempt a solution, but I think the Alert
> function would be applicable.
> 
> Harvey Pearce, Victoria, B.C., Canada
> =====================================
> 
> Al Taglavore wrote:
> >
> > I do need some formula help.  I have a method that I have been trading with
> > some success, and, like all traders, I want to adjust (tinker) with it to
> > test the parameters.
> >
> > I want to enter long when the open is "n" below the previous day's close
> > and then trades "n" above the previous day's close.  If today's H+L is
> > equal to or greater than the 10 day ATR, then no entry.
> > The profit target will be 10 da ATR-(L+previous day's close).  The exit
> > will be the profit target or MOC.
> >
> > I can and have traded this visually, but I need to test the method for
> > greater confidence and so that I can establish stop values, i.e. save my
> > southernmost extremity.  Again, I have ver 5.11, so I do not have the
> > "prev" function.  What I have done, does not return a trade result:
> > ENTER LONG
> > When(O+(Mov(ATR(10),1,S )*.250 ) < Ref(C,-1) AND
> > O+(Mov(ATR(10),1,S ) *.125)>Ref(C,-1))
> >
> > Where have I gone wrong?
> >
> > Al Taglavore