Thanks.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Custom DataSeries EMA
Collapse
X
-
Hi eleven,
Are you getting any errors in the Log tab of the Control Center when applying the indicator?
If no, let's start from the top...
1. Can you clarify "not working"? Does it not plot at all? Different than expected? Something else?
2. How are you setting this up? Can you provide a code snippet?TimNinjaTrader Customer Service
-
Tim,
I am getting the following error in the log. It states "Error on setting indicator plot for indicator....Value outside of valid range".
Can you point me in the right direction on this? A snippet of code is below. I cannot plot "var2".
Code:double var1 = (StdDev(Close,Period)[0]-SMA(Close,Period)[0])/StdDev(Close,Period)[0]; Value.Set(var1); double var2 = EMA(Value,Smooth)[0];
Comment
-
It looks like you are going to need an escape statement.
Code:if (CurrentBar < Period + 1) return;
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, 02-11-2023, 05:43 PM
|
3 responses
234 views
0 likes
|
Last Post
by rhubear
Today, 10:46 AM
|
||
Started by frslvr, 04-11-2024, 07:26 AM
|
8 responses
112 views
1 like
|
Last Post Today, 10:30 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
10 responses
44 views
0 likes
|
Last Post
by stafe
Today, 10:29 AM
|
||
Started by rocketman7, Today, 09:41 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 10:07 AM | ||
Started by traderqz, Today, 09:44 AM
|
2 responses
10 views
0 likes
|
Last Post Today, 10:00 AM |
Comment