The following statement in my code is resulting in Pending Order getting created but it somehow is not respecting ordertplvl.
int ticketid=OrderSend(scrip,PositionType,Ordervol,NormalizeDouble(Orderprice,MarketInfo(scrip,MODE_DIGITS)),10,NormalizeDouble(ordersllvl,MarketInfo(scrip,MODE_DIGITS)),NormalizeDouble(ordertplvl,MarketInfo(scrip,MODE_DIGITS)),comment,2222,0,Green);
Checked multiple times, All variables do have valid values. Could there be a server setting although the levels are far out compare to open price or the current market levels.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The following statement in my code is resulting in Pending Order getting created but it somehow is not respecting ordertplvl.
int ticketid=OrderSend(scrip,PositionType,Ordervol,NormalizeDouble(Orderprice,MarketInfo(scrip,MODE_DIGITS)),10,NormalizeDouble(ordersllvl,MarketInfo(scrip,MODE_DIGITS)),NormalizeDouble(ordertplvl,MarketInfo(scrip,MODE_DIGITS)),comment,2222,0,Green);
Checked multiple times, All variables do have valid values. Could there be a server setting although the levels are far out compare to open price or the current market levels.
What could I be missing ?