Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

llamar al valor del tick del instrumento negociado

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    llamar al valor del tick del instrumento negociado

    perdonen la ignorancia, pero me puede decir alguien como llamar a la informacion del instrumento

    #2
    Hola franatas,

    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.

    So I may accurately assist, what exactly are you referring to when you mention "how to call the instrument information"?

    Do you want to add additional data series to a strategy using the AddDataSeries() method?

    Are you trying to get the price information of the instrument the chart is running on?

    Do you simply want to print out the instrument name that the script is running on?

    I look forward to assisting further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Estoy tratando de obtener la información del precio del instrumento en el que se ejecuta el gráfico, para poder ajustar el tamaño de la orden en funcion del sl que necesita la entrada, osea obtener el valor de 12.5 $ del tick del ES por ejemplo

      Comment


        #4
        Hello franatas,

        Thanks for your notes.

        To get price information, you could use the PriceSeries collection. To get the current Close price, Close[0] would be used. To get the current Open price, Open[0] would be used. To get the Low price, [Low[0] would be used. To get the High price, High[0] would be used.

        See this help guide page for more information: https://ninjatrader.com/support/help...riceseries.htm

        TickSize could be used to offset a price by a set number of ticks. For example, to offset the Close price by 5 ticks the code might look something like this:

        Close[0] + 5 * TickSize

        or

        Close[0] - 5 * TickSize

        See this help guide page for more information about TickSize and sample code: https://ninjatrader.com/support/help...8/ticksize.htm
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          perdona, igual no se explicarme, lo que necesito es obtener el valor del tick por ejemplo de ES 12.5$ o del CL 10$ es decir el valor del punto dividido por los tick que componen un punto;
          yo vengo de atas y en esa api se obtenia con TickCost
          entonces la formula quedaba asi : ContratosBuy = Math.Floor(Perdida_Max / (((PrecioEntrada - StopLoss) / TickSize) * TickCost));

          Comment


            #6
            Hello franatas,

            Thanks for the clarification.

            This value would need to be calculated in your script by multiplying the instrument's point value (Bars.Instrument.MasterInstrument.PointValue) by TickSize.

            For example, the code might look something like this:

            double tickValue = Bars.Instrument.MasterInstrument.PointValue * TickSize;
            Print("tickValue: " + tickValue);


            When this is added to a script that is applied to the ES 06-23 instrument, you will see a value of 12.5 print to a New > NinjaScript Output window.

            See the help guide documentation below for more information

            PointValue:https://ninjatrader.com/support/help...pointvalue.htm
            TickSize: https://ninjatrader.com/support/help...8/ticksize.htm
            <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment


              #7
              ok muchisimas gracias

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              53 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              130 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              70 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              44 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              49 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X