How i can change lot size

 
Hi is it possible to reduce lot size when trade is losing? Just asking.
 
jameslarry:
Hi is it possible to reduce lot size when trade is losing? Just asking.
Of course . . you can use whatever lot size you like, within reason . . . has to be greater than or equal to MODE_MINLOT and a multiple of MODE_LOTSTEP . . and of course you have to have the free margin to support the trade.
 
How can i do it? I want when trade is losing i reduce lot size so loss is smaller before i close it and when its positive i increase Lot size then close it immediately for bigger profit. Can you write such a script and for how much thanks i want to hack broker.
 
I used to think thats impossible but maybe raptor can hack for you.
 
jameslarry:
How can i do it? I want when trade is losing i reduce lot size so loss is smaller before i close it and when its positive i increase Lot size then close it immediately for bigger profit. Can you write such a script and for how much thanks i want to hack broker.
Oh I see . . . you mean of an open trade . . not for the next trade ? no you can't do that . . .
 
RaptorUK:
Oh I see . . . you mean of an open trade . . not for the next trade ? no you can't do that . . .

Y not

if the open trade is let's say 1 lot

OrderSelect(....); // select the order

OrderClose(..0.5....); // close 0.5 for example

 
qjol:

Y not

if the open trade is let's say 1 lot

OrderSelect(....); // select the order

OrderClose(..0.5....); // close 0.5 for example

I'm not certain the OP is talking about a partial close of his position . . .
Reason: