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!
See more
See less

Partner 728x90

Collapse

estretagia

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

    estretagia

    HOLA UNA CONSULTA ES QUE QUIERO HACER UNA ESTRATEGIA DE UN BREAK SIN ENBARGO no se como hace una instruccion ej , tengo dos varialbles el low de un rango horario , y el hi , y lo que quiero es restarlos y dividirlos entre dos para decir quel el target sea el 50% de ese rango sin embargo la variabel nueva que en teoria se llama target no se actualiza queda en 0 siempre a pesar de que yo le doy la instruccion . alguno podria iluminarme

    #2

    Comment


      #3
      Hola jccarlos,

      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.

      It seems like you are using the Strategy Builder. The Strategy Builder is limited in the math that it is able to preform. Only Custom Series are able to be offset to do simple math.

      You could consider creating a Custom Series in the Additional Data screen of the Strategy Builder for the variables you want to do math calculations with. A value could be assigned to the Custom Series variables. Then, you could do simple math by offsetting one Custom Series by another Custom Series.

      Note that this will likely be easier to accomplish in an unlocked script.

      If the strategy is not behaving as expected, you must add debugging prints to understand how the script is evaluating.

      Below is a link to a forum post that demonstrates how to use prints to understand behavior.

      https://ninjatrader.com/support/foru...121#post791121

      See the help guide documentation below for more information.

      Additional Data Screen:https://ninjatrader.com/support/help...standingTheAdd itrionalDataScreen
      How to offset an item value: https://ninjatrader.com/support/help..._builder.htm#H owToOffsetAnItemValue
      Conditions: https://ninjatrader.com/support/help...on_builder.htm
      Actions: https://ninjatrader.com/support/help...t8/actions.htm

      Please let me know if I may assist further.
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      19 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      45 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      181 views
      0 likes
      Last Post jeronymite  
      Working...
      X