Pending Order getting created but without the TP as instructed.

 

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 ?