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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        134 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        118 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X