Forum

Divide Volume with Hedge account

Hello, I wanna open an operation with 2 lots and i wanna sell one lot When the profit is got and after When the second profit is got, i close the position. This code works good with an account without hedge but with hedge i can't close with the opposite action. What do i need? it doesn't work

PositionGetDouble(POSITION_SL) is not working

Hi, thanks for reading. I have this trailing stop, my problem is "PositionGetDouble(POSITION_SL)" is not working or only it work when "PositionModify" works? Here i am debugging and "pos_sl" is 0.0, why? if ( PositionSelect ( _Symbol )){ if ( PositionGetInteger (

Newbie needs help with PositionModify please

Hi all, I am using CTrade class to do a trailling stop. It works perfectly but the problem is that my EA after doesn't open more positions. If i leave my trailing stop, my EA is working without problems but if i put the trailing stop, at the moment that one position is using the trailing, the EA