Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order submitted but order entry is rem'ed out.

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

    Order submitted but order entry is rem'ed out.

    I'm having one of those days .... tracking down a couple wily bugs.

    Is there anything that could cause an order to be placed after all the lines of code have been remarked out? Worse yet, as soon as the order is stopped out or target fulfilled, it immediately enters another trade. I have confirmed that the only strategy running on the chart is one in question, confirmed from the main NT window. Also confirmed, the order strategy being implemented (from the trades performance page) is indeed labeled the same as in the strategy.

    My workflow is simple. My chart is running. I compile my code. I tick the enable box on the NT main window "strategies" tab. I'm drawing objects on the chart and at some point, the orders begin getting placed non-stop. I have used the find feature in the editor searching for "enter". All have been remarked out using "//". Is there something I'm missing? Glad I'm using the sim account
    Last edited by Chippy; 02-17-2022, 10:45 AM.

    #2
    Hello Chippy,

    Thank you for your post.

    First, are you completely removing the strategy from the chart and re-adding the strategy? If you don't, not all changes may be recognized and it may be basing its trades on old code.

    If you've removed it and replaced it from the charts and all Order entry/exit methods are commented out, I would not expect it to take trades. Am I understanding correctly that you have commented out all entry and exit methods and are still seeing the strategy submit orders? If so, can you provide example code?

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Hi Kate, yes you understand correctly.

      Sample code
      //EnterShort("QuickTrade");

      But I think you've addressed it. I thought enabling and disabling through the main control panel was sufficient as it works for most everything else... Placing commented out orders is the only anomaly I've witnessed when disabling the strategy in this manner. However, I have experienced problems with removing a strategy from a chart and NOT disabling the strategy in the control panel. Sorry about using "remarked"... I guess I'm dating myself. My first experience with Programming was in the early 80's Basic Language... "rem" was how code was commented out.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      90 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      152 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      80 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      53 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      63 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X