NexusFi: Find Your Edge


Home Menu

 





Excel Help with calculating averages with custom input


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one RM99 with 8 posts (1 thanks)
    2. looks_two vegasfoster with 4 posts (4 thanks)
    3. looks_3 DAYTRADERPROFESIONAL with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,026 views
    2. thumb_up 6 thanks given
    3. group 3 followers
    1. forum 15 posts
    2. attach_file 2 attachments




 
Search this Thread

Excel Help with calculating averages with custom input

  #11 (permalink)
 DAYTRADERPROFESIONAL 
Catalunya Spain
 
Experience: Advanced
Platform: ninja trader, ofav6, investor RT
Broker: Amp/cqg, mirus/zen-fire, dtn iqfeed
Trading: ES
Posts: 72 since Sep 2010

Hi,

I have been working in somenthing similar, but i have the same problem for change the sma. I post a file for someone can help.

Thanks

RM99 View Post
Not sure why the row and column markers didn't come through, but the status bar is hilighted on cell B5 (the first value in the 2nd Column...column B).

I've scratched my head, because I can see the IF (logic) operator and I'm pretty sure I'm understanding the convention logic...it's saying..."IF the value is null, then output "" (blank)" if the value is not null, then output the average of ......Column A, then it calculates the start row, and the end row.

But I can't even reverse engineer where it's getting the value. I've tried to see if it's averaging the wrong set of values, if it's cutting the average sample short, or adding extra...etc.

I'm really scratching my head.......but the convention is working swimmingly, if I put 20 into the input cell, it begins populating values at B20 (and leaves B1 through B19 blank) it's just giving me the wrong output values.


Attached Files
Elite Membership required to download: equity recorder.xls
Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
 
  #12 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704

Figured it out.

Instead of a comma, the average function should be separated by a colon.......

Thanks for your help, it's working perfectly now. I transposed it wrong and used a comma instead of a colon and just my luck, it didn't give me an error.

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704


Not that you haven't helped enough already,

But I'd like to do a second average of the average to smooth out the MA.

So I'm adding a second input cell (next to the 1st iteration).

It's working, but it's averaging the null values from the first row (essentially, if I use a 20 MA and then try to calculate a 20 MA of that MA, it's spitting out values at row 20 and using the first 19 null values from the MA column).

How can I modify the IF statement to exclude the null values from the previous column?

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Started this thread Reply With Quote
  #14 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


RM99 View Post
Not that you haven't helped enough already,

But I'd like to do a second average of the average to smooth out the MA.

So I'm adding a second input cell (next to the 1st iteration).

It's working, but it's averaging the null values from the first row (essentially, if I use a 20 MA and then try to calculate a 20 MA of that MA, it's spitting out values at row 20 and using the first 19 null values from the MA column).

How can I modify the IF statement to exclude the null values from the previous column?

=If(Row(B1) < $G$1*2-1, "", IF(ISERROR(AVERAGE(INDIRECT(("B"&ROW(B1)-$G$1+1)):B1)), "Null",AVERAGE(INDIRECT(("B"&ROW(B1)-$G$1+1)):B1)))

Reply With Quote
  #15 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


DAYTRADERPROFESIONAL View Post
Hi,

I have been working in somenthing similar, but i have the same problem for change the sma. I post a file for someone can help.

Thanks

Did you get it working?

Reply With Quote
  #16 (permalink)
 DAYTRADERPROFESIONAL 
Catalunya Spain
 
Experience: Advanced
Platform: ninja trader, ofav6, investor RT
Broker: Amp/cqg, mirus/zen-fire, dtn iqfeed
Trading: ES
Posts: 72 since Sep 2010

Hi vegasfoster,

i'm trying but without success. When i apply the formula i have and error. i'm lost.

Thank's


vegasfoster View Post
Did you get it working?


Visit my NexusFi Trade Journal Reply With Quote




Last Updated on July 31, 2012


© 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