Help! My program will not stop trading for the DAY even thou I set a maximum loss limit for the day.
What is wrong with my code?
Thanks
if Date <> Date [1] then
begin
PrevNetProfit = NetProfit;
StopTrading = false;
end;
if NetProfit >= PrevNetProfit + 100 then StopTrading = true;
if Date <> Date [1] then
begin
PrevNetLoss = GrossLoss;
StopTrading = false;
end;
if GrossLoss >= PrevNetLoss + 65 then StopTrading = true;
|