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
estretagia
Collapse
X
-
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 iluminarmeTags: None
-
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 inanazsocial, Today, 01:15 AM
|
1 response
5 views
0 likes
|
Last Post Today, 02:18 AM | ||
Started by rocketman7, Today, 02:12 AM
|
0 responses
10 views
0 likes
|
Last Post
by rocketman7
Today, 02:12 AM
|
||
Started by dustydbayer, Today, 01:59 AM
|
0 responses
1 view
0 likes
|
Last Post
by dustydbayer
Today, 01:59 AM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
Comment