|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
How to get the period of the main chart please ? |
[UlawunFX]
|
Post subject: How to get the period of the main chart please ? |
Post rating: 0
|
Posted: Mon 16 May, 2011, 09:22
|
|
User rating: 0
Joined: Mon 16 May, 2011, 09:11 Posts: 2
|
Hi Forum,
I want my indicator to read the period of the chart, where it is connected to. I.e. if the user is changing the period of the chart, the indicator can read the new period and react on it.
Thanks a lot Ulawun
|
|
|
|
 |
API Support
|
Post subject: Re: How to get the period of the main chart please ? |
Post rating: 0
|
Posted: Mon 16 May, 2011, 09:36
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
[UlawunFX]
|
Post subject: Re: How to get the period of the main chart please ? |
Post rating: 0
|
Posted: Mon 16 May, 2011, 09:48
|
|
User rating: 0
Joined: Mon 16 May, 2011, 09:11 Posts: 2
|
Thanks Support.
I only tried IIndicatorContext.getPeriod() in onStart method. There the return value is null.
Now i tried IIndicatorContext.getPeriod() in calculate method. It works.
Thanks again Ulawun
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|