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 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