es wird immer nur 1 contract gekauft !
obwohl max. 5 contracts möglich wären
if TradingDay=1 Then
if time>start and time<142500 or time> 144500 and countofposition<5 then
if close > hoch1 then
buy 1 contract at market
if countofposition=1 then
buy 2 contract at market
endif
endif
if time=142500 and countofposition >0 then
sell 1 contract at market
endif
Poste den richtigen Code, die Definition der Variable HOCH1 fehlt und mehrere ENDIFs fehlen. Denken Sie daran, dass jedes IF immer mit ENDIF abgeschlossen werden muss.