Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where is my value?

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

    Where is my value?

    Ninja should print this out but it does not, does not make any sence to me!

    Her is the code

    String filenameTR15min = "C:\\Tools Backup\\60minTrendupdate\\"+ Instrument.FullName +"15min.txt";

    StreamReader SR15min;
    try{
    SR15min=File.OpenText(filenameTR15min);
    Trendcolor15min=SR15min.ReadLine();
    OldmanualTrendValue15=SR15min.ReadLine();
    SR15min.Close();
    Print (
    "*****New Trend Color**********");
    Print (Trendcolor15min);
    Print (OldmanualTrendValue15);

    Print (
    "*****New Trend Color**********");
    }
    catch
    {
    Print (
    "Read from 15min");
    //throw ;
    }
    Her is the result
    _________________________________
    ****************************
    *****New Trend Color**********
    Red

    *****New Trend Color**********
    ****************************
    _____________________________________
    Their should be 2 Red like this
    ****************************
    *****New Trend Color**********
    Red
    Red
    *****New Trend Color**********
    ****************************
    _____________________________________

    Thanks in advance
    Crunchy

    #2
    hmmm, that is why,

    I think it's becuase the next line in the file is EMPTY,
    that make more sence.
    Crunchy

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    65 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X