Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiling error from strategy builder.

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

    Compiling error from strategy builder.

    Can someone help me with this strategy? I used the builder to build it, but it will not compile. The lines of code read exactly as it was built from the builder. I've not changed anything. That being said, it gets hung up on line 30, and I received the following error code: "BltTriggerLines" is a "namespace" but is used like a "type" Code: CS0118

    A bit of background context with regards to what I'm attempting to do. I'm running a BlttriggerLines indicator on a chart using range bars set at 8. Yet I have a 16 range in the background that this same indicator uses to highlight the larger trend. In saying that, when I get a reversal bar that is specific to the average line of the indicator tied to the 16 range bar (the high of the bar crosses the average, but closes to the downside of the line), I want the strategy to sound an alert, and draw an arrow, be it for a long or short.

    That being said, the strategy is currently only written for the short. I figured, once that works, and I've added any additional criteria that I wanted, I could duplicate it and make the adjustments need for it to identify the long.

    I've attached a PDF of the code. Thank you in advance.

    Attached Files

    #2
    Hello Lowerlevel1,

    The issue may be with the BltTriggerLines indicator. Is this a script you have written?

    If this is not a script have you written, have you written to the vendor or author that distributes this software and confirmed that this was designed to work properly in the Strategy Builder?
    Have you asked the vendor how to properly use this indicator in the Strategy Builder?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi there ChelseaB. I was able to figure it out, approaching it from a different direction. Yes, I do think that the issue was the indicator. I did not program it, but one I had downloaded from the ninjatrader site. Thanks.

      Comment


        #4
        Hello Lowerlevel1. Can you describe how you were able to use BltTriggerLines in a strategy? I have the same error. Did you download the indicator from a different site? Thanks

        Comment


          #5
          ronaldgreene828 My apologies for the delayed response. I'm not in here much. That being said, I don't recall what I did specifically, but ultimately moved away from the BLT Trigger lines. I'm not a programmer, but attempting to learn what I can, where I can. I've recently signed up for some classes, so in time, I may come back to what I was attempting to do in the first place.

          Comment


            #6
            No problem. I hack my way through to create stuff without too much complexity. Some of the stuff looks Chinese to me

            Comment


              #7
              Originally posted by Lowerlevel1 View Post
              Can someone help me with this strategy? I used the builder to build it, but it will not compile. The lines of code read exactly as it was built from the builder. I've not changed anything. That being said, it gets hung up on line 30, and I received the following error code: "BltTriggerLines" is a "namespace" but is used like a "type" Code: CS0118

              A bit of background context with regards to what I'm attempting to do. I'm running a BlttriggerLines indicator on a chart using range bars set at 8. Yet I have a 16 range in the background that this same indicator uses to highlight the larger trend. In saying that, when I get a reversal bar that is specific to the average line of the indicator tied to the 16 range bar (the high of the bar crosses the average, but closes to the downside of the line), I want the strategy to sound an alert, and draw an arrow, Ome TV be it for a long or short.

              That being said, the strategy is currently only written for the short. chatus I figured, once that works, and I've added any additional criteria that I wanted, I could duplicate it and make the adjustments need for it to identify the long.

              I've attached a PDF of the code. Thank you in advance.
              It's good idea.
              Last edited by jackspero; 08-08-2022, 10:37 PM.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              71 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              143 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              76 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              47 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              51 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X