What is the actual method that is not supported? How can I get more details about this error?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
**NT** Error on triggering custom event for strategy Specified method is not supporte
Collapse
X
-
-
private void CheckStopTimerEventHandler(object sender, System.Timers.ElapsedEventArgs e)
{
if (!System.Threading.Monitor.TryEnter(m_stopLock))
{
return;
}
try
{
Parent.TriggerCustomEvent(UpdateStopTimer, 0, null);
}
catch (Exception ex)
{
Parent.Print(ex.Message);
Parent.Print(ex.StackTrace);
}
finally
{
System.Threading.Monitor.Exit(m_stopLock);
}
}
Note that this method is called by System.Timers.Timer once per 1 second
Comment
-
Hello alex.nt,
The try and catch does appear to be OK.
The issue may be in the UpdateStopTimer method.
May I have a reduced version of your script with only the code necessary to reproduce this error?
To export your script do the following:
- Click File -> Utilities -> Export NinjaScript
- Enter a unique name for the file in the value for 'File name:'
- Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
- Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message
By default your exported file will be in the following location:- (My) Documents/NinjaTrader 7/bin/Custom/ExportNinjaScript/<export_file_name.zip>
Below is a link to the help guide on Exporting NinjaScripts.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
662 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
376 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment