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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment