{ FUNCTION: MaxTradeHigh }
if marketposition = 1 then begin
if h > MaxTradeHigh[1] then
MaxTradeHigh = h;
end else
MaxTradeHigh = -999999;
{ FUNCTION: MinTradeLow }
if marketposition = -1 then begin
if l < MinTradeLow[1] then
MinTradeLow = l;
end else
MinTradeLow = 999999;
|