Formulas for trading analysis needed

fxmasterind

New Member
Joined
Apr 18, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Dear community,

I have a few formulas that I cannot solve on my own and would need your help. Attached a picture

Winrate: I would need to calculate M7 - M120 (all positive and negative values) to find out the winrate.

Average win: I believe I need to use a formula average or average if select M7:M120 and then put a criteria ;">0".

Average loss: Vice versa to average win

Winning streak: Should calculate the winning trades in a row based on the Profit /Loss in M

Loosing streak: Same but only the loosing streak in a row

Looking forward to hear from you and thank you for your help.

Thank you.

Best,
fxmasterind
 

Attachments

  • Win and loss.JPG
    Win and loss.JPG
    149 KB · Views: 13

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
For Winning strreak I tried the following but it is not working

=MAX(FREQUENCY(IF(M7:M130;">0";ROW(M7:M130));IF(M7:M130;"<=0";ROW(M7:M130))))
 
Upvote 0
You can use the Averageif function for the two averages.
 
Upvote 0
You can use the Averageif function for the two averages.
Hi @Fluff, thanks solved that with:

=AVERAGEIF(L7:L130;">=0")
and
==AVERAGEIF(L7:L130;"<=0")

Any Idea what I can do on the winning and loosing streak formula?

The winning streak formula is: =MAX(FREQUENCY(IF(M7:M130;">0";ROW(M7:M130));IF(M7:M130;"<=0";ROW(M7:M130))))

But something is wrong...
 
Upvote 0
Hi there,

Can someone help me on the formula for the winning and loosing streak. I did the following:

The winning streak formula is: =MAX(FREQUENCY(IF(M7:M130;">0";ROW(M7:M130));IF(M7:M130;"<=0";ROW(M7:M130))))

But something is wrong...

Thanks a lot
 
Upvote 0
It should be
Excel Formula:
=MAX(FREQUENCY(IF(M7:M130>0;ROW(M7:M130));IF(M7:M130<=0;ROW(M7:M130))))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top