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 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-12-2007, 07:23 AM   #1
Creamers
Member
 
Join Date: Dec 2004
Location: , ,
Posts: 68
Thanks: 4
Thanked 3 times in 1 post
Post imported post

What's wrong with this?: It plots nothing as soon as I use those double values.

double slobenow=(EMA(MyInput0)[0])-(EMA(MyInput0)[1]);

double slobe=(EMA(MyInput0)[1])-(EMA(MyInput0)[2]);

if (slobe<0) { slobe=slobe*-1; }

if (slobenow<0) { slobenow=slobenow*-1; }

if (slobe > slobenow )

{

Plot0.Set(
1);

}

else

{

Plot0.Set(-
1);

}
Creamers is offline  
Reply With Quote
 

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


All times are GMT -6. The time now is 03:18 PM.