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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X