Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
plot 50% of previous candle
Collapse
X
-
plot 50% of previous candle
Hi. I used to have an indicator setting - either EMA or SMA - that would plot a dot at the 50% level of the previous candle. I removed it, and now I don't remember the correct settings. I've tried the lookback at 1, and various other timeframes, but I can't get it to show the 50%. Does anyone know what I should use? Thanks much -Tags: None
-
Hello pma24,
Welcome to the NinjaTrader forums.
"plot a dot at the 50% level of the previous candle"
Are you meaning 50% of the high minus the low of the previous candle?
Code:// low of previous bar plus the difference of the high and low of previous bar multiplied by .5 double previousCandleMid = Low[1] + (High[1] - Low[1]) * .5 Draw.Dot(this, "myDot" + CurrentBar, true, 0, previousCandleMid, Brushes.Blue);
Chelsea B.NinjaTrader Customer Service
-
Hello pma24,
You are currently posting in the Indicator Development section of the forums for topics related to programming Ninjascripts in C#. You are currently developing your own indicator code is this correct?
Below is a link to a support article with helpful resources on getting started with NinjaScript and C#.
Also, below are links to the help guide.
You can copy and paste this code into the OnBarUpdate() override method in an indicator.
Chelsea B.NinjaTrader Customer Service
Comment
-
Hello pma24,
If you were looking to ask about finding existing completed scripts that you can download and import, that would be the NinjaScript File Sharing Discussion section of the forums.
If you were asking about how to use the Desktop platform, such as settings or system indicators, that would be the Platform Technical Support section of the forums.
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
559 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
546 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment