//Easy language (tradestation) / Power language (multi chart)
Basic code to paly around whit :-)
// Dax, 5 min time frame, default settings, exchenge time
Imput: RangeMultiplayer (0.95),
BegTime (0900),
Endtime (0955),
CloseTime (2155),
SkipeDay(Friday),
MyContracts(1);
Variables:
MinSetup (0), MaxSetup (0),
Sl Long(0), Sl Shot(0),
Daily_Factor (False);
If Date <> Date[1] then begin
Max setup = 0;
Min setup = 0;
Daily_ factor = absvalue (opend(1)-closed(1))<0.75*(highd(1)-Lowd(1));
End;
If daily_factor and time >= BegTime and time <= EndTime and Dayofweek (date) <> SkipDay and EntriesToday (Date) = 0 then begin
If maxsetup = 0 then begin
// do once @ BegTime
maxSutep = HigtD(0) + RangeMultipler * (HigtD(0) - LowD(0));
slLong = HighD(0);
end;
Buy (“Lex”) MyContracts contracts Next Bar at maxSetup stop;
If minSetup = 0 then begin
// do once @ BegTime
minSutep = LowD(0) - RangeMultipler * (HigtD(0) - LowD(0));
slShort = LowD(0);
end;
Sellshort (“SEx”) MyContracts contracts Next Bar at minSetup stop;
end;
Sell (“LXx”) from entry(“LEx”) Next Bar at slLong stop;
BuyToCover(“SXx”) from entry (“SEx”) Next Bar at slShort stop;
If Time >= CloseTime then begin
Sell(“TimeLXx”) from entry (“LEx”) Next Bar Market;
BuyToCover (“TimeSXx”) from entry (“SEx”) Next Bar at market;
End;
Setstopcontract;
SetStopLoss (1000);
SetExitOnClose;