Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

String Parameters

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

    String Parameters

    I have 2 user inputs..

    Code:
     
    private string price1 = "Bid";
    private string price2 = "Ask";
    Under Properties I have..

    Code:
    public string Price1
    {
    get { return price1; }
    set { price1 = value; }
    }
     
    public string Price2
    {
    get { return price2; }
    set { price2 = value; }
    }
    When I input values for Price1 or Price2 on the chart, they get mixed up. For example if I input Price1="Bid" and Price2="Ask", The chart may say strategy("Bid","Bid") or ("Ask","Bid"). There seems to be no logic as to why these values are changing. Any idea why?

    #2
    Hi SystemTrading,

    Thanks for your post.

    Please try 'Int' inputs instead and check if that resolves your issue.




    Originally posted by SystemTrading View Post
    I have 2 user inputs..

    Code:
     
    private string price1 = "Bid";
    private string price2 = "Ask";
    Under Properties I have..

    Code:
    public string Price1
    {
    get { return price1; }
    set { price1 = value; }
    }
     
    public string Price2
    {
    get { return price2; }
    set { price2 = value; }
    }
    When I input values for Price1 or Price2 on the chart, they get mixed up. For example if I input Price1="Bid" and Price2="Ask", The chart may say strategy("Bid","Bid") or ("Ask","Bid"). There seems to be no logic as to why these values are changing. Any idea why?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    344 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    557 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X