NexusFi: Find Your Edge


Home Menu

 





Any Ideas of how I get High Low of a Range set by an Indicator


Discussion in NinjaTrader

Updated
    1. trending_up 1,378 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 bundwidower 
london
 
Experience: Advanced
Platform: NinjaTrader, cqg, TT
Trading: futures
Posts: 9 since May 2011
Thanks Given: 2
Thanks Received: 1

Can someone point me in the right direction? I have looked everywhere on BM's and also Ninja Boards and can't find what I am looking for. Can someone either point me in the right direction or give me an idea of how I might be able to achieve the following? Any help would be greatly welcome and put my frustrations to bed (where they should be!)

I want to be able to take the High and the Low Price from a range, made up of a number of bars (could be be 2 or up to around 25). The range is determined by 2 indicators crossing each other at the beginning and then crossing the other way at the end so creating the range. (there is the possibility that it re-crosses only 2 bars later.

I have looked at a number of different ways of possibly doing this. (please excuse my naivety but although I have traded for a number of years, my programming journey is underway but there is still an awfully long way to go !! I have looked at different code, searched the NT boards and their reference samples, looked through the NT Help; nosed around everywhere possible in BM's, watching quite a few of the webinars and I have even considered looking down the back of the sofa !

Range, HiLo, BarsPeriod, FirstBarOfSession, High, HighestBar, Minimum, Maximum all seem to have Bar Lookbacks but no indication (pun not intended) that I can use a range to determine the range.

Big Mike quotes that "with NT it is possible to get a rocket into space if you wanted to " so I know it is possible. But could someone just point my Rocket in the right direction .

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Radarscreen
TradeStation
MC Advanced Simulated Trading.
MultiCharts
Help re translation of ninjascript to EL
NinjaTrader
Brendt Skorupinsky
Trading Reviews and Vendors
Elite Trader Funding, Avoid?
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
74 thanks
HumbleTraders next chapter
51 thanks
Winning attitudes create winning traders
39 thanks
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Topstep experience and review
33 thanks
  #2 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,402


bundwidower View Post
Can someone point me in the right direction? I have looked everywhere on BM's and also Ninja Boards and can't find what I am looking for. Can someone either point me in the right direction or give me an idea of how I might be able to achieve the following? Any help would be greatly welcome and put my frustrations to bed (where they should be!)

I want to be able to take the High and the Low Price from a range, made up of a number of bars (could be be 2 or up to around 25). The range is determined by 2 indicators crossing each other at the beginning and then crossing the other way at the end so creating the range. (there is the possibility that it re-crosses only 2 bars later.

I have looked at a number of different ways of possibly doing this. (please excuse my naivety but although I have traded for a number of years, my programming journey is underway but there is still an awfully long way to go !! I have looked at different code, searched the NT boards and their reference samples, looked through the NT Help; nosed around everywhere possible in BM's, watching quite a few of the webinars and I have even considered looking down the back of the sofa !

Range, HiLo, BarsPeriod, FirstBarOfSession, High, HighestBar, Minimum, Maximum all seem to have Bar Lookbacks but no indication (pun not intended) that I can use a range to determine the range.

Big Mike quotes that "with NT it is possible to get a rocket into space if you wanted to " so I know it is possible. But could someone just point my Rocket in the right direction .


It would seem that you simply want to trigger on a moving average crossover, count (record the bar numbers) the subsequent bars until the moving averages cross again then simply evaluate the bars.

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
Thanked by:
  #3 (permalink)
 bundwidower 
london
 
Experience: Advanced
Platform: NinjaTrader, cqg, TT
Trading: futures
Posts: 9 since May 2011
Thanks Given: 2
Thanks Received: 1



Tasker_182 View Post
It would seem that you simply want to trigger on a moving average crossover, count (record the bar numbers) the subsequent bars until the moving averages cross again then simply evaluate the bars.

Thanks Tasker. I will give that a go.

I feel a bit stupid asking as it is probably very obvious to others but I really couldn't get my head around it despite giving it a lot of thought. I guess it is the only way to learn.

Will let you know how I get on .....don't hold your breath though !!

Started this thread Reply With Quote
  #4 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,402


bundwidower View Post
Thanks Tasker. I will give that a go.

I feel a bit stupid asking as it is probably very obvious to others but I really couldn't get my head around it despite giving it a lot of thought. I guess it is the only way to learn.

Will let you know how I get on .....don't hold your breath though !!

It's not obvious if you've not done it before and sometimes getting a fresh perspective helps.

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote




Last Updated on February 10, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts