Hi,
I'd like to close part of the pocition. Eg. the opened position = 1 LOT. And I would like to close 0.7 LOT.
I am using the function PositionClosePartial, but it does not work for me.
Maybe because of the last parameter "Deviation", as I could not find what are the units of deviation (But I have tried to increase the deviation to the really huge number and it didn't helped). Or from another reason, but I don't know why.
Please could you help?
Move your code out of OnInit to OnTick,OnEvent, or OnTimer
Move your code out of OnInit to OnTick,OnEvent, or OnTimer
I've had it in OnInit just for quick test, bu t I have just moved it to OnTick, but It did not helped :(
I've had it in OnInit just for quick test, bu t I have just moved it to OnTick, but It did not helped :(
You're probably not on a hedge account then, and if that's the case you need to send an opposite order.
You're probably on a hedge account then, and if that's the case try CTradeOnHedge instead of CTrade.
Can't download the file. (Wrong url)
Is there any documentation about CTradeOnHedge?
I could not find anything.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I'd like to close part of the pocition. Eg. the opened position = 1 LOT. And I would like to close 0.7 LOT.
I am using the function PositionClosePartial, but it does not work for me.
Maybe because of the last parameter "Deviation", as I could not find what are the units of deviation (But I have tried to increase the deviation to the really huge number and it didn't helped). Or from another reason, but I don't know why.
Please could you help?