NexusFi: Find Your Edge


Home Menu

 





Powerlangage and Currentbar


Discussion in EasyLanguage Programming

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




 
Search this Thread

Powerlangage and Currentbar

  #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

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662


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 Twitter 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


© 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