Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Power of Three (PO3)
Collapse
X
-
MarginMultiCandlesticks3.cs : Added Fibonacci retracement lines and ability to shift the candles so few indicators can be used on the same chart. It's not optimized for performance, be sure to validate that it works on your PC.
Last edited by MiCe1999; 04-05-2025, 09:04 AM.
- Likes 1
-
Originally posted by rockmanx00 View Post
Is this the indicator I made? If it is you would need to replace the code in OnStateConfigure
TextBrush = xTextBrush;
UpCandleOutlineBrush = xUpCandleOutlineBrush;
DownCandleOutlineBrush = xDownCandleOutlineBrush;
WickBrush = xWickBrush;
UpCandleFillBrush = xUpCandleFillBrush;
DownCandleFillBrush = xDownCandleFillBrush;
I had originally hard coded the brush colors and forgot to change that part.
It is possible. And it would look similar to what you are doing? You would just need to keep track of a set of OHLC doubles for every candle you are trying to add. You would just use the data from the higher time frame to get that data and index it appropriately. You would also need to determine where you wanted to place said candle. If you are not using any price data, then you can use the candle body start point and subtract an offset, in a similar way to how the first candle is already set up. Using prints would help you understand how adding and subtracting would affect how the rectangles are positioned.
Is there any way you can release this version of the code? Would essentially be doing us a favor but im struggling with ninjascript a bit. Thanks in advance
- Likes 1
Leave a comment:
-
If you're ok with uglier candles and worse code: Unlimited candles, 50% retrace point, strat candle type and ATR.
- Likes 1
Leave a comment:
-
Do you mind sharing please the latest with the 3 candles if already updated? Adding codes for the 3 candles is way beyond me.Originally posted by rockmanx00 View PostIt is possible. And it would look similar to what you are doing? You would just need to keep track of a set of OHLC doubles for every candle you are trying to add. You would just use the data from the higher time frame to get that data and index it appropriately. You would also need to determine where you wanted to place said candle. If you are not using any price data, then you can use the candle body start point and subtract an offset, in a similar way to how the first candle is already set up. Using prints would help you understand how adding and subtracting would affect how the rectangles are positioned.
- Likes 1
Leave a comment:
-
Is this the indicator I made? If it is you would need to replace the code in OnStateConfigureOriginally posted by neveral0n3 View PostHey guys - indicator has alot of potential. Like Noongun mentioned how do I add multiple candles 3-4 to the right side? Also the Hex color pallete doesnt update when I add different colors to the candles to match my existing theme.
TextBrush = xTextBrush;
UpCandleOutlineBrush = xUpCandleOutlineBrush;
DownCandleOutlineBrush = xDownCandleOutlineBrush;
WickBrush = xWickBrush;
UpCandleFillBrush = xUpCandleFillBrush;
DownCandleFillBrush = xDownCandleFillBrush;
I had originally hard coded the brush colors and forgot to change that part.
It is possible. And it would look similar to what you are doing? You would just need to keep track of a set of OHLC doubles for every candle you are trying to add. You would just use the data from the higher time frame to get that data and index it appropriately. You would also need to determine where you wanted to place said candle. If you are not using any price data, then you can use the candle body start point and subtract an offset, in a similar way to how the first candle is already set up. Using prints would help you understand how adding and subtracting would affect how the rectangles are positioned.Originally posted by Noongun View PostLast edited by rockmanx00; 03-15-2025, 07:42 PM.
Leave a comment:
-
Hey guys - indicator has alot of potential. Like Noongun mentioned how do I add multiple candles 3-4 to the right side? Also the Hex color pallete doesnt update when I add different colors to the candles to match my existing theme.
- Likes 1
Leave a comment:
-
I've been trying to figure out how to add more of the HTF bars to the side of the screen but I can't figure it out. Like instead of a single hourly bar, have 3 of them. Anyone know what I can add to make that happen?
Last edited by Noongun; 03-15-2025, 02:06 PM.
Leave a comment:
-
Originally posted by neveral0n3 View Postis this po3 indicator available to download? also looking for something like t00 degrees for nt8
Leave a comment:
-
There were a few different suggestions regarding the po3 indicator including the one I posted. One was available for download, another is code you can copy, and mine was a .cs file.
Leave a comment:
-
is this po3 indicator available to download? also looking for something like t00 degrees for nt8
Leave a comment:
-
Thanks again. I figured out how to get our candle to draw where it starts on the primary. It's probably useful for short time frames only.Originally posted by rockmanx00 View PostFor the timer, I pretty much copied logic from the bar timer that came with ninjatrader so if that doesn't slow things down for you, this shouldn't either. It does force refresh and I haven't noticed any slow downs on my end. Also, as you can see, I've been updating it a lot. I've been using it and noticed small things here and there that bug me about it, so I tend to upgrade it frequently. If you notice anything buggy about it, please feel free to let me know so I get work on it. I've tried to set the HTF bar to a 38 minute bar, and that still works.
PHP Code:private int GetCurrentHTFStartBarIndex() { // add return if secondary bar still the same // Start from most recent bar and walk forward in time int currentBar = 0; // our index // Get HTF time - using index 1 since bars have close timestamp long htfTicks = Times[1][1].Ticks; //Print($"HTF Time: {Times[1][1]}"); //Print($"Starting search from primary bar: {currentBar+1}"); // Walk backward until we find the bar belonging to previous HTF period while(currentBar < CurrentBars[0]) { // Check next bar's time if(Times[0][currentBar + 1].Ticks < htfTicks) { //Print($"Found HTF period start at primary bar: {currentBar}"); //Print($"Start bar time: {Times[0][currentBar]}"); break; } currentBar++; } return CurrentBars[0]-currentBar; }​
Leave a comment:
-
For the timer, I pretty much copied logic from the bar timer that came with ninjatrader so if that doesn't slow things down for you, this shouldn't either. It does force refresh and I haven't noticed any slow downs on my end. Also, as you can see, I've been updating it a lot. I've been using it and noticed small things here and there that bug me about it, so I tend to upgrade it frequently. If you notice anything buggy about it, please feel free to let me know so I get work on it. I've tried to set the HTF bar to a 38 minute bar, and that still works.
- Likes 1
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
78 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
109 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
57 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
108 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
65 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Leave a comment: