Want to develope an indicator that identifies these kind of dates. How could I do it, please?. Thank you
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How identify expiration dates
Collapse
X
-
How identify expiration dates
Hi, I would like to know how could I identify expiration dates. I´ve read the use of "Instrument.expiry" but I think it returns the month but not the day.
Want to develope an indicator that identifies these kind of dates. How could I do it, please?. Thank youTags: None
-
Hello socoso,
Thank you for your post.
The Instrument.Expiry returns the expiration date in the following format:
If you wish to test this try the following in your script and open the Output Window to see the output (Tools > Output window):mm/dd/yyyy hh:mm:ss
For information on Instrument.Expiry please visit the following link: http://www.ninjatrader.com/support/h...nt7/expiry.htmCode:protected override void OnBarUpdate() { Print(Instrument.Expiry);
Please let me know if you have any questions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
36 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
23 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
162 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
96 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
152 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment