Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Close - 1 sec
Collapse
X
-
Hello Alexpl,
Thank you for your post.
You will need to add an additional data series to your script and pull the Close[0] from this data series.
For example:
Then you would call that information with 'Closes[1][1]', which will pull the previous bar for the second data series.Code:Add(PeriodType.Second, 1);
For information on using multiple instruments and intervals in your script please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm
Please let me know if I may be of further assistance.
-
Hello Alexpl,
Thank you for your response.
You will use GetCurrentAsk() and GetCurrentBid().
If you want the Ask of the 1 Second PeriodType added to your strategy you would use GetCurrentAsk(1) and GetCurrentBid(1) for the last Bid price.
For information on Bid and Ask Methods please visit the following links:
GetCurrentAsk(): http://www.ninjatrader.com/support/h...currentask.htm
GetCurrentBid(): http://www.ninjatrader.com/support/h...currentbid.htm
GetCurrentAskVolume(): http://www.ninjatrader.com/support/h...taskvolume.htm
GetCurrentBidVolume(): http://www.ninjatrader.com/support/h...tbidvolume.htm
Please let me know if I may be of further assistance.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment