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

Re: Limiting Trades



PureBytes Links

Trading Reference Links

> I have a function that limits trades to an inputted number of trades, I
> have been unable to limit the trades to one long and one short, and would
> appreciate and ideas.

not verified: TRY:

if d<>d[1] then begin
	ok2BUY = true
	ok2SELL = true
end;

if marketposition > 0 then 	ok2BUY = false
if marketposition < 0 then 	ok2SELL = false

if ok2BUY and WHATEVER GETS YOU LONG then BUY
if ok2SELL and WHATEVER GETS YOU SHORT then SELL

+++++++++++++++
however the above stuff looks toooooo simple that YOU wouldnt know 
yourself - so where is the hidden problem.

rgds hans





 
> Thanks 
> 
> Sentinel
> Sentinel Trading
>