Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
MTF BarsArray and Open [] / Close []
Updated March 29, 2015
Top Posters
looks_one
Fat Tails
with 3 posts (3 thanks)
looks_two
mwamba123
with 2 posts (0 thanks)
looks_3
Tanju23
with 2 posts (0 thanks)
looks_4
pcomm69
with 2 posts (0 thanks)
trending_up
5,518 views
thumb_up
4 thanks given
group
6 followers
forum
11 posts
attach_file
2 attachments
MTF BarsArray and Open [] / Close []
May 31st, 2012, 07:18 AM
paris france
Experience: Advanced
Platform: NinjaTrader
Broker: Continuum
Trading: gold & crude light
Posts: 55 since Oct 2011
Thanks Given: 14
Thanks Received: 4
In a Multi Time Frame Strategy
In my memory
BarsArray[1] give acces to the First Bars object Added
BarsArray[2] give acces to the Second Bars object Added
But how can I acces to the Open[0] of the SECOND Bars object Added
because
Open [BarsArray[1],[0]] is illicite
thanks of your help
Pierre
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
May 31st, 2012, 08:18 AM
paris france
Experience: Advanced
Platform: NinjaTrader
Broker: Continuum
Trading: gold & crude light
Posts: 55 since Oct 2011
Thanks Given: 14
Thanks Received: 4
the Answer is :
Opens[1][0] for the Open of the second barsarray, so the first added series.
March 23rd, 2015, 02:10 PM
Riverview Fl
Experience: Intermediate
Platform: Ninja Trader
Broker: Mirus Futures
Trading: ES, TF
Posts: 37 since Dec 2009
Thanks Given: 24
Thanks Received: 4
So for using close of the second series would be
Close[2][1] > Close[2][0]
The comparing the closes of the second series.
???
Any ideas????
March 23rd, 2015, 04:51 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
Tanju23
So for using close of the second series would be
Close[2][1] > Close[2][0]
The comparing the closes of the second series.
???
Any ideas????
The current close of the first bar series would be Closes[0][0].
The current close of the secondary bar series would be Closes[1][0].
If you want to compare the closes of the secondary bars, the syntax would be
Code
if(Closes[1][0] > Closes[1][1])
// if the close of the current secondary bar is greater than the close of the prior secondary bar
March 23rd, 2015, 05:10 PM
Riverview Fl
Experience: Intermediate
Platform: Ninja Trader
Broker: Mirus Futures
Trading: ES, TF
Posts: 37 since Dec 2009
Thanks Given: 24
Thanks Received: 4
so you have to use closes instead of close. that's what my problem was. Thank you Very Very MUCH!!! In your example how would you compare 2 secondary highs? I tried it the way you showed and ninja script came back with errors. Last question I promise.
March 24th, 2015, 11:15 AM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
Tanju23
so you have to use closes instead of close. that's what my problem was. Thank you Very Very MUCH!!! In your example how would you compare 2 secondary highs? I tried it the way you showed and ninja script came back with errors. Last question I promise.
For the secondary highs you would do the comparison in a similar way:
Code
if(Highs[1][0] > Highs[1][1])
// if the close of the current secondary bar is greater than the close of the prior secondary bar
March 26th, 2015, 08:01 PM
russia
Posts: 9 since Mar 2015
Fat Tails
For the secondary highs you would do the comparison in a similar way:
Code
if(Highs[1][0] > Highs[1][1])
// if the close of the current secondary bar is greater than the close of the prior secondary bar
hey fat tails
i know am a newbie here
i just wanted to ask you can help me convert this indicator to am MTF indicator
big thanks in advance
Attached Files
Elite Membership required to download: Spike.zip
March 26th, 2015, 09:39 PM
Berlin, Europe
Market Wizard
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103
mwamba123
hey fat tails
i know am a newbie here
i just wanted to ask you can help me convert this indicator to am MTF indicator
big thanks in advance
Not so easy to do it correctly. Would take too much time.
March 27th, 2015, 07:27 AM
russia
Posts: 9 since Mar 2015
Fat Tails
Not so easy to do it correctly. Would take too much time.
could you please look at it
prety please
Last Updated on March 28, 2015