• 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 aligator, Today, 08:20 AM
    0 responses
    4 views
    0 likes
    Last Post aligator  
    Started by 7robert, Today, 08:11 AM
    0 responses
    8 views
    0 likes
    Last Post 7robert
    by 7robert
     
    Started by lordvader34, Today, 07:07 AM
    2 responses
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by aslane, Today, 07:01 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by frankduc, Today, 06:56 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X