Hello,
I developed an indicator that draws in a sub chart several text objects:
example:
ChartPoint bottom = new ChartPoint(start_date, -0.8 )
ITextObject textObj = DrwText.Create(bottom, "A",true )
When I remove the indicator from the chart all text objects are removed too!!.
I would like to preserve the drawn objects.
This does not work:
protected override void Destroy(){
}
Any suggestion?
TX
Removing an indicator remove drawn objects [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Removing an indicator remove drawn objects
Hello gbulle,
In MultiCharts please go to File->Preferences->Charting->enable the option “Do not delete drawings created by a study if a study is deleted”.
In MultiCharts please go to File->Preferences->Charting->enable the option “Do not delete drawings created by a study if a study is deleted”.
Re: Removing an indicator remove drawn objects
Thank you very much.
I did what you said checking the checkbox but the objects still disappear when removing the indicator; the same if i uncheck.
I repeated the process twice to be sure!!
Attached my simple test indicator: it draws a letter in a subchart in correspondence of a date
plus x days.
And, if possible, how to do the same using the code?
Thanks
I did what you said checking the checkbox but the objects still disappear when removing the indicator; the same if i uncheck.
I repeated the process twice to be sure!!
Attached my simple test indicator: it draws a letter in a subchart in correspondence of a date
plus x days.
And, if possible, how to do the same using the code?
Thanks
- Attachments
-
- MyCycle.pln
- (2.64 KiB) Downloaded 400 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Removing an indicator remove drawn objects [SOLVED]
gbulle, you need to place drawings on the instrument's series, not on the indicator subchart.