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

Re: simple EL systems



PureBytes Links

Trading Reference Links

Jeff Caplan wrote:
<snip>
> I'd like to workup, for instance, a system that takes the high and low of
> the first bar of the day, and makes each an entrypoint for a daytrade.
> Exit at close.  Sounds simple enough, but the propeller on my beanie is
> spinning into overdrive.
<snip>

First create an indicator:

{Plot FirstBar High and Low}
Vars: FirstBarHigh(99999),FirstBarLow(-99999);

If Date <> Date[1] then begin
FirstBarHigh = High;
FirstBarLow = Low;
end;

Plot1(FirstBarHigh,"FBH");
Plot2(FirstBarLow,"FBL");

Next create a system:

{Buy FisrtBar High / Sell FirstBar Low}
Vars: FirstBarHigh(99999),FirstBarLow(-99999);

If Date <> Date[1] then begin
FirstBarHigh = High;
FirstBarLow = Low;
end;

Buy FirstBarHigh stop;
Sell FirstBarLow stop;

FirstBarHigh = 99999;
FirstBarLow = -99999;