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 jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,290 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
9 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
11 responses
62 views
0 likes
|
Last Post Today, 10:08 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
25 views
0 likes
|
Last Post Today, 09:41 AM |
Comment