NexusFi: Find Your Edge


Home Menu

 





MTF BarsArray and Open [] / Close []


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 3 posts (3 thanks)
    2. looks_two mwamba123 with 2 posts (0 thanks)
    3. looks_3 Tanju23 with 2 posts (0 thanks)
    4. looks_4 pcomm69 with 2 posts (0 thanks)
    1. trending_up 5,398 views
    2. thumb_up 4 thanks given
    3. group 6 followers
    1. forum 11 posts
    2. attach_file 2 attachments




 
Search this Thread

MTF BarsArray and Open [] / Close []

  #1 (permalink)
 
pcomm69's Avatar
 pcomm69 
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

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Are there any eval firms that allow you to sink to your …
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
pcomm69's Avatar
 pcomm69 
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.

Started this thread Reply With Quote
  #4 (permalink)
 
Tanju23's Avatar
 Tanju23 
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????


Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
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,102


Tanju23 View Post
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

Reply With Quote
  #6 (permalink)
 
Tanju23's Avatar
 Tanju23 
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.

Reply With Quote
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
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,102


Tanju23 View Post
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

Reply With Quote
  #8 (permalink)
 mwamba123 
russia
 
Posts: 9 since Mar 2015


Fat Tails View Post
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
Reply With Quote
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
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,102


mwamba123 View Post
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.

Reply With Quote
  #10 (permalink)
 mwamba123 
russia
 
Posts: 9 since Mar 2015



Fat Tails View Post
Not so easy to do it correctly. Would take too much time.

could you please look at it
prety please

Reply With Quote




Last Updated on March 28, 2015


© 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