NexusFi: Find Your Edge


Home Menu

 





Powerlangage and Currentbar


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two cs84044 with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 Laurent with 1 posts (0 thanks)
    1. trending_up 4,849 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Laurent's Avatar
 Laurent 
France
 
Experience: Advanced
Platform: MC, MetaTrader
Trading: Stocks, Turbos, FX
Posts: 36 since Nov 2010
Thanks Given: 13
Thanks Received: 8

In several studies of MultiCharts,
There is the following condition: Currentbar > number (1, 2, 3 in most of the cases)

Here is an example in the RSI LE
condition1 = Currentbar > 1 and var0 crosses over OverSold ;

There is no such condition in a lot of other signals...
So I do not understand the point to add a such condition. It works with and without the condition with a short period (1). I'm sure i'm missing something...

So why add a such condition? Is it really interesting? If yes? How to know the number of bar to specify


Started this thread Reply With Quote

 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,603


In NinjaTrader you have to check the CurrentBar count if you are looking at a indexed DataSeries value, because it will throw an exception if you make a request for an index that doesn't exist yet.

In MultiCharts as far as I know, it will not throw an exception under the same conditions, so my best guess would be just so that the first plot is 'accurate', or possibly to avoid a division by zero issue which will cause an exception in MultiCharts.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 cs84044 
Taiwan
 
Experience: Intermediate
Platform: MultiCharts
Trading: EUR/USD
Posts: 3 since Feb 2011
Thanks Given: 0
Thanks Received: 1

thx for your experience ~~


Reply With Quote




Last Updated on March 12, 2011


© 2026 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 - Downloads - Top
no new posts