Longest Flat Period - where is it?

Questions about MultiCharts and user contributed studies.
rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Longest Flat Period - where is it?

Postby rkhan » 29 May 2014

Hello Team,

I am looking for the "Longest Flat Period"
So after i create my strategy and backtest it, there are some great statistics available, but i cannot seem to find "Longest Flat Period" which is extremely important to me.

Is this value available in MC?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Longest Flat Period - where is it?

Postby Andrew MultiCharts » 30 May 2014

Hello rkhan,

It should be available in Strategy Performance Report on Time Analysis tab.

rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Re: Longest Flat Period - where is it?

Postby rkhan » 30 May 2014

Ahh yes,

Thankyou i found that.

But actually what i want is something which is "Longest Period before equity new highs"

So i want to know what is the longest period it can take for a new equity high to be created
So maybe i started the system today, and the system goes down, and it take 50 days to go back up to new equity highs.

Does this exist?

User avatar
furytrader
Posts: 354
Joined: 30 Jul 2010
Location: Chicago, IL
Has thanked: 155 times
Been thanked: 217 times

Re: Longest Flat Period - where is it?

Postby furytrader » 30 May 2014

That metric may not appear on the performance report, but couldn't you measure that by simply analyzing, for each bar, your net profit + openprofit and counting the bars between new high values, and then, on the last bar, printing out the highest value for that?

rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Re: Longest Flat Period - where is it?

Postby rkhan » 30 May 2014

Dear Sir,

net profit + open profit will give your current nett profit, thats it.
if we then count the bars with new highs, that doesnt mean anything, because what if the system is all about shorting, what if new high bars don't add to the profit, simply because of the strategy used.

What your say may work, would you like to share some code and i could test.

I really think this needs to be part of the reports though, its such an important metric

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Longest Flat Period - where is it?

Postby Andrew MultiCharts » 02 Jun 2014

rkhan,

You can develop a code that would calculate the NetProfit + OpenPositionProfit and count days/bars before the next higher value of the NetProfit + OpenPositionProfit is calculated.

Please leave us such feature request if you would like to have that in report: https://www.multicharts.com/pm


Return to “MultiCharts”