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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X