Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61
Hi Everybody
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
Spencer
Can you help answer these questions from other members on NexusFi?
hi spinnybobo,
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.
Tip
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.
Syntax
DrawArrowUp(stringtag, bool autoScale, int barsAgo, double y, Color color)
Parameters
tag
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.
autoScale
Determines if the draw object will be included in the y-axis scale
barsAgo
The bar the object will be drawn at. A value of 10 would be 10 bars ago.
y
The y value where the arrow is painted (iE 3 ticks above the High of the Bar [0] )
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.