Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No Order execution with FXCM demo account

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

    No Order execution with FXCM demo account

    Hallo,

    I have a current NT demo license and a FXCM demo account.
    I have developed a strategy that goes well in the backtest. But in real-time no order is executed.
    Where is the problem?

    #2
    Hello Blackburn,

    Thank you for writing in. Could you please check the Strategies tab of the NinjaTrader Control Center and verify if your strategy is displaying yellow or green when enabled? If it is displaying yellow, this means the strategy is not able to finish activating because of a combination of the logic in your strategy and your platform settings. The easiest way to test this is to add the following code as the top line of your OnBarUpdate() method:
    Code:
    if(Historical) return;
    Then recompile by pressing F5 on your keyboard. Then readd and enable the strategy. Now it should become green and place orders as expected.

    NOTE: Using the above code makes it so you cannot backtest your strategy.

    You can remove this code but please keep in mind the same issue will occur unless you adjust your platform settings. Please see the following links for more information:
    http://ninjatrader.com/support/helpG...unt%2Bposition
    http://ninjatrader.com/support/helpG..._positions.htm
    Please let me know if you have any questions or if I may be of further assistance.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hello Michael,

      thanks for your advice. I've pasted the code in my script.
      The strategies tab is green.

      All works fine :-)

      Thank you!
      Last edited by Blackburn; 08-26-2015, 09:23 AM.

      Comment


        #4
        Hello Blackburn,

        It is always my pleasure. Please have a great rest of your day.
        Michael M.NinjaTrader Quality Assurance

        Comment


          #5
          Hello Michael,

          the error occurred again, no executions :-(
          Can I send you the strategy file for testing?
          The strategies tab is green.

          Blackburn

          Comment


            #6
            Hello Blackburn,

            For further assistance, please feel free to email your strategy to platformsupport[AT]ninjatrader[DOT]com and be sure to include "ATTN: Michael M http://www.ninjatrader.com/support/forum/showthread.php?t=77567" in the subject line.

            Thank you in advance.
            Michael M.NinjaTrader Quality Assurance

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by zstheorist, Today, 07:52 PM
            0 responses
            3 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            149 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            5 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            33 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            5 views
            0 likes
            Last Post tkaboris  
            Working...
            X