NexusFi: Find Your Edge


Home Menu

 





What's wrong with my SUM logic?


Discussion in NinjaTrader

Updated
    1. trending_up 2,121 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?
Quantum physics & Trading dynamics
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
Footprint for strategy Builder
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
68 thanks
Spoo-nalysis ES e-mini futures S&P 500
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Trading with Intuition
15 thanks




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