![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
Junior Member
Join Date: Aug 2007
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
I would like to access a parameter value (see picture) in the indicator properties for furher calculations. In this case it's the position of a horizontal line that I would like to pass to a variable.
The line is generated by the wizard and looks like this: Quote:
How can I do that and whats the correct code for it? Delta88 |
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
You could try:
Lines[0].Value Lines[1].Value
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2007
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Ok thanks, that worked.
The only place it worked was when I put it into the OnBarUpdate() section. I first put it into the Initialize() section, which would have been more elegant. There it would only give me the default values of the lines, regardless of what I choose in the properties. But thats Ok too. Delta88 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Line properties | mrlucky1x | Charting | 1 | 08-27-2007 11:44 AM |
| Stategy Properties | Json | Strategy Development | 1 | 04-02-2007 02:08 AM |
| NT6 Chart Trader Properties | guym | SuperDOM and other Order Entry Windows | 3 | 12-14-2006 05:01 AM |
| Unmoveable properties boxes | Antraman | Charting | 2 | 09-15-2006 04:16 PM |
| Basic Entry Properties | scjohn | Miscellaneous Support | 5 | 12-13-2005 06:30 AM |