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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment