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

MaxTradeHigh, MaxTradeLow functions



PureBytes Links

Trading Reference Links

{ 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;