Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
referencing enum syntax in strategy
Collapse
X
-
Hello tkaboris,
Thank you for your post.
I suggest checking out the following reference sample which demonstrates the use of an enum in the property grid as use case #4:
Based on your screenshots, you may need to type in dpEnum. and then after the period the intelliprompt should pop up with a list of the options you could use.
Please let us know if we may be of further assistance.
-
Tnothign is showing after i hit the dot.. In the example i didnt see what needs to be done.
I used stochastics colored version
Comment
-
Hello tkaboris,
Thank you for your reply.
I found the following in line 166 of the script you provided:
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
You should be able to type in Sim22_PriceFormatter.FormatNumberDecimalPlacesEnum . followed by the selection for the enum that you'd like to choose. Enums are a general C# concept and are not specific to NinjaTrader. More information may be found via publicly available resources, such as the Microsoft documentation at the following link:Please let us know if we may be of further assistance.
Comment
-
Thank you i was able to get it to work, it uses addon and price formatter had to be referenced via addon as well.
I am trying to access those reversals up and down but i just cant, there is no error in compilation but in prints its always 0s, even though there are signals on the chart. What am i doing wrong?
Code:private Series<double> sRevUp; private Series<double> sRevDown; myStochInd = Sim22_Stochastics_Colored_AnyInputGLV1(Close,Sim22_PriceFormatter.FormatNumberDecimalPlacesEnum.SameAsInstrument, true,7,14,3,true,true,true,30,false,0); AddChartIndicator(myStochInd); sRevUp = myStochInd.DReversalUp; sRevDown = myStochInd.DReversalDown; sRevUp = new Series<double>(this); sRevDown = new Series<double>(this); Print("d rev up" + sRevUp[0]); Print("d rev down" + sRevDown[0]);
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
90 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
137 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
120 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
71 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment