Chart time frame into alert - NinjaTrader Programming | futures io social day trading
futures io futures trading


Chart time frame into alert
Updated: Views / Replies:1,406 / 8
Created: by Tasker_182 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
 

Chart time frame into alert

  #1 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 426 given, 1,126 received

Chart time frame into alert

Hello,

I am working with an alert indicator and i want to be able to identify the chart that the alert was issued from. Is there anyway to get the timeframe or name of the chart so that i can add it into the alert box test message output?

Thanks

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Toronto, Canada
 
Futures Experience: Advanced
Platform: NinjaTrader, MT4
Broker/Data: Amp/CQG, Citibank
Favorite Futures: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 349 since Sep 2010
Thanks: 379 given, 564 received


TOS or NT7? Assuming it's NT7 and it is not a DLL driven alert,one can add to the Ninjascript the "Print" command to get text into the NT Output window, and use things like Instrument.Fullname and BarsPeriod.Value.ToString() to view the timeframe of the chart. It's also possible to use text-to-speech within Windows, or, tweet alerts out, to be received by a dedicated twitter client, and thus get alert popups.

Reply With Quote
The following user says Thank You to Beljevina for this post:
 
  #4 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 426 given, 1,126 received


Beljevina View Post
TOS or NT7? Assuming it's NT7 and it is not a DLL driven alert,one can add to the Ninjascript the "Print" command to get text into the NT Output window, and use things like Instrument.Fullname and BarsPeriod.Value.ToString() to view the timeframe of the chart. It's also possible to use text-to-speech within Windows, or, tweet alerts out, to be received by a dedicated twitter client, and thus get alert popups.

Sorry I should have been more specific. Yes, NinjaTrader 7. I am of course wanting to do it dynamically as i use several charts and time frames but same indictator.

Thank-you

Reply With Quote
 
  #5 (permalink)
Elite Member
Toronto, Canada
 
Futures Experience: Advanced
Platform: NinjaTrader, MT4
Broker/Data: Amp/CQG, Citibank
Favorite Futures: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 349 since Sep 2010
Thanks: 379 given, 564 received

OK. I'm not sure if I answered your question, or what level of help you are looking for.

Here's an example of code to place in the routine of your Ninjascript where the alert has been confirmed:

 
Code
Print ("Red triangle alert printed in " + Instrument.MasterInstrument.Name + " on "+ BarsPeriod.Value.ToString() + "M at " + Time[0].ToString()  + " Price is " + Close[0].ToString() );

which will give text in the NT Output window as follows:
 
Code
Red triangle alert printed in 6E on 5M at 6/8/2012 6:45:00 AM Price is 1.2458

My personal preference is to send an email to a twittermail twitter account, which will then give a screen tweet popup in a separate client running on a PC somewhere, alerting you to the trading condition/signal. I like to use twirl for the receiving client.

Not sure if you're looking for help right down to coding it into an indicator. I might be able to help with that - depends on the indicator.

Reply With Quote
The following user says Thank You to Beljevina for this post:
 
  #6 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 426 given, 1,126 received


Beljevina View Post
OK. I'm not sure if I answered your question, or what level of help you are looking for.

Here's an example of code to place in the routine of your Ninjascript where the alert has been confirmed:

 
Code
Print ("Red triangle alert printed in " + Instrument.MasterInstrument.Name + " on "+ BarsPeriod.Value.ToString() + "M at " + Time[0].ToString()  + " Price is " + Close[0].ToString() );

which will give text in the NT Output window as follows:
 
Code
Red triangle alert printed in 6E on 5M at 6/8/2012 6:45:00 AM Price is 1.2458

My personal preference is to send an email to a twittermail twitter account, which will then give a screen tweet popup in a separate client running on a PC somewhere, alerting you to the trading condition/signal. I like to use twirl for the receiving client.

Not sure if you're looking for help right down to coding it into an indicator. I might be able to help with that - depends on the indicator.


I already have the indicator sending a message to the NT Alerts window. What i don't know is how to get (in your example) "5M" into the message that displays in the alerts windows so that when the indicator triggers I know what timeframe the alert is from. It seems like the code segment: BarsPeriod.Value.ToString() + "M" will be what i need.


Thank-you!

Reply With Quote
 
  #7 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 426 given, 1,126 received

Just to finish up, here is what i ended up doing:

Alert("myAlert3", NinjaTrader.Cbi.Priority.Medium, "Candle touch UP on: " +BarsPeriod.Value.ToString() +" "+ BarsPeriod.Id.ToString()+" Chart", "Chime-4.wav", 55, Color.Aquamarine, Color.Black);

So in the NT Alerts Dialog box it would say, " Candle touch UP on 1 minute Chart".

Thanks for pointing me in the right direction!

Reply With Quote
 
  #8 (permalink)
Elite Member
South Carolina
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Zen Fire
Favorite Futures: 6E, ES
 
Posts: 51 since Jun 2011
Thanks: 118 given, 14 received

Why do you prefer twittermail?


Beljevina View Post
OK. I'm not sure if I answered your question, or what level of help you are looking for.

Here's an example of code to place in the routine of your Ninjascript where the alert has been confirmed:

 
Code
Print ("Red triangle alert printed in " + Instrument.MasterInstrument.Name + " on "+ BarsPeriod.Value.ToString() + "M at " + Time[0].ToString()  + " Price is " + Close[0].ToString() );

which will give text in the NT Output window as follows:
 
Code
Red triangle alert printed in 6E on 5M at 6/8/2012 6:45:00 AM Price is 1.2458

My personal preference is to send an email to a twittermail twitter account, which will then give a screen tweet popup in a separate client running on a PC somewhere, alerting you to the trading condition/signal. I like to use twirl for the receiving client.

Not sure if you're looking for help right down to coding it into an indicator. I might be able to help with that - depends on the indicator.

Why do you prefer twittermail?

Reply With Quote
 
  #9 (permalink)
Elite Member
Toronto, Canada
 
Futures Experience: Advanced
Platform: NinjaTrader, MT4
Broker/Data: Amp/CQG, Citibank
Favorite Futures: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 349 since Sep 2010
Thanks: 379 given, 564 received


lblanks View Post
Why do you prefer twittermail?

It allows me to receive tweets, by sending an alert to an email address, and that is an easy 1-command thing in a NT indicator. (Yes, I have seen one can tweet right from NT code, but my sense is there is more programming work, and I've just never delved into it.)

And then, with tweets, I can receive them in a client, with a screen popup, an added audio alert, leaving me a recent list of tweets/alerts in a compact screen real-estate respecting (and opaque) twitter client (twirl) - in other words, the whole visual tweet notification thing/approach is nicely address for me, and my trading.

Oh, and should you have an indicator that allows e-mail notification as part of it's pre-programmed code, you can just put in your twittermail address, and be receiving those notifications by twitter. Pretty handy IMO.

Reply With Quote

Reply



futures io > > > > > Chart time frame into alert

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
time frame ness1g Traders Hideout 10 February 8th, 2012 10:43 AM
Best time frame for an instrument spikoloco The Elite Circle 9 September 25th, 2011 03:06 PM
Time of day,and possible time frame sycronization phasganon The Elite Circle 1 September 24th, 2011 12:53 AM
Highlight a specific time frame / session on a chart Arpad NinjaTrader 8 April 7th, 2011 07:13 PM
NT7 different time frame indicator Zsolt NinjaTrader 2 April 14th, 2010 12:40 PM


All times are GMT -4. The time now is 01:31 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.12 seconds with 19 queries on phoenix via your IP 54.145.16.43