Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print DataSeries Chart Style & Write .txt

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

    Print DataSeries Chart Style & Write .txt

    Hello, i have 2 issues im trying to solve, fairy simple i think but wasn't able to find an answer, this r my questions:

    1: how do i get to print the chart "bar style" meaning Minute, Renko, Range, etc?


    2: if i wanted it to write the previous result on an .txt, how would i do that? i downloaded the "SampleStreamWriter" example and been trying to make it work but failed.


    something like this?

    #region Variables

    private string path = Cbi.Core.UserDataDir.ToString() + "D:\test.txt";
    private System.IO.StreamWriter sw;

    protected override void Initialize()
    {

    sw.WriteLine( );

    #2
    Hello,

    1) You can user BarsPeriod to print the PeriodType or PeriodValue you are using:



    2) Yes, SampleStreamWriter should help you get started.

    Please try moving your WriteLine to the OnBarUpdate method.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Hi Matthew

      So far i have this:

      Print( Instrument.FullName + " │ "+ BarsPeriod.Id.ToString() +" │ " + BarsPeriod.Value.ToString( ) +" │ "+ GetType().Name +" │ "+ Time[0] );//

      and i get this:

      $EURUSD │ Final1 │ 26 │ KBT_Hot_Zones_1 │ 16/08/2012 03:50:46 a.m.

      Nothing about the chart type, what im I missing?

      2- Whould you point me to an easy explained tutorial on "StreamWriter " since i really cant start with the indicator, i dont understand were each thing goes

      thank you very much


      BTW, im using RangeAlt and Renko bars
      Last edited by kabott; 08-16-2012, 03:21 PM.

      Comment


        #4
        I tried standard Range bars and got the correct name, must be the "RangeAlt" Bars are named "Final1" , anyways i got that solved

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X