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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X