NexusFi: Find Your Edge


Home Menu

 





What's wrong with my SUM logic?


Discussion in NinjaTrader

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




 
Search this Thread

What's wrong with my SUM logic?

  #1 (permalink)
 
gordo's Avatar
 gordo 
Tonganoxie, Kansas
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: CL,6E
Posts: 160 since Nov 2009
Thanks Given: 129
Thanks Received: 401

I am trying desperately to replace the SUM call in my program but don't get the right answer. Any ideas?

Logic that works:
noise = SUM(diffSeries, Period)[0];

Logic that does not work:
noise = diffSeries[0] + noise - diffSeries[Period];

The program has an if statement ahead of the 'noise' statement that ensures CurrentBar is greater than Period. That's not the issue. I just get a different (larger) value for noise with my logic without using the SUM routine.

Thanks for the help!
G

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnĀ“t know anyth …
Psychology and Money Management
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 




Last Updated on July 18, 2010


© 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