Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Why Can I not declare a simple KAMA indicator in my script?
Collapse
X
-
-
Hello agclub,
Both values you are trying to use are doubles and not series. Using KAMA1[0] gets a specific value from the series, that is a single number. GetCurrentBid() also returns a single number. To use the Cross methods you need at least 1 series, you could compare the KAMA in reverse with the bid like the following:
Code:if(CrossBelow(KAMA1, GetCurrentBid(), 1))
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment