Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

macd bollinger bands strategy help

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

    macd bollinger bands strategy help

    hi everyone

    I need some help with a condition for a strategy using the Macd Bollinger bands that i am stuck with. any help will be much appreciated. i have attached some pictures of my problem.

    but in general,i am stuck trying to work out how to plot the fast over the upper/lower bands to trigger an entry. i am using the Jumbol bbmacd indicator. which might be the source of my problems. I am just not quite sure

    again thank you for any help

    Simon Thompson

    Click image for larger version

Name:	macd bollinger bands.png
Views:	602
Size:	202.8 KB
ID:	1074180Click image for larger version

Name:	macd bollinger bands 1.png
Views:	526
Size:	272.4 KB
ID:	1074181Click image for larger version

Name:	macd bollinger bands 2.png
Views:	524
Size:	287.1 KB
ID:	1074182Click image for larger version

Name:	macd bollinger bands 3.png
Views:	514
Size:	287.1 KB
ID:	1074183Click image for larger version

Name:	macd bollinger bands 4.png
Views:	550
Size:	202.8 KB
ID:	1074184
    Attached Files

    #2
    Hi Simon,
    If you open the indicator in NinjaScript, you will notice that the dots change colour if the MACD changes direction (row 79 thru 85). Thus, what you need is the IsRising / IsFalling condition, which can be found under "Misc" in the Strategy Builder. NinjaTrader_PatrickH provided an example using the StrategyBuilder example here:
    https://ninjatrader.com/support/foru...trategy-wizard.
    I hope this gets you started.
    NT-Roland

    Comment


      #3
      NT_ roland. sorry for the late response but thank you for your help mate i will do this

      regards

      Simon

      Comment


        #4
        Hello Simon, thanks for your note.

        I attached a sample that will draw vertical lines on every cross for the default MACD. Since the plots are exposed for the custom MACD indicator, I can't see a reason those plots won't work. To run this add it to Documents\NinjaTrader 8\bin\Custom\Strategies and compile.

        Best regards,

        -ChrisL

        Attached Files
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mestor, 03-10-2023, 01:50 AM
        16 responses
        389 views
        0 likes
        Last Post z.franck  
        Started by rtwave, 04-12-2024, 09:30 AM
        4 responses
        31 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by yertle, Yesterday, 08:38 AM
        7 responses
        29 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        22 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        7 views
        0 likes
        Last Post funk10101  
        Working...
        X