Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

this should be working

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

    this should be working

    Hi Support,

    This is realy strange, sometime I get output and sometimes not!
    I am absolutely sure their is nothing wrong with the code,
    could you help please?
    If I only have 1 to 2 print command then it works,then I introduce more print commands, then its not working, that simply does not make any sence.

    Best regards
    Crunchy

    int
    idx= 0;
    idx =S.IndexOf(
    "gbpusd") ;
    if (idx > 0 ){
    Print("yes");
    Print (idx);
    String Ticket=null;
    String Amount=
    null;
    String Type=
    null;
    String SL=
    null;

    Ticket = S.Substring(
    7, 9);
    Print (Ticket);
    Amount = S.Substring(39, 5);
    Print (Amount);
    Type = S.Substring(27,3);
    Print (Type);
    SL = S.Substring(62,5);
    Print (SL);
    String Symb = null;
    Print (Instrument.FullName);
    Symb =(Instrument.FullName);
    Symb = Symb.ToLower();
    Symb = Symb.Substring(1,6);
    Print (Symb);
    idx =S.IndexOf("gbpusd") ;
    String SL=
    null;
    SL = S.Substring(
    62,5);
    Print (SL);
    String Symb =
    null;
    Print (Instrument.FullName);
    Symb =(Instrument.FullName);
    Symb = Symb.ToLower();
    Symb = Symb.Substring(
    1,6);
    Print (Symb);
    }

    #2
    crunchy, any log errors as you run this script? How did you define S?

    You would likely need to simplify as much as possible and then work from a version where you know the prints are issued as you would expect, it's likely a sign your conditions for doing so are not hitting all the time you expect.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X