Jump to content
  • 0

Traling Stop on open market order


AlgoTrader

Question

Hi,

 

Trying to place MARKET open order with TrailingStop without luck.

Market order works but when changing Trailing_stop = True and increment to 50* or any other number I get error:

trading_ig.rest.IGException: {"errorCode":"validation.null-conditional-set-value.request»}

Trading on DEMO CFD account

Really appreciate the help :)

 

exapmle:

 

response = ig_service.create_open_position(
    currency_code='USD',
    direction='BUY',
    epic='CS.D.ETHUSD.CFD.IP',
    expiry='-',
    force_open=True,
    guaranteed_stop=False,
    level=None,
    limit_distance=None,
    limit_level=None,
    order_type='MARKET',
    quote_id=None,
    size=0.1,
    stop_distance=None,
    stop_level=None,
    trailing_stop=True,
    trailing_stop_increment=50,
)
Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • General Statistics

    • Total Topics
      20,053
    • Total Posts
      88,095
    • Total Members
      69,048
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    GeoffAshG
    Joined 30/09/22 12:37
  • Posts

×
×
  • Create New...