You can write take profit in code:
for(int i=0; i <OrdersTotal(); i++)
{
OrderSelect(i, SELECT_BY_POS);
if(OrderProfit() == X )
OrderClose(....)
}
X is your profit target (in $$$) or stop loss target.
Just fill the OrderClose funciton.
It is possible that because the 5 digit price change in several brokers, your StopLoss\TakeProfit are too close to price and therefore you cannot enter.
If you post your code here I'll have a look.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.