NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 > Strategy Development

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

Reply
 
Thread Tools Display Modes
Old 05-22-2007, 08:49 PM   #1
AO76
Member
 
Join Date: May 2007
Location: , ,
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default Backtesting

I'm using the AtmStrategyCreate to enter a trade. I would like to enter a trade at the Current Bid - 1. Will using "Bars.CurrentBid-1" work?

Thanks.
AO76 is offline  
Reply With Quote
Old 05-23-2007, 07:04 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

What does 1 represent? If its a price value of 1 then yes, that would work. If you want it to be a tick/pip or penny? Then you would write the following.

CurrentBid - TickSize
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-23-2007, 09:48 AM   #3
AO76
Member
 
Join Date: May 2007
Location: , ,
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, TickSize is what I was looking for.
AO76 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
Chart problems while backtesting MikeS Strategy Analyzer 9 04-22-2009 07:33 AM
Backtesting with a simulated account? NinjaTrader_Josh Strategy Analyzer 1 05-23-2007 06:57 AM
FOREX backtesting. sknudsen Strategy Analyzer 3 05-10-2007 01:14 PM
Different Results between Backtesting and Live Testing vivienne Automated Trading 2 05-03-2007 03:45 AM
Different Results between Backtesting and Live Testing vivienne Miscellaneous Support 0 12-31-1969 06:00 PM


All times are GMT -6. The time now is 11:31 PM.