Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time Frame TriggerLine Indicator

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

  • NinjaTrader_ChelseaB
    replied
    Hello aprilfool,

    I see your inquiry is directed at Taddypole.

    I just want to say welcome to the NinjaTrader forums!

    Leave a comment:


  • aprilfool
    replied
    Taddypole - Are you willing to share your code?
    Last edited by aprilfool; 11-14-2020, 05:24 PM.

    Leave a comment:


  • Taddypole
    replied
    Never mind....

    Figured it out.. !!!!


    regards,
    taddypole...
    Attached Files

    Leave a comment:


  • Taddypole
    replied
    I’m making progress on plotting trigger lines on higher time frame bars using UniRenko type bars but its still not working.

    I’m using “Add(PeriodType.Custom5,002015009) which creates a HTF bar of trend size of 2, a reversal bar of 15 and a brick size of 9.

    Then when in BarsInProgress == 1, I try to calculate the “LargeLinRegCurve” but I’m not getting good results. See attached chart picture.

    Can someone tell me what I’m doing wrong?

    regards,
    taddpole…
    Attached Files

    Leave a comment:


  • Taddypole
    replied
    Thank you Zachary,

    That helps...

    regards,
    taddypole...

    Leave a comment:


  • NinjaTrader_ZacharyG
    replied
    Hello Taddypole,

    I am not clear.

    You cannot pass a single close price to the input parameter of an indicator method. This parameter accepts an IDataSeries, which is what BarsArray[1] is.

    If you just want to set the close price of your secondary series to your LargeLinRegCurve DataSeries, you will need to use the syntax I have provided in my initial reply.

    Example:

    Code:
    LargeLinRegCurve.Set(Closes[1][0]);
    Originally posted by NinjaTrader_ZacharyG View Post
    Hello Taddypole,

    Thank you for writing in.

    You will need to use Closes if you are trying to refer to another series' close value.

    Code:
    Closes[1][0]
    For more information about Closes, please take a look at the help guide at this link: https://ninjatrader.com/support/help...t7/?closes.htm
    If you are wanting to set your LargeLinRegCurve DataSeries to the current LinReg value based on your secondary series as its input series, you'll want to do the following below:

    Code:
    LargeLinRegCurve.Set(LinReg(BarsArray[1], lrgLength)[0]);
    Last edited by NinjaTrader_ZacharyG; 04-09-2016, 08:53 AM.

    Leave a comment:


  • Taddypole
    replied
    Thanks Zachary,

    Does BarsArray[1] then provide the Closing price which is what I desire?

    regards,
    taddypole...

    Leave a comment:


  • NinjaTrader_ZacharyG
    replied
    Hello Taddypole,

    For use as an indicator input, yes, you will want to use BarsArray[1].

    Indicators accept DataSeries as an input, not a double value.

    Please, let us know if we may be of further assistance.
    Last edited by NinjaTrader_ZacharyG; 04-09-2016, 08:38 AM.

    Leave a comment:


  • Taddypole
    replied
    I think I found my answer.
    I need to use the "BarsArray[1]" as an input to my indicator. Since the indicator needs the closing price, does BarsArry1 provide the close to the indicator input?

    i.e. -

    LargeLinRegCurve.Set(LinReg(BarsArray[1],lrgLength)[0]);

    regards,
    taddypole...

    Leave a comment:


  • NinjaTrader_ZacharyG
    replied
    Hello Taddypole,

    Thank you for writing in.

    You will need to use Closes if you are trying to refer to another series' close value.

    Code:
    Closes[1][0]
    For more information about Closes, please take a look at the help guide at this link: https://ninjatrader.com/support/help...t7/?closes.htm

    Leave a comment:


  • Taddypole
    started a topic Multi Time Frame TriggerLine Indicator

    Multi Time Frame TriggerLine Indicator

    I'm trying to develop a Multi Time Frame TriggerLine indicator. Refer to the attachments.

    Showing is a 5 tick NexGen Renko bar. As shown in the attachment, the channels above and below are the 8 tick bar channels.

    What I'm having problems with are the TriggerLines. Currently they are showing the 5 tick bar calculations. I read the indexing discussion on higher time frame bars, but when I try to apply that indexing, I get an error.

    Can anyone show me how to apply the higher time frame 8 tick bars as an input to the LinearRegression plots?

    regards,
    taddypole...
    Attached Files

Latest Posts

Collapse

Topics Statistics Last Post
Started by Tuxstuff215, Today, 06:32 AM
1 response
11 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by carlot, Today, 08:10 AM
0 responses
4 views
0 likes
Last Post carlot
by carlot
 
Started by KirkHammett, Yesterday, 11:15 PM
1 response
13 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by soon123, Yesterday, 11:12 PM
1 response
7 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by Unsuitable, Yesterday, 06:30 PM
1 response
11 views
0 likes
Last Post NinjaTrader_ChrisL  
Working...
X