Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy embedding FibonacciPivots cannot be exported

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

    Strategy embedding FibonacciPivots cannot be exported

    Hello,

    When the indicator FibonacciPivots is embedded in a strategy(demo strategy attached), the strategy cannot be exported, neither as source nor DLL.
    The strategy compiles OK locally though.
    The error says that 'PivotRange' and 'HLCCalculationMode' cannot be found -- attached screenshot.
    Code:
    WARNING: Error compiling export assembly: ...\Documents\NinjaTrader 8\bin\Custom\Indicators\@FibonacciPivots.cs(503,53 ) : error CS0246: The type or namespace name 'PivotRange' could not be found (are you missing a using directive or an assembly reference?)
    WARNING: Error compiling export assembly: ...\Documents\NinjaTrader 8\bin\Custom\Indicators\@FibonacciPivots.cs(503,80 ) : error CS0246: The type or namespace name 'HLCCalculationMode' could not be found (are you missing a using directive or an assembly reference?)

    Perhaps I need to add a certain reference when exporting, but I don't know which one. I tried adding ALL 19 references presented to me, same outcome.
    What am I missing? Thank you.
    Attached Files

    #2
    Hello utilizator,

    Thanks for your post.

    The error messages in question indicate that you would need to include the FibonacciPivots indicator in the Export window when exporting your strategy since this indicator is being used by the strategy.

    Please add the strategy and the FibonacciPivots indicator being used by the strategy to the Export window. Then, try to export your strategy.

    Does the strategy export successfully when adding the FibonacciPivots indicator to the export window?

    Let me know if I may further assist.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi Brandon,
      Thank you for your reply.

      FibonacciPivots being a system indicator, it does not appear in the Export window -- hence cannot be added.
      Were you able to do that with the demo strategy? How?

      Comment


        #4
        Hello utilizator,

        Thanks for your note.

        It seems those the enums mentioned in the error message are actually defined in the Pivots indicator.

        You would need to add the Pivots System Indicator to the Export window along with your strategy to export your script successfully.

        In the Export window, select 'add', click the 'Type' drop-down menu, select 'System Indicators', locate and select the Pivots indicator, and click OK to add it to the Export window. Also, add your strategy to the export window and click the 'Export' button to export the script.

        Let me know if I may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Thank you Brandon!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          64 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X