NinjaTrader Support Forum  

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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-28-2012, 04:15 AM   #16
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,564
Thanks: 261
Thanked 1,015 times in 996 posts
Default

Ok, sounds good - the idea was to ensure the alert would trigger the first time the conditions is seen and not on subsequent bars, if it's not feasible with cross above / below then a bool flag would like do this for you.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-28-2012, 06:37 AM   #17
kalim
Member
 
Join Date: Jun 2012
Posts: 51
Thanks: 6
Thanked 0 times in 0 posts
Default

Rearm of 1 is not working. Basically, the alert goes off every few seconds, about 2 seconds.

How do you use a bool flag to ensure the alert would trigger the first time the conditions is seen and not on subsequent bars update within the same bar, without coding? My current strategy is entirely using the wizard.
kalim is offline  
Reply With Quote
Old 06-28-2012, 06:56 AM   #18
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,564
Thanks: 261
Thanked 1,015 times in 996 posts
Default

So that's then basically still too long for your use, to use the bool logic in combination with FirstTickOfBar you would unfortunately need to code outside of the wizard as here you could programmatically reset an alert after it triggered - this would be what you need to control this better.
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

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
No sound on PlaySound() and Alert not working dontpanic Indicator Development 5 06-13-2011 10:46 PM
Alert not working in indicator eclipsed Miscellaneous Support 2 04-06-2011 05:46 AM
DMI Cross Alert is no Working cowcool Strategy Development 1 02-25-2010 07:32 AM
generating alert from a strategy faceonthewall Strategy Development 1 08-16-2009 05:57 PM
Alert not working on Market Analyzer asalada Market Analyzer 1 04-11-2008 06:48 AM


All times are GMT -6. The time now is 05:39 AM.