Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterShortStopLimit as Limit Buy Order

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    EnterShortStopLimit as Limit Buy Order

    Hi,

    Based on my trade signal I would like to place a Limit buy order above the High[0]. When I use the below syntax I am running into below error.
    Can you please let me know what mistake was making. Thank you in advance.

    On 31st Oct at 4.42pm EST the closed Bar High was 4203.75.
    The next bar was open and high was 4203.75 and closed Red.

    Here my goal is take Long position only if the price >= 4204.75

    Code Snippet :

    double limit =High[0] + 4 * TickSize;
    double stop = High[0]+ 3 * TickSize;
    Print(" Limit and Stop Values : "+limit +" : "+stop);
    EnterShortStopLimit(limit,stop, "entry");​




    Log statements below :


    Limit and Stop Values : 4204.75 : 4204.5
    10/31/2023 4:43:00 PM Strategy 'SivaTradeBot/-1': Entered internal SubmitOrderManaged() method at 10/31/2023 4:43:00 PM: BarsInProgress=0 Action=SellShort OrderType=StopLimit Quantity=1 LimitPrice=4204.75 StopPrice=4204.50 SignalName='entry' FromEntrySignal=''

    10/31/2023 4:43:00 PM Strategy 'SivaTradeBot/-1': Ignored SubmitOrderManaged() method at 10/31/2023 4:43:00 PM: BarsInProgress=0 Action=SellShort OrderType=StopLimit Quantity=1 LimitPrice=4204.75 StopPrice=4204.50 SignalName='entry' FromEntrySignal='' Reason='Invalid order price, please see log tab'​​

    #2
    Hello greenhollow803,

    Thank you for your post.

    I would like to gather additional information in order to better understand your inquiry. The message mentions "Invalid order price, please see log tab" - what information do you see on the log tab at that time?

    Optionally, I would be glad to review your log and trace files via email in order to assist you further. You can send these files from the platform by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default. Please include "ATTN Emily C" in the subject line of the email along with a link to this forum thread in the body of the email.

    I look forward to investigating further.​

    Comment


      #3
      Thank you Emily for your response.
      I just ran the strategy analyzer again and below one is the message from Log Tab Sent email with details as suggested
      11/1/2023 9:31:53 AM Default Strategy 'SivaTradeBot/-1': An order has been ignored since the stop price ‘14338.5’ near the bar stamped ‘10/29/2023 6:25:00 PM’ is invalid based on the price range of the bar. This is an invalid order and subsequent orders may also be ignored.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      132 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      118 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X