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
Does NinjaScript process Core Indicators Different From 3rd Party Indicators?
Collapse
X
-
Harry, Thanks for responding. Your suggestion is just what I needed and everything works as expected. I put the indicator back in the folder. Thanks for the heads up on that.
As I've said, I'm very glad that I joined you guys as a member. Your work on the tools/indicators is VERY useful both from a standpoint of enhanced functionality AND from a heuristic standpoint of seeing what the best NT coding practices look like. Now, get to work on coding strategies. I'd gladly pay for anything that you do there.
Kindest regards to a smart and giving guy.
D
-
If you have questions regarding our "ama"-indicators, please contact me via a private message or contact LizardIndicators support. I will answer your questions.
All "ama"-indicators are using a separate namespace "NinjaTrader.NinjaScript.Indicators.LizardIndi cato rs".
When you call the amaEHMA, you need to add a line to the "Using directions":
Code:using NinjaTrader.NinjaScript.Indicators.LizardIndicators;
In that case the indicator will no longer appear in the LizardIndicators folder, and other scripts calling the indicator may stop working.Last edited by Harry; 04-03-2019, 01:31 AM.
Leave a comment:
-
Jesse and Chelsea, A question Chelsea asked got me wondering so I move the indicator from the LizardIndicator folder and put it down with all the other indicators and recompiled it. That did the trick. So the question I have is, if an indicator is contained in a folder and you want to call it, what's the syntax for doing that?
Leave a comment:
-
Chelsea thanks for responding. I downloaded the zip file from his site and then imported the zip file into NT8. When I look at the indicators that are available to me, there is a Folder called Lizardindicators that contain all of his indicators. Hmm, Does it mak any difference that his indicators are in a folder? Do I have to call the indicator in a different way if it's in a folder?
Leave a comment:
-
Thanks Jesse.
There is a bundle of indicators from LizardIndicators. These indicators were developed by NT User Harry. I paid a fee to get access to his tools - They're very good. Harry has made many contributions on the forum, but I don't know if you guys have access from him. Is there a way that I can help out?
D
Leave a comment:
-
Hello dmking,
No, system indicators are not called different than custom indicators.
Are you certain the custom indicator is in the Indicators namespace?
Attached is an example of a custom indicator called in a strategy.Attached Files
Leave a comment:
-
Hello dmking,
You should be able to call most custom indicators in the same way as system indicators however it will depend on how the item was developed. Is an indicator which is available for free download so that I could test? The syntax to call this indicator may just be different than what you have used.
I look forward to being of further assistance.
Leave a comment:
-
Does NinjaScript process Core Indicators Different From 3rd Party Indicators?
I'm not sure that I phrased the question propely, but I'm experimenting with some NS and ran into a problem. If I'm using a Moving Average in a Script, I can write
Code:private SMA smaFast;
Code:private amaEHMA amaehmaFast
'NinjaTrader.NinjaScript.Strategies.Strategy.amaEH MA(int)' is a 'method' but is used like a 'type'
Here's more of a snippet. The offending code is line 44 "private amaEHMA amaehmaFast;"
Code:public class LMACross : Strategy { ///private HMA hmaFast; private HMA hmaSlow; private amaEHMA amaehmaFast; protected override void OnStateChange() { if (State == State.SetDefaults) { Description = NinjaTrader.Custom.Resource.NinjaScriptStrategyDescriptionSampleMACrossOver; Name = "LMACross"; Fast = 8; Slow = 21; //Adj = 13; // This strategy has been designed to take advantage of performance gains in Strategy Analyzer optimizations // See the Help Guide for additional information IsInstantiatedOnEachOptimizationIteration = false; } else if (State == State.DataLoaded) { amaehmaFast = amaEHMA(Fast); hmaSlow = HMA(Slow); //hmaFast = HMA(Fast); amaehmaFast.Plots[0].Brush = Brushes.Red; hmaSlow.Plots[0].Brush = Brushes.Cyan; //AMAehmaAdj.Plots[0].Brush = Brushes.Yellow; AddChartIndicator(amaehmaFast); AddChartIndicator(hmaSlow); // AddChartIndicator(hmaFast); } }
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
238 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
4 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM |
Leave a comment: