NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-07-2012, 07:22 AM   #1
akushyn
Junior Member
 
Join Date: Apr 2012
Posts: 19
Thanks: 4
Thanked 0 times in 0 posts
Default Disable Alerts when workspace is not active

Hello,

I have one alerts issue and dont know how to fix it.
Let say I have a chart and indicator which alerts with some conditions.
Then, I save workspace.

When I do smth on another workspace, indicator continue send alerts. How to fix it, please help.

--
Best regards, Andriy
akushyn is offline  
Reply With Quote
Old 08-07-2012, 07:29 AM   #2
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO, USA
Posts: 1,660
Thanks: 113
Thanked 187 times in 182 posts
Default

Hello Andriy,

Thank you for your post.

Unfortunately, if the Workspace is open (even though it is not the active Workspace) the alert will still sound.

There are a few ways to work around this item.
First you can close the Workspace with the alert by going to File > Workspaces > select the Workspace from the list > then go back to File > Workspaces > Close Workspace.
Second you could disable the alert on the Workspace.
Another option is to set the rearmSeconds to a high value.

For information on Alert() please visit the following link: http://www.ninjatrader.com/support/h.../nt7/alert.htm

Please let me know if I may be of further assistance.
NinjaTrader_PatrickH is offline  
Reply With Quote
The following user says thank you to NinjaTrader_PatrickH for this post:
Old 08-07-2012, 04:14 PM   #3
akushyn
Junior Member
 
Join Date: Apr 2012
Posts: 19
Thanks: 4
Thanked 0 times in 0 posts
Default

fuh... )))
now it's okay, thank you very much , Patrick!
akushyn is offline  
Reply With Quote
Old 11-26-2012, 04:04 AM   #4
cvetkisa
Junior Member
 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 1 time in 1 post
Default Hi

if(ChartControl.Visible)
{
...
}

will do the job.
cvetkisa is offline  
Reply With Quote
Reply

Tags
alerts, workspace

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asking about Active workspace. xTrader1 General Programming 1 02-12-2012 08:00 AM
Alerts -A better way to set price alerts needed djohn Suggestions And Feedback 18 09-09-2011 02:15 PM
Active Workspace won't come up....... jeffalan2112 Charting 3 08-24-2009 06:32 AM
Timeframe change vs. active strategy with active trades nicknamed Automated Trading 1 06-30-2009 01:00 PM
Disable all alerts... maxpi Suggestions And Feedback 2 08-17-2007 05:35 PM


All times are GMT -6. The time now is 02:10 AM.