![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2007
Location: , ,
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2007
Location: , ,
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks, TickSize is what I was looking for.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |