Hi!
Im trying to make a strategy that buy on an specific day of the week. How could I program this?
This is the code I have:
var Bar: integer;
for Bar := 20 to BarCount - 1 do
begin
if not LastPositionActive then
{ Entry Rules }
begin
if friday then
BuyAtClose;
end
else
{ Exit Rules }
begin
if monday then
SellAtMarket;
end;
end;
----------------
Doesn't undestand Friday or monday. There is some way to program it?
Thank you very much
Size:
Color:
Please note this forum is intended to discuss Wealth-Lab
.NET. For WL4 there's a separate forum.
WLD4: see the QuickRef for
DayOfWeek.
WLD5:
CODE:
Please log in to see this code.
Size:
Color:
Thank you very much,
and sorry, i didn't saw there was a separate Wealth-Lab 4 forum.
Size:
Color: