Chart time frame into alert - futures io
futures io futures trading



Chart time frame into alert


Discussion in NinjaTrader

Updated by Beljevina
      Top Posters
    1. looks_one Tasker_182 with 4 posts (0 thanks)
    2. looks_two Beljevina with 3 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 lblanks with 1 posts (0 thanks)
    1. trending_up 1,991 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 8 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

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

 
Search this Thread
 

Chart time frame into alert

(login for full post details)
  #1 (permalink)
Cedar Rapids, iowa
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Trading: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 593 since Aug 2009
Thanks: 430 given, 1,142 received

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

Can you help answer these questions
from other members on futures io?
Sierra Chart Alert Formula Question
Sierra Chart
Heat Map on Trendspider
Platforms and Indicators
Anyone with Overcharts license/experience?
Platforms and Indicators
MulitCharts: Limit Order converted to MIT
Platforms and Indicators
Time Specific Volume Bars for Market Hours? Thinkorswim
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
Toronto, Canada
 
Experience: Advanced
Platform: NinjaTrader, MT4
Broker: Amp/CQG, Citibank
Trading: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 350 since Sep 2010
Thanks: 391 given, 574 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.

Follow me on Twitter Reply With Quote
The following user says Thank You to Beljevina for this post:
 
(login for full post details)
  #4 (permalink)
Cedar Rapids, iowa
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Trading: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 593 since Aug 2009
Thanks: 430 given, 1,142 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
 
(login for full post details)
  #5 (permalink)
Toronto, Canada
 
Experience: Advanced
Platform: NinjaTrader, MT4
Broker: Amp/CQG, Citibank
Trading: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 350 since Sep 2010
Thanks: 391 given, 574 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.

Follow me on Twitter Reply With Quote
The following user says Thank You to Beljevina for this post:
 
(login for full post details)
  #6 (permalink)
Cedar Rapids, iowa
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Trading: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 593 since Aug 2009
Thanks: 430 given, 1,142 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
 
(login for full post details)
  #7 (permalink)
Cedar Rapids, iowa
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Trading: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 593 since Aug 2009
Thanks: 430 given, 1,142 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
 
(login for full post details)
  #8 (permalink)
South Carolina
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: 6E, ES
 
Posts: 52 since Jun 2011
Thanks: 126 given, 15 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.

Why do you prefer twittermail?

Reply With Quote
 
(login for full post details)
  #9 (permalink)
Toronto, Canada
 
Experience: Advanced
Platform: NinjaTrader, MT4
Broker: Amp/CQG, Citibank
Trading: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 350 since Sep 2010
Thanks: 391 given, 574 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.

Follow me on Twitter Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Chart time frame into alert


June 15, 2012


Upcoming Webinars and Events
 

Order Flow Tools w/MotiveWave & Zytrade Brokerage

Oct 22
 

Technical Analysis Workshop w/NinjaTrader

Oct 27
 

Bookmap

Oct TBD
 

SharkIndicators

Oct TBD
 

Carley Garner

Oct TBD
 

GruttePier

Oct TBD
     



Copyright © 2020 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