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
Toggle candlesticks visibility on button click
Collapse
X
-
Hello singjay,
Setting the BarBrush and CandleOutlineBrush to transparent would hide the candles. You would need to loop through all of the bars on the chart.
Below is a link to a User App Share script that hides the chart bars.
NYSE Advancing Issues/Declining Issues Uses historical tick data to calculate the ^ADV index minus the ^DECL index to give a simulation of the ^ADD index. Requires a data feed that supports indexes and provides data for the ^ADV (NYSE Advancing Issues) and ^DECL (NYSE Declining Issues). Update June 16th, 2020 – Corrected stroke attributes to […]
As well as a link to an example with button clicks.
I need some guidance. I need to create a script that has 3 plots that are public and they plot either a 1 or 0. But I need to create another indicator that has 3 chart buttons that sets these variables. The first indicator needs to get those values from the second indicator depending on the button clicks. Because of using
Chelsea B.NinjaTrader Customer Service
-
Thanks this helped. Btw, the strategy was not hiding all the candles. It was hiding only subsequent candles after the button click, not historical bars. I've to put this part separately in a custom indicator for now. If it works from a strategy please provide a quick sample code, it would help. Thanks.
Comment
-
Hello singjay,
To loop through all bars and set the brush to transparent.
Code:for (index = 0; index < CurrentBar; index++) { BarBrushes[index] = Brushes.Transparent; }
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by futtrader, 04-21-2024, 01:50 AM
|
6 responses
57 views
0 likes
|
Last Post
by futtrader
Today, 11:54 AM
|
||
Started by sgordet, Today, 11:48 AM
|
0 responses
1 view
0 likes
|
Last Post
by sgordet
Today, 11:48 AM
|
||
Started by Trader146, Today, 11:41 AM
|
0 responses
3 views
0 likes
|
Last Post
by Trader146
Today, 11:41 AM
|
||
Started by jpapa, 04-23-2024, 07:22 AM
|
2 responses
17 views
0 likes
|
Last Post
by rene69851
Today, 11:39 AM
|
||
Started by funk10101, Today, 11:35 AM
|
0 responses
1 view
0 likes
|
Last Post
by funk10101
Today, 11:35 AM
|
Comment