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

Higher timeframe displaying on lower timeframe

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

    Higher timeframe displaying on lower timeframe

    Hi,

    as I come from mql, I wonder how to program an indicator in a way that, say I want to display 5 min indicator on 1 min timeframe, the value of the higher timeframe bar is the same on all lower timeframe bars belonging to the higher timeframe, i.e. 5x 1min bars in one 5min bar.

    Right now with the attached code, the indicator is only displayed correctly at calling but from that time on, each bar is drawn differently instead of changing all lower timeframe bars belonging to the higher timeframe.

    So, in short, it seems to be a displaying problem as the right value is called. Any suggestions highly appreciated.


    if (CurrentBars[0] <= BarsRequired || CurrentBars[1] <= BarsRequired) return;

    if (BarsInProgress == 0)
    {
    //call the data from another indicator
    UP.Set(B2CForceIndexSlope(BarsArray[1],period).UP[0]);
    DOWN.Set(B2CForceIndexSlope(BarsArray[1],period).DOWN[0]);
    }

    #2
    claudio_thomas,

    If you could send this indicator along with the B2CForceIndexSlope indicator it would be helpful in solving your issue. If you don't want anyone getting this code from the forum you can send it to Support at Ninjatrader dot com with ATTN : Adam in the message body. We don't publish our users code.

    Right now I don't see anything wrong with your code.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    41 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    8 views
    0 likes
    Last Post port119
    by port119
     
    Started by Philippe56140, Today, 02:35 PM
    0 responses
    7 views
    0 likes
    Last Post Philippe56140  
    Started by 00nevest, Today, 02:27 PM
    0 responses
    8 views
    0 likes
    Last Post 00nevest  
    Working...
    X