Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Power of Three (PO3)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MiCe1999
    replied
    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.


    Attached Files
    Last edited by MiCe1999; 04-05-2025, 09:04 AM.

    Leave a comment:


  • NISNOS69
    replied
    Originally posted by danwcw View Post


    Thank you very much. This is brilliant!
    agreed brilliant thankyou

    Leave a comment:


  • Noongun
    replied
    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

    Leave a comment:


  • Noongun
    replied
    Yeah I have no idea how to code this.

    Leave a comment:


  • danwcw
    replied
    Originally posted by MiCe1999 View Post


    If you're ok with uglier candles and worse code: Unlimited candles, 50% retrace point, strat candle type and ATR.

    Thank you very much. This is brilliant!

    Leave a comment:


  • MiCe1999
    replied
    Click image for larger version

Name:	image.png
Views:	758
Size:	39.1 KB
ID:	1337822

    If you're ok with uglier candles and worse code: Unlimited candles, 50% retrace point, strat candle type and ATR.

    Leave a comment:


  • danwcw
    replied
    Originally posted by rockmanx00 View Post
    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.
    Do you mind sharing please the latest with the 3 candles if already updated? Adding codes for the 3 candles is way beyond me.

    Leave a comment:


  • rockmanx00
    replied
    Originally posted by neveral0n3 View Post
    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.
    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.

    Originally posted by Noongun View Post
    Click image for larger version  Name:	Screenshot 2025-03-15 105333.png Views:	0 Size:	17.8 KB ID:	1337806 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?
    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.
    Attached Files
    Last edited by rockmanx00; 03-15-2025, 07:42 PM.

    Leave a comment:


  • neveral0n3
    replied
    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.

    Leave a comment:


  • Noongun
    replied
    Click image for larger version

Name:	Screenshot 2025-03-15 105333.png
Views:	1037
Size:	17.8 KB
ID:	1337806 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?
    Attached Files
    Last edited by Noongun; 03-15-2025, 02:06 PM.

    Leave a comment:


  • MiCe1999
    replied
    Originally posted by neveral0n3 View Post
    is this po3 indicator available to download? also looking for something like t00 degrees for nt8



    Leave a comment:


  • rockmanx00
    replied
    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:


  • neveral0n3
    replied
    is this po3 indicator available to download? also looking for something like t00 degrees for nt8

    Leave a comment:


  • MiCe1999
    replied
    Originally posted by rockmanx00 View Post
    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.
    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.

    ​​


    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;
    }&#8203; 
    

    Leave a comment:


  • rockmanx00
    replied
    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.

    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 Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
109 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
57 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
108 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
65 views
0 likes
Last Post PaulMohn  
Working...
X