drawing not persistent  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
kenadian
Posts: 9
Joined: 14 Jan 2014
Has thanked: 5 times
Been thanked: 1 time

drawing not persistent

Postby kenadian » 04 Feb 2014

Hello,
I have a main chart and a subchart, with different resolutions. The objects I draw disapear after the bar is completed and I need them not to(please see the attached movie, after removing the .txt extension). Is this possible in Multicharts NET ? Thank you.
Attachments
playback.m4v.txt
(173.81 KiB) Downloaded 576 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: drawing not persistent  [SOLVED]

Postby Henry MultiСharts » 05 Feb 2014

Hello kenadian,

Are you using an indicator or a signal? Do you use RecoverDrawingsAttribute in your code?

kenadian
Posts: 9
Joined: 14 Jan 2014
Has thanked: 5 times
Been thanked: 1 time

Re: drawing not persistent

Postby kenadian » 05 Feb 2014

Thank you, this fixed my problem. I used it in MC Net as

Code: Select all

namespace PowerLanguage.Indicator
{
[SameAsSymbol(true)]

[RecoverDrawings(false)]


public class _myIndicator : IndicatorObject
{
}

protected override void Create()
{
}

protected override void StartCalc()
{
}

protected override void CalcBar()
{
}

}
}


Return to “MultiCharts .NET”