Broker/Data: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Favorite Futures: ES, CL, EUR/USD, TF
Posts: 171 since Aug 2009
Thanks: 99 given,
I am just a beginner in programming. I am currently taking a C++ class and I know Ninjatrader is in C# lanuage. So, it will take me a while before I am able to start playing with Ninjascript in terms of creating my own indicators.
The thing I did want to create were some arrows, and I think I can do this with the strategy builder in Ninja trader.
HOWEVER. When I input all of my user defined inputs and my conditions (ie if this happens and this happens, etc..----DO the Following)
I am having a problem with Do the Following. I dont want to create a long trade or short trade. I just want to play a sound and give an arrow. When I just say under Do the Following: play this sound, etc. give Up arrow, etc.. It prints out nothing on the chart!
I dont understand why it prints out nothing on the chart since it is supposed to because it gives the option to do so. Then, when I just say Go Long or Go Short, for example, it works.
So, I guess I could generate my arrows this way since I am only trading on sim, however, my questions are this:
1. Is it possible to just let it go long and short on sim while I also run it on Live? I dont want to take every trade, I just want some arrows to give me a heads up to Pay Attention, my setup is here.
2. Is it possible to generate just the arrows without putting on a long or short position using the strategy builder?
My other option is to use the Indicator builder, but this does not have any videos that I can find, and it is not very intuitive----does not have the same setup as strategy builder which is very logical.
thanks for bringing up this question in a thread !
here some more stuff for bringing Arrows in your chart - but these things have to be adjusted best in an open code - dont know how flexible the strategy-builder / wizard is.
For painting arrows you do NOT need a strategy - you can build an indicator that for. if you insert a stratetgy in your chart just for visualisation of arrows you have some limitations like not being able to use charttrader anymore or watch your trades there.
as an indicator with your conditions inside, it shows you the arrows when the conditions are vaild + you can decide if you trade or not - you dont need buy/sell-order stuff.
DrawArrowUp(stringtag, bool autoScale, int barsAgo, double y, Color color)
A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.
Determines if the draw object will be included in the y-axis scale
The bar the object will be drawn at. A value of 10 would be 10 bars ago.
The y value where the arrow is painted (iE 3 ticks above the High of the Bar  )
max wrote: "as an indicator with your conditions inside, it shows you the arrows when the conditions are vaild + you can decide if you trade or not - you dont need buy/sell-order stuff."
Since the indicator wizard is so lame, I sometimes use the strategy wizard (not often because it is pretty lame too and fraught with bugs) to create the logic and then create a new indicator via the Control Center and cut and past the strategy code into the indicator (but you have to change the namespace to "NinjaTrader.Indicator" (sans quotes)...
I assume this is o.k. to do, but if someone knows differently, please post.
The following user says Thank You to Saroj for this post: