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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    60 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X