Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Daily Pivot Points
Collapse
X
-
Hello kiro1000,
Thanks for your notes.
QuantKey_Bruce is correct and has provided some great advice.
The public enums would need to have a unique name such as "MyHLCCalculationMode" instead of the default "HLCCalculationMode".
PivotsTypeConverter would also need to be changed to something like "MyPivotsTypeConverter"
And, on line 456 "(Pivots) value" would need to be changed to the name of the indicator, such as "(PivotsMyPIVOTS) value"<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello,
Thank you Bruce and Brandon for your message and guidance.
Thank you very much Brandon for your clear and very well explained answer.
I've implemented the recommended changes, ensuring unique names for public enums, such as "MyHLCCalculationMode" and "MyPivotsTypeConverter." The adjustments compiled successfully, and I appreciate your assistance.
However, when attempting to load the indicator on the chart, a message box displayed the following :
Unhandled exception: Impossible to cast an object of type 'NinjaTrader.NinjaScript.Indicators.MyPivots' in type 'NinjaTrader.NinjaScript.Indicators.Pivots'
Thanks and best regards,
Comment
-
Hello kiro1000,
Thanks for your notes.
To resolve this error message you would need to edit the TypeConverter around line 33 to reflect the correct name.
This code below:
[TypeConverter("NinjaTrader.NinjaScript.Indicators. PivotsTypeConverter")]
Should be changed to something like this:
[TypeConverter("NinjaTrader.NinjaScript.Indicators. MyPivotsTypeConverter")]
<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello Brandon,
Thank you for your prompt response and guidance.
I've successfully made the suggested change in the TypeConverter around line 33, updating it to reflect the correct name.
I'm pleased to share that it works !
Your assistance has been invaluable in resolving this issue
Thanks again for your support
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
129 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
74 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
116 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
111 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
89 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment