This is a pictorial representation of what I want to achieve. Hopefully someone
can assist please. The Bitmap is called: ema/dema system.
http://groups.yahoo.com/group/amibroker/photos/album/66951596/pic/304841756/view?picmode=&mode=tn&order=ordinal&start=1&count=20&dir=asc
--- In [email protected], "jollypolly999" <jollypolly...@...> wrote:
>
>
>
> --- In [email protected], "jollypolly999" <jollypolly999@> wrote:
>
> > When 250 DEMA is below 250 EMA :
> >
> > #1) Enter any positions when an XAO Index day bar closes above 250 DEMA
> > #2) Exit all positions when an XAO Index day bar closes below 250 DEMA
> >
> > When 250 DEMA is above 250 EMA :
> >
> > #1) Enter any positions when an XAO Index day bar closes above 250 EMA
> > #2) Exit all positions when an XAO Index day bar closes below 250 DEMA
> >
>
>
> There is something that I didn't explain in the above scenario. When the 250
> DEMA is above the 250 EMA then one possibility can happen. The lower 250 EMA
> doesn't get breached by the Index day bars so a re-entry signal would not
> occur. To overcome this the code would need to act on the 250 DEMA (i.e.
> enter/exit) if the lower 250 EMA is not breached (Index day bar closes below).
> If the lower 250 EMA is breached (Index day bar closes below) then the 250
> EMA is the ruling trigger for re-entry.