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
alguien del foro ayuda programar indicador
Collapse
X
-
alguien del foro ayuda programar indicador
Pues eso quisiera utilizar en Ninja un indicador de otra plataforma, pero yo no se programar. espero vuestra ayuda.Gracias y un saludo.
I would like to use in Ninja an indicator from another platform, but I do not know how to program it, I hope your help.Tags: None
-
Hola DiverG20,
Gracias por escribirnos hoy.
Tenemos capacidad limitada para proporcionar soporte de plataforma en español; sin embargo, hemos encontrado que este sitio https://www.deepl.com/es/translator puede traducir el inglés al español con buena calidad. Por favor copie nuestra respuesta y luego navegue al sitio que le colocamos para pegar la respuesta en el cuadro hacia la izquierda.
Indicators used in other platforms would need to be converted to NinjaScript to be able to be used in NinjaTrader. You would need access to the original indicator's code. If you are not a programmer this process can be difficult. We in the support department cannot convert an indicator for you, but if you wish to tackle learning NinjaScript and completing the conversion yourself, we can certainly assist with resources and answer specific questions you may have.
You can also contact one of our professional NinjaScript Consultants or Educators who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like a list of professional NinjaScript Consultants or Educators who would be happy to create or modify any script at your request or assist you in learning NinjaScript.
Lastly, I will leave this thread open in case any of our users are interested in assisting you.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
-
Hola Kate, muchas gracias por la respuesta, me parece bien que mantengas el hilo en el foro por si aparece algun usuario que me pueda ayudar.Lo del contacto con profesionales si te refieres a- https://ninjatraderecosystem.com/sea...mming-services
- ya lo tengo, si tienes otras direcciones mandamelas.Gracias otra vez.
Hi Kate, thank you very much for the answer, I think it's good that you keep the thread in the forum in case some user appears who can help me.The contact with professionals if you refer to
I already have it, if you have other addresses send them to me.Thanks again.
Comment
-
Kate, perdona se me había olvidado. Los gráficos de marca (ticks) solo grafican cuando están abiertos pero no guardan ningún dia anterior?
yo tengo marcado 3 dias antes pero solo grafica desde el momento que lo abro? es asi? estoy haciendo algo mal?Muchas gracias.
Kate, sorry I forgot. The tick charts only chart when they are open but they don't keep any previous days?
I have ticked 3 days before but it only graphs from the moment I open it? is that so? am I doing something wrong? thank you very much.
Comment
-
Hello DiverG20,
Thank you for your reply.
Interactive Brokers does not supply historical tick data. You would either need to record incoming real time data as historical data or look into a provider that would supply historical tick data to display tick bars historically.
You can choose to record incoming real time data as historical under Tools > Options > Market Data > Record Live data as Historical.
A list of supported data providers and the data available from them may be found in our help guide here:
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
-
Hola DiverG20,
¿Qué indicador deseas programar, tienes alguna indicación o imágenes?
Yo no soy un experto, pero depende de lo que necesites, tal vez pueda hacer algo.
Quedo atento, un feliz fin de semana!
Comment
-
Hola DiverG20,
En el indicador "Stochastics" en NinjaTrader el valor K es un número entero y en la fórmula que indicas creo que no existe.
Debes abrir la otra plataforma y observar los valores predeterminados del estocástico, ya que pueden ser diferentes de los de NinjaTrader y no funcionar como debería.
A continuación copio parte del código del indicador de NinjaTrader por si te sirve para investigar un poco más:
Lo que indico en rojo creo que puede contener parte clave para lo que necesitas
Code:public class Stochastics : Indicator { private Series<double> den; private Series<double> fastK; private MIN min; private MAX max; private Series<double> nom; private SMA smaFastK; private SMA smaK; protected override void OnStateChange() { if (State == State.SetDefaults) { Description = NinjaTrader.Custom.Resource.NinjaScriptIndicatorDe scriptionStochastics; Name = NinjaTrader.Custom.Resource.NinjaScriptIndicatorNa meStochastics; IsSuspendedWhileInactive = true; [COLOR=#e74c3c]PeriodD = 7; PeriodK = 14; Smooth = 3;[/COLOR] AddPlot(Brushes.DodgerBlue, NinjaTrader.Custom.Resource.StochasticsD); AddPlot(Brushes.Goldenrod, NinjaTrader.Custom.Resource.StochasticsK); AddLine(Brushes.DarkCyan, 20, NinjaTrader.Custom.Resource.NinjaScriptIndicatorLo wer); AddLine(Brushes.DarkCyan, 80, NinjaTrader.Custom.Resource.NinjaScriptIndicatorUp per); } else if (State == State.DataLoaded) { den = new Series<double>(this); nom = new Series<double>(this); fastK = new Series<double>(this); min = MIN(Low, PeriodK); max = MAX(High, PeriodK); smaFastK = SMA(fastK, Smooth); smaK = SMA(K, PeriodD); } } protected override void OnBarUpdate() { double min0 = min[0]; nom[0] = Close[0] - min0; den[0] = max[0] - min0; [COLOR=#e74c3c]if (den[0].ApproxCompare(0) == 0) fastK[0] = CurrentBar == 0 ? 50 : fastK[1]; else fastK[0] = Math.Min(100, Math.Max(0, 100 * nom[0] / den[0])); // Slow %K == Fast %D K[0] = smaFastK[0]; D[0] = smaK[0];[/COLOR] } #region Properties [Browsable(false)] [XmlIgnore()] public Series<double> D { get { return Values[0]; } } [Browsable(false)] [XmlIgnore()] public Series<double> K { get { return Values[1]; } } [Range(1, int.MaxValue), NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "PeriodD", GroupName = "NinjaScriptParameters", Order = 0)] public int PeriodD { get; set; } [Range(1, int.MaxValue), NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "PeriodK", GroupName = "NinjaScriptParameters", Order = 1)] public int PeriodK { get; set; } [Range(1, int.MaxValue), NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Smooth", GroupName = "NinjaScriptParameters", Order = 2)] public int Smooth { get; set; } #endregion } }
Saludos.
Comment
-
Comment
-
Hola DiverG20,
Estuve revisando, pero no logro comprender como se haría, entiendo la lógica de la ecuación, son 4 estocásticos sumados, 3 de ellos con un multiplicador y 1 sin multiplicador, luego este resultado es divido entre 11,6.
Luego debe crear una SMA en base a ese dato respecto.
Por último hacer la resta del resultado dado por el indicador de estocástico menos el resultado de la SMA.
Lastimosamente no sé como llevar esa lógica a código C#.
Espero alguien más te pueda ayudar en lo que buscas.
Como consejo, los ciclos de mercado se pueden ver más claros en el contexto del precio y en el volumen, que en indicadores.
Aún así, si puedes encontrar el código de ese indicador que deseas en la plataforma que usas, tal vez ahí arroje cierta luz para programarlo en C#
Y hasta podría ser que el otro software también use C# y solo requiera algunos cambios para adaptarlo a NinjaTrader, pero sin el código no sabría como hacerlo.
Los indicadores que he diseñado para uso personal han sido con la ayuda del código de muchos otros indicadores que he investigado para poder logras diseñar algo acorde a mis necesidades, la mayoría los he descargado de https://ninjatraderecosystem.com/ pero nada basado en ondas, EMAs, SMAs, etc.
Todos mis indicadores son basados en líneas de dibujo y rectángulos.
Que estés bien y te vaya muy bien en tu búsqueda!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DawnTreader, 05-08-2024, 05:58 PM
|
22 responses
81 views
0 likes
|
Last Post
by DawnTreader
Today, 04:52 PM
|
||
Started by Mathias79, Today, 03:44 PM
|
0 responses
17 views
0 likes
|
Last Post
by Mathias79
Today, 03:44 PM
|
||
Started by Austiner87, Today, 03:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by Austiner87
Today, 03:42 PM
|
||
Started by lorem, 04-25-2024, 09:18 AM
|
19 responses
83 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by joselube001, 05-10-2024, 12:17 PM
|
6 responses
29 views
0 likes
|
Last Post
by joselube001
Today, 02:34 PM
|
Comment