NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-17-2011, 12:10 PM   #1
jhill
Member
 
Join Date: Jul 2009
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default making direct calls

Hello,

I’m making direct calls from a Strategy to an Indicator ( AaZlemaVma(14,9,6) ) using the following statement:

ZV_Vma1 = AaZlemaVma(14,9,6).Vma[1];

This returns the Y coordinate used in plotting the Indicator.

Is there was a way to declare some type of variable in the Strategy for the indicator “AaZlemaVma(14,9,6)” and use that variable instead of “AaZlemaVma(14,9,6)” in the statement?

Thanks for your help,

jhill
jhill is offline  
Reply With Quote
Old 08-17-2011, 01:12 PM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the note.

The only supported way to do this is below.

Let me know if I can be of further assistance.

Exposing indicator values that are not plots
NinjaTrader_Brett is offline  
Reply With Quote
Old 08-17-2011, 02:02 PM   #3
jhill
Member
 
Join Date: Jul 2009
Posts: 41
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Brett for your info and time.

jhill
jhill is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DLL calls CTAtrader General Programming 1 08-10-2011 02:09 AM
Indicator that calls itself Picita Indicator Development 4 08-02-2011 01:07 PM
DLL calls binwang2 General Programming 15 03-15-2011 07:36 AM
Sub minute calls to OnBarUpdate() mtthwbrnd Strategy Analyzer 2 04-17-2010 04:44 AM
DLL calls, async or synch? davewolfs General Programming 3 12-21-2009 06:11 AM


All times are GMT -6. The time now is 01:44 PM.