Several people have asked me about the buttons on my NinjaTrader charts, So I extracted the buttons code from my trading tools indicator and upload the code here. It allows you to put user defined push buttons on the chart to perform customized actions.
Note: This is for NinjaScript programmers who want to add customized buttons to their chart to perform customized actions. This is just the user click-able interface. You will have to provide your own code to customize the actions performed by the buttons.
This indicator draws horizontal Support/Resistance lines at various price levels, above and below the market, where price historically created swing High/Low pivots multiple times, creating support and resistance as price action bounced off of those levels.
January 17th, 2011
Size: 2.54 KB
Downloaded: 261 times
797
redratsal
Indicator prints unlimited number of user defined reminders on the occurring bars on the chart. Also works on historical bars. I mainly use it to remind me of scheduled Economic Reports, and other miscellaneous times, and daily tasks. Reminders list only has to be entered once. An unlimited number of reminders can be used. Use '\n' to insert a new line in the displayed text.
Schedule is in the following format, one line per entry, in 24 hour military time:
Example: THU @ 08:25 Jobless Claims report => Every Thursday at 8:25am, print the specified text on the chart
Example: 3rd THU @ 09:55 Philly Fed Report => 3rd Thursday of every month at 9:55am, print the specified text on the chart
Sample entry list:
WED @ 10:25 Crude Oil Inventory Report
THU @ 08:25 Jobless Claims report
1st FRI @ 08:25 Unemployment report
3rd THU @ 09:55 Philly Fed Report
4th TUE @ 09:55 Consumer Confidence \n Report
Daily @ 07:00 London Session Lunch
Daily @ 09:30 New York Open
Daily @ 16:00 Market Close
Nov 11 @ 14:00 FOMC 2:15pm
1st Day of Month @ 9:55 ISM Mfg Index
2nd Thu of March @ 8:00 Contract Rollover
Created this indicator to plot the 1 minute NYSE TICK and Advance/Decline on my range bar trading charts. I use it to see high/low TICK thresholds, TICK divergences, and A/D line market strength, used together to predict short term overbought/oversold market reversals. This can tell you when a pullback is imminent, or help trade reversals.
The necessary candles are artificially filled in to preserve the main chart bar spacing, but the high/low thresholds are retained. It also marks the 1 minute high/low TICK thresholds on the chart. The A/D line plot can be toggled on/off using CTL-ALT key stroke.
Note: You must have the NYSE TICK (^TICK) and Advanced Decline (^ADD) symbols defined in your Instrument database.
Calculates Risk/Reward and Position Sizing for trade planning using horizontal lines drawn at potential trade Entry, Stop and Target. The indicator will automatically update the risk/reward and position sizing on the fly when you select and drag the Entry, Stop, and Target lines.
Position size and risk/reward are calculated from user input parameters for Trading Account Size, Percent Account Risk per trade, Fixed Dollar Amount per trade, or Fixed Share Sizing.
Press CTRL-ALT to lock the lines to their current prices, now moving one line will move all the other lines together by the same amount, keeping the same ratio between all the lines.
Press CRL-ALT again to unlock the lines.
I've updated this indicator to use a different approach. It now shows daily volume of various contracts months for an instrument. Highlights the contract with the highest volume, if another contract has higher volume then that on the chart. When this happens, then it's time to rollover.
- Make sure you choose an explicit session template for the chart. Do not choose <Use Instrument Settings>
- Make sure at least 3 valid future contract months are defined in your Instrument Manager default instrument list
- Add an optional comma separated list of future contracts for your instrument in 'Contracts List' parameter Ex: "CL 01-12, CL 02-12, CL 03-12". If blank, the next 3 future contracts will be used. These contracts must be defined in your default instruments list
- Add the current contract name to the parameter 'Current Contract'. If blank, the current chart contract will be used.
The indicator requires that your broker sends daily volume data as a separate message. I use it with Mirus and Interactive Brokers. I don't know if all brokers do this.
Warning:
This indicator uses un-supported code, namely using variables in the Add() method. This may have unpredictable results in NT behavior, like a frozen chart. I have put in code to try to prevent this, and tested successfully with various instruments. I can't guarantee this for every instrument and every configuration, so please test in your environment before using live.
May 21st, 2016 07:36 PM Randy Dotson I know nothing about programming NT7. But I would really like a buy stop limit and a sell stop limit button that would p
ut the order at the price that would complete the bar. In other words, a bar is building. I have the quantity and strate
gy set up on the chart trader. As the current bar is building, I push the buy or sell button and it places the order at
one tick above or below what will be the top or bottom of the range bar. That is the price that will have to be hit for
the bar to complete. Can anyone help with this. It would be dependent on the range in use on the chart it was being used
on.
January 25th, 2014 01:47 PM alexJetski Thanks so much for sharing. Excellent template to build upon.
July 14th, 2011 10:41 AM tony2604 This looks great. But I have problems with understanding how to use. Eg what or where do I have to code for having the c
lose button working? Thank you!
March 23rd, 2011 10:19 AM vvhg Great!
February 13th, 2011 09:57 AM Schiller Good job ! Thank you !
February 13th, 2014 03:36 AM Sezor Thanks for this.
Are there any tokens in Nt for things like <instrument name > ?
July 22nd, 2013 12:54 AM Amsterdam Whale I'm so awed at this particular moment by the power of groups of strangers sharing one particular goal.... we give wholeh
eartedly and with genuine pleasure at furthering the success of another. In fact in this kind situation we so naturaly a
nd without even a moment's consideration, act as someone who understands that in many instances doing something for othe
rs furthers our interests more than if one were to do the exact same thing for ourselves. Thanks for this tool, it's no
small thing.
December 29th, 2012 04:20 PM Silver Dragon Very useful. Thanks!
March 23rd, 2012 02:46 AM jwdixon Great Help!!!!Thanks
May 23rd, 2017 05:27 PM mzabarain Very appreciated mompere.
December 10th, 2014 01:00 PM Flyingk
August 26th, 2013 07:20 AM Cloudy Thanks. Great tool and pro coding.
August 13th, 2012 08:26 PM Don Laing Great a welcome addition. Being a lousy programmer how do I use /n to add lines?
January 31st, 2012 04:27 AM Klausi This is a great help in every day's trading. You are reminded of all session opens and ends as well as of all FOMC + con
tract change dates, also to any custom - dates of your choice, whenever you have added them to the string array.
November 26th, 2016 11:38 PM Jaba I'm not the author of this indicator but you can find the fix in this post: https://nexusfi.com/elite-circle/1261-want-yo
November 2nd, 2016 12:05 PM rcsingleton The day has come. www.barchart.com has changed the format! Can the author make the required changes to this indicator?
Thanks much!
April 13th, 2014 10:06 AM sudhirc Really Good.
Thank you.
January 26th, 2014 10:23 PM Chuck T I have used this little indicator so frequently that I felt compelled to come back and say a big THANK YOU! I had downlo
aded it months ago and couldn't find it at first, but after about two hours of searching BMT I found it again. So here i
am to thank you for this little gem that saves me so much time and prevents contract rollover headaches