• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Interact beetween a renko 9 and a renko 6 charts MACD wise

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

    How to Interact beetween a renko 9 and a renko 6 charts MACD wise

    Hello to you,


    I get slowly and slowly more comfortable with C# starting from scratch with BigMike’s videos
    I trade forex only
    This is a pure renko charts (mutli-renko bricks) question

    I have to charts (let’s suppose EURJPY)
    One chart is set to 9 ticks bricks
    The other one to 6 ticks bricks

    I use the 2 MACD’s ( We agree they have different patterns)
    I don’t use any other indicators (I just get inspired by the 240 minutes ATR) but it doesn’t come inside the logic.
    Let’s call them BigMACD ( the renko 9MACD)
    And LittleMACD (the renko 6MACD)

    Here is the logic
    If BigMACD > 0 and little MACD > 0 Enter Long or Do nothing
    If BigMACD > 0 and little MACD < 0 Stop order or Do nothing
    If BigMACD < 0 and little MACD > 0 Stop order or Do nothing
    If BigMACD < 0 and little MACD < 0 Enter Short or Do nothing
    Though still a beginner, I fully understand the “CalulateOnBarClose= true (option)

    Now, as a beginner with ninjascript I have this problem

    If I attach my strategy to the MACD9renko, it won’t actually read my MACD6renko (COBC) and won’t run my logic

    If I attach my strategy to the MACD7renko, it won’t actually read my MACD9renko (COBC) and won’t run my logic

    So to rephrase all this that would look like this
    CalulateOnBarClose= true
    (Whether the signal comes out the Renko9MACD or the Renko6MACD)
    (That’s where I hit a problem)

    If BigMACD > 0 and littleMACD > 0 Enter Long or Do nothing
    If BigMACD > 0 and littleMACD < 0 Stop order or Do nothing
    If BigMACD < 0 and littleMACD > 0 Stop order or Do nothing
    If BigMACD < 0 and littleMACD < 0 Enter Short or Do nothing

    Any way around this?
    Thanks In advance for your help.

    Attached Files

    #2
    Hello benwinckelmans,

    Thank you for your post.

    Have you added the secondary bar series to your strategy? Have you looked into or implemented multiple time frames (multiple Renkos in this case) to your strategy?

    For information on multiple instruments and time frames in your code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm

    You can view a sample of multiple time frames by going to Tools > Edit NinjaScript > Strategy > SampleMultiTimeFrame > OK.

    Please let me know if I may be of further assistance.
    Patrick H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by manueldecastro, Today, 12:57 AM
    0 responses
    5 views
    0 likes
    Last Post manueldecastro  
    Started by JulieG, Today, 12:40 AM
    0 responses
    5 views
    0 likes
    Last Post JulieG
    by JulieG
     
    Started by jimjoe123, Yesterday, 09:28 PM
    2 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by 12VMan, 08-20-2019, 09:29 AM
    2 responses
    26 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by tgn55, Yesterday, 09:50 PM
    0 responses
    5 views
    0 likes
    Last Post tgn55
    by tgn55
     
    Working...
    X