Equity for No-Longer-Present Strategies  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 34 times

Equity for No-Longer-Present Strategies

Postby MC_Prog » 24 Feb 2013

In MC 8.5 Release, I am observing that if I remove all the strategies from a chart (that had trades) the report of equity (i.e. I_OpenEquity, I_ClosedEquity) remains as it was, failing to reflect that no strategies are any longer applied.

Here is the code I use:

Code: Select all

{
Indicator: Strat Equity Color

}

inputs:
ShowOpenEquity(1),
ShowClosedEquity(1);

if ShowOpenEquity = 1 then begin
if I_OpenEquity >= 0 then
Plot1( I_OpenEquity, "OpenEquity", Green )
else
Plot1( I_OpenEquity, "OpenEquity", Red ) ;
end;

if ShowClosedEquity = 1 then begin
if I_ClosedEquity = 0 then
Plot2( I_ClosedEquity, "ClosedEquity", DarkGreen )
else if I_ClosedEquity > 0 then
Plot2( I_ClosedEquity, "ClosedEquity", DarkGreen )
else
Plot2( I_ClosedEquity, "ClosedEquity", DarkRed ) ;
end;

Plot3( 0, "ZeroLine", DarkGray ) ;
The "phantom " equity persists even after all the data in the chart is reloaded.

BTW, this is a brand new problem which I have never observed in any prior version of MC.

User avatar
Henry MultiСharts
Posts: 9132
Joined: 25 Aug 2011
Has thanked: 1260 times
Been thanked: 2929 times

Re: Equity for No-Longer-Present Strategies

Postby Henry MultiСharts » 25 Feb 2013

Hello MC_Prog,

This issue has been confirmed. It will be fixed in the next version of MultiCharts.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 34 times

Re: Equity for No-Longer-Present Strategies

Postby MC_Prog » 25 Feb 2013

While this is being visited, if there is any chance of adding a button, or a hotkey (e.g. Ctrl-D for "Draw") that would allow the user to instruct MC to redaw all the studies on a chart, that would be very helpful.

Note the difference between redraw the studies, and reload the data.

IOW, the idea is to have the same effect as if the user went into the Format Indicators dialog and turned each active study OFF then back ON (only it's all to be done with one action by the user, and without having to open any dialogs).

User avatar
Henry MultiСharts
Posts: 9132
Joined: 25 Aug 2011
Has thanked: 1260 times
Been thanked: 2929 times

Re: Equity for No-Longer-Present Strategies

Postby Henry MultiСharts » 27 Feb 2013

While this is being visited, if there is any chance of adding a button, or a hotkey (e.g. Ctrl-D for "Draw") that would allow the user to instruct MC to redaw all the studies on a chart, that would be very helpful.

Note the difference between redraw the studies, and reload the data.

IOW, the idea is to have the same effect as if the user went into the Format Indicators dialog and turned each active study OFF then back ON (only it's all to be done with one action by the user, and without having to open any dialogs).
We will have this functionality added in MultiCharts 9.

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 34 times

Re: Equity for No-Longer-Present Strategies

Postby MC_Prog » 27 Feb 2013

While this is being visited, if there is any chance of adding a button, or a hotkey (e.g. Ctrl-D for "Draw") that would allow the user to instruct MC to redaw all the studies on a chart, that would be very helpful.

Note the difference between redraw the studies, and reload the data.

IOW, the idea is to have the same effect as if the user went into the Format Indicators dialog and turned each active study OFF then back ON (only it's all to be done with one action by the user, and without having to open any dialogs).
We will have this functionality added in MultiCharts 9.
Excellent. Thanks!

User avatar
Henry MultiСharts
Posts: 9132
Joined: 25 Aug 2011
Has thanked: 1260 times
Been thanked: 2929 times

Re: Equity for No-Longer-Present Strategies

Postby Henry MultiСharts » 01 Mar 2013

In MC 8.5 Release, I am observing that if I remove all the strategies from a chart (that had trades) the report of equity (i.e. I_OpenEquity, I_ClosedEquity) remains as it was, failing to reflect that no strategies are any longer applied.
This issue has been fixed in the updated build of MultiCharts 8.5 Release.
Go to download page

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 34 times

Re: Equity for No-Longer-Present Strategies

Postby MC_Prog » 04 Mar 2013

On my first observation, this did appear fixed, but it did not take very long to realize that it is actually not fixed.

IOW, the problem came back.

I am currently looking at a chart with no Signals, but still showing an equity curve. (see pic)

Then, if I turn the curve off and back on it does flatline.

I also observed a 24 second delay this morning between clock time and the start of a new bar.

I wonder if "events" are not being processed under-the-hood as they should be?
Attachments
NoStratStillHasCurve.png
(80.52 KiB) Downloaded 1504 times

User avatar
Henry MultiСharts
Posts: 9132
Joined: 25 Aug 2011
Has thanked: 1260 times
Been thanked: 2929 times

Re: Equity for No-Longer-Present Strategies

Postby Henry MultiСharts » 05 Mar 2013

On my first observation, this did appear fixed, but it did not take very long to realize that it is actually not fixed.

IOW, the problem came back.

I am currently looking at a chart with no Signals, but still showing an equity curve. (see pic)

Then, if I turn the curve off and back on it does flatline.

I also observed a 24 second delay this morning between clock time and the start of a new bar.

I wonder if "events" are not being processed under-the-hood as they should be?
Confirmed, the issue has been reopened.

User avatar
Henry MultiСharts
Posts: 9132
Joined: 25 Aug 2011
Has thanked: 1260 times
Been thanked: 2929 times

Re: Equity for No-Longer-Present Strategies  [SOLVED]

Postby Henry MultiСharts » 22 Mar 2013

Our developers have fixed this issue in MultiCharts 8.5 Release build 6850/6851.


Return to “MultiCharts”