Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Linking an indicator to a Strategy

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

    Linking an indicator to a Strategy

    I already have a pre-built, working Strategy but I want to add code to link the Volume Based Buy and Sell Momentum v3 into the buy/sell conditions. Can anyone tell me what code I need to add into my Strategy? Basically buy when the Oscillator is above 0, sell when below 0, etc. It will use a bool variable in the code to make it work. Basic stuff but I have almost no programming experience. I'm self taught and know just enough that if I can get this code, I can make it work. haha


    #2
    Originally posted by jnathan View Post
    I already have a pre-built, working Strategy but I want to add code to link the Volume Based Buy and Sell Momentum v3 into the buy/sell conditions. Can anyone tell me what code I need to add into my Strategy? Basically buy when the Oscillator is above 0, sell when below 0, etc. It will use a bool variable in the code to make it work. Basic stuff but I have almost no programming experience. I'm self taught and know just enough that if I can get this code, I can make it work. haha

    Have you tried any of the no-code strategy builders? Or Claude 3.5?
    QuantVPS
    NinjaTrader Ecosystem Vendor - QuantVPS

    Comment


      #3
      I couldn't get it to work. It needs to be manually coded I think.

      Comment


        #4
        Hello jnathan,

        Thank you for your post.

        You should be able to reference the indicator similarly to how the SMA is referenced in SampleMACrossover. That said, we wouldn't be able to say the exact code needed since we're not familiar with this indicator and what parameters it takes. If you're not sure, please reach out to the developer for clarity.

        If you have any further questions please let us know.

        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