Mt5 returning None type in mt5.send_sorder()

 

Hi!

I want to send an OANDA order request via mt5.send_order(), but it is returning none type.

Here is my order request:


action: 1, Type: int

symbol: US100, Type: str

volume: 0.01, Type: float

type: 0, Type: int

sl: 16627.5, Type: float

tp: 16701.75, Type: float

deviation: 20, Type: int

magic: 234000, Type: int

comment: python script open - StairMaster_v1, Type: str

type_time: 0, Type: int

type_filling: 0, Type: int


Could anybody helpme to identify the error?

 

Hi. If anyone has this same trouble, it turned out that my comment was too long. I figured it out using the mt5.last_error() method. It could be useful for other errors.