API Support Forum
OEC API > API Support > Tasker auto checked "Create New Area" for my Custom Indicator
Author Topic: Tasker auto checked "Create New Area" for my Custom Indicator
(3 messages, Page 1 of 1)
Moderators: VPfau
UYankovitz9029
Posts: 5
Joined: Oct 27, 2016


Posted: Oct 27, 2016 @ 09:11 AM             Msg. 1 of 3
Hi experts.

While writing a custom indicator C# , is it possible to programmatic make the "Create New Area" be checked by default ?

Thank's
NShine
Posts: 36
Joined:


Posted: Oct 31, 2016 @ 10:50 AM             Msg. 2 of 3
Hello

Yes, you can do this. The sample C# code in our Indicator guide (https://gainfutures.com/wp-content/uploads/CustomIndicators.pdf) has this behavior. Take a look at the TimeSeries attribute in the SNI class.

[TimeSeries("NET Indicator", "SNI", "Samples", AreaScale.Free, SourceScale=AreaScale.Stock)]

If you use AreaScale.Free or AreaScale.Percent then the "Create New Area" will be checked by default.
UYankovitz9029
Posts: 5
Joined: Oct 27, 2016


Posted: Nov 01, 2016 @ 02:55 AM             Msg. 3 of 3
Thanks !!! you really helped me !!!