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)
What do you mean draw until the next bar? You mean you want a rectangle that goes the length of the 30 mins? Generally speaking, the rectangle shape is usually used in the price bar area but I suppose you could use it below, although I've never tried that. You may be better off, however, drawing a square, as I did, every minute. In other words, at the end of every minute, you check your higher timeframe condition and draw a colored square based on whether it is true or false. That way it will look exactly how it looks in the example you gave above.
Can you help answer these questions from other members on NexusFi?
For example, let's use an easy sample condition. If the close of the thirty minute bar is greater then the close of the previous thirty minute bar, the square is green; if it less, the square will be red.
Ah..perfect! That's a great starting point for me and I can now see a couple things I was doing wrong (I'm still just a few days in to learning Ninjascript). Thanks so much for the assistance.
Ah..perfect! That's a great starting point for me and I can now see a couple things I was doing wrong (I'm still just a few days in to learning Ninjascript). Thanks so much for the assistance.
You are welcome. However, there is still one problem with the code as it currently stands. Instead of plotting this line at the value of "1". You will probably want to plot it at the value of "30". That way you can have a line for "1", "5", "15", "30", etc...I can show you how to do that or you can try yourself, your choice.
You are welcome. However, there is still one problem with the code as it currently stands. Instead of plotting this line at the value of "1". You will probably want to plot it at the value of "30". That way you can have a line for "1", "5", "15", "30", etc...I can show you how to do that or you can try yourself, your choice.
Oh I would appreciate any tips or assistance you can provide on this topic. I did notice your boxes are "1" , I would try to do 0-1, 0-5, 0-15, 0-30, etc. as appropriate if that's what you mean
Oh I would appreciate any tips or assistance you can provide on this topic. I did notice your boxes are "1" , I would try to do 0-1, 0-5, 0-15, 0-30, etc. as appropriate if that's what you mean
The proper parameters for the DrawSquare method should be:
You are welcome. However, there is still one problem with the code as it currently stands. Instead of plotting this line at the value of "1". You will probably want to plot it at the value of "30". That way you can have a line for "1", "5", "15", "30", etc...I can show you how to do that or you can try yourself, your choice.
Hmm yeah now that I start working with it, it's a bit confusing as to how I would also show the primary series on another row (at bottom) with the 30 min tf in this case.
Great! I've been expanding on it a bit and it's coming together nicely. Thank you.
Is it possible somehow to overlay a dot/circle on top of the square for the actual timeframe bar? If not, I suppose I could use a circle only (red or green) for the bar that indicates the actual close of the specific timeframes bar. For example on a 5 minute it might look like...