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 > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 05-28-2010, 12:43 AM   #1
falcon00
Junior Member
 
Join Date: Jan 2010
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default How do I implement this idea

I'm not looking for code samples I'm looking for a thought process in terms of the best settings or method to make this idea work.

I have a strategy that works on 1 minute bars. I want the strategy to calculate entry signals based on the OPEN of the bar.

Once we have a trade on it is necessary to continuously monitor the profitability of the trade. When an entry signal is generated I know exactly the two prices I want to leave the trade at. In other words I need the current price to be compared to the two exit prices every second (tick?) instead of every minute.

What is the best way to go about doing this?
falcon00 is offline  
Reply With Quote
Old 05-28-2010, 05:35 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Welcome to our forums - just work with CalculateOnBarClose set to false then, this will allow the strategy script to monitor each incoming tick in realtime - to work then on the open of the bar you could check if (FirstTickOfBar)....

http://www.ninjatrader-support.com/H...BarClose1.html

http://www.ninjatrader-support.com/H...TickOfBar.html

http://www.ninjatrader.com/support/f...ad.php?t=19387
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
IDataSeries - Can we implement and pass to NT methods/functions? Brillo Indicator Development 9 04-27-2010 08:48 AM
Any idea what I've got wrong here? jh1962 Strategy Analyzer 22 09-22-2009 07:26 AM
How about this idea?? raycam Suggestions And Feedback 1 07-30-2009 07:30 AM
Idea for a new indicator Antraman ATM Strategies (Discretionary Trading) 35 01-12-2009 03:13 PM
implement a function on NT kuroro13 Indicator Development 8 08-06-2008 05:31 PM


All times are GMT -6. The time now is 12:53 AM.