• 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

Biggest Bar since X weeks / Highest VOL since X weeks Indicator

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

    Biggest Bar since X weeks / Highest VOL since X weeks Indicator

    Hi Community, im new to Ninjatrader and want to have 2 custom indicators.

    The first indicator must show the biggest Bar/Candle since x weeks.

    The second indicator must show the highest VOL since x weeks.


    Can someone please give me tips or can help/show me how i can create these indicators.

    Many thanks
    Hanstanz

    #2
    Hello Hanstanz, thanks for your post, and welcome to the NinjaTrader forum.

    You can use the Max method to find both of these. If by biggest bar your mean the highest high of a series, you would pass in the High series to Max. To find the highest volume over a weekly series, pass in the Volume[] series into Max. If you need to run this indicator over any bar type or time frame, then add a weekly series to the script using AddDataSeries and only use the weekly values. There is an entire guide on multi time frame/ multi-instrument scripts here.

    Best regards.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sdauteuil, Today, 12:16 PM
    0 responses
    4 views
    0 likes
    Last Post sdauteuil  
    Started by asmmbillah, Today, 12:06 PM
    0 responses
    5 views
    0 likes
    Last Post asmmbillah  
    Started by EminiTrader, Today, 11:05 AM
    0 responses
    9 views
    0 likes
    Last Post EminiTrader  
    Started by mtamaku, Today, 10:34 AM
    0 responses
    8 views
    0 likes
    Last Post mtamaku
    by mtamaku
     
    Started by pnamphi, Yesterday, 04:29 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ThomasC  
    Working...
    X