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

Re: Easy language pyramid schemes



PureBytes Links

Trading Reference Links




>Has anyone done any work with programming pyramid schemes in Easy language.


here's a simple one:

Inputs: Maxcntr(20), Mrgn(12500);
var: temp(0),Ncntr(0);

temp=netprofit/mrgn;
If temp>1 then begin
        If temp<Mxcntr then ncntr=temp else ncntr=mxcntr;
        end;

----------------------------------------
Logic:

Mxcntr is the maximum number of contracts you can trade;
Mrgn is the margin required for 1 contract;

the Net profit divided by the margn required per contract determines the
number of contracts you can pyramid , up to a max number of contracts the
market is liquid for or what you're comfortable with. It's simple and very
basic but effective.