Need help for a very simple script for Ninja Trader - NinjaTrader Programming | futures io social day trading
futures io futures trading


Need help for a very simple script for Ninja Trader
Updated: Views / Replies:1,690 / 7
Created: by vgbouchet Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Need help for a very simple script for Ninja Trader

  #1 (permalink)
Trading Apprentice
Buenos Aires
 
Futures Experience: Intermediate
Platform: AT
Favorite Futures: ES, 6E
 
Posts: 3 since Jun 2011
Thanks: 0 given, 0 received

Need help for a very simple script for Ninja Trader

Hello everybody,

I would like to know if you can help me with a very simple indicator I want in NinjaTrader.
If current bar closes bearish and previous bar closes bullish then plot a red dot above current bar. If current bar closes bullish and previous bar closes bearish then plot a green dot below current bar.

It is very simple to explain it but I'm getting mad to do it...

Any help will be very much appreciated...

Thank you very much in advance.

Regards,

Victor

Reply With Quote
 
  #2 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,215 since Jun 2009
Thanks: 628 given, 6,312 received

Answer
This post has been selected as an answer to the original posters question Answer

 
Code
if ( Close[0] > Open[0] && Close[1] < Open[1] )                             // Note: [0] =currentbar, [1] =previous bar
   DrawDot("tag1", true, 0, Low[0] - TickSize, Color.Red);
from ninja manual
NinjaTrader Version 7

Reply With Quote
The following user says Thank You to cory for this post:
 
  #3 (permalink)
Trading Apprentice
Buenos Aires
 
Futures Experience: Intermediate
Platform: AT
Favorite Futures: ES, 6E
 
Posts: 3 since Jun 2011
Thanks: 0 given, 0 received


Hi Cory!

Thank you very much for your quick answer and happy Thanksgiving Day!

I included your formula but it is ploted only on last bar...Do you know how to make the indicator be ploted on every other situation where this condition is met along the chart?

Thank you very much again!

Regards,

Victor

Reply With Quote
 
  #4 (permalink)
Elite Member
Zurich, Switzerland
 
Futures Experience: None
Platform: NT
Favorite Futures: Ukulele
 
Posts: 16 since Mar 2011
Thanks: 342 given, 14 received

Hi Victor,

as described in the documentation you have to use a unique identifier for the "tag" otherwise the object will be moved to the new location.
mostly you use something like "mydots"+CurrentBar to make the occurence unique.

Reply With Quote
 
  #5 (permalink)
Elite Member
Germany / Italy
 
Futures Experience: Advanced
Platform: a few...
Favorite Futures: all that move nicely, extend your horizons
 
Posts: 67 since Nov 2009
Thanks: 45 given, 31 received


vgbouchet View Post
Hi Cory!

Thank you very much for your quick answer and happy Thanksgiving Day!

I included your formula but it is ploted only on last bar...Do you know how to make the indicator be ploted on every other situation where this condition is met along the chart?

Thank you very much again!

Regards,

Victor

You may find this NT thread here informative, I know I did in my beginnings

Indicator: Drawing unique objects and objects that update - NinjaTrader Support Forum

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
USA
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: nq
 
Posts: 6 since Aug 2010
Thanks: 0 given, 0 received

Simple stochastic indy

I trade a 3min chart. I'd like to have an alarm go off when stochs closes above 50 AND above a designated price. Needs to be on bar close. Ninja has a standard "price alert" indy and I can set an alarm for stochs separately as well, but I need to be able to combine them and use them to filter each other. Feel like it would be pretty simple if someone wants to lend a hand =)

Reply With Quote
 
  #7 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,215 since Jun 2009
Thanks: 628 given, 6,312 received


vgbouchet View Post
Hi Cory!

Thank you very much for your quick answer and happy Thanksgiving Day!

I included your formula but it is ploted only on last bar...Do you know how to make the indicator be ploted on every other situation where this condition is met along the chart?

Thank you very much again!

Regards,

Victor

then you have to use plot to draw series of dot and if it doesn't meet displaying criteria color it transparent.

sample coding
https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-357.html#post169536


Last edited by cory; December 1st, 2011 at 04:11 PM.
Reply With Quote
 
  #8 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,217 received

 
Thread Moved


Moved to NinjaTrader Programming



When creating a new thread, note which subforum you are in. Here is a short list of suggestions:

- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading

Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).

This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.

-- Big Mike Trading


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply



futures io > > > > > Need help for a very simple script for Ninja Trader

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Language to Ninja Script fireman912 NinjaTrader Programming 4 June 23rd, 2011 11:39 PM
Ninja script - learning code + programming alias NinjaTrader Programming 20 May 11th, 2011 06:01 AM
HELP with RECOMMENDING a Ninja Script Consultant plz... mdsvtr Trading Reviews and Vendors 3 November 6th, 2010 11:12 AM
Programming errors while importing Ninja script emini_Holy_Grail NinjaTrader Programming 8 May 20th, 2010 04:09 AM
Ninja Script Import Problem jdella NinjaTrader 5 November 6th, 2009 10:57 AM


All times are GMT -4. The time now is 05:03 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-11 in 0.11 seconds with 35 queries on phoenix via your IP 54.226.132.197