Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 rhyminkevin, Today, 04:58 PM
|
3 responses
48 views
0 likes
|
Last Post
by Anfedport
Today, 05:24 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
50 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment