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

Re: OMEGA



PureBytes Links

Trading Reference Links



Donald Thompson a écrit:

> Gwenn Ael Gautier wrote:
> >
> > Var: MP(0);
> > If marketposition=1 then MP=1;
> > If marketposition=-1 then MP=-1;
> >
> > If MP=1 and blabla then sell;
> > If MP=-1 and blabla then buy;
> >
> > That should do. Idea is to have a marker, and act if marker is OK.
> >
> > Yours
>
> Gwenn,
>
> Why not just skip defining the varible Marketposition = MP ?
>

If you go through the code, you'll see MP stays at 1 even if one exitslong
and MarketPosition is now 0. That is useful to avoid back to back long
entries, and create reversal systems whith stop and early exit rules.

Gwenn



> Is it considered good form to do such? or is there intrinsic need to
> define marketposition as a varible.
>
> I really don't know. I would expect once defined that it is less typing
> easier to keep track of.
>
> Don Thompson









  • References:
    • OMEGA
      • From: Tullman, Mitch