• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with XALM file

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

    Problem with XALM file

    Hello Dear Friends.
    I have indicator and XALM file.
    How I can put all code XALM file to the code CS file?

    Now I read data from XALM:

    Page page = new Page();
    FileStream fs = new FileStream(System.IO.Path.Combine(NinjaTrader.Core .Globals.UserDataDir, @"bin\Custom\AddOns\WPF_Propertis_HFT.xaml"), FileMode.Open);
    page = (Page)XamlReader.Load(fs);

    How I can read the data from CS file?

    Thank You Very Much.

    #2
    Hello _Roman,

    Thank you for the post.

    I am not certain I understand the question as it was written, can you further explain what you would like to do at this point with the syntax you provided?

    Are you asking how to include the XAML with an export? You can include the .XAML file as a resource in an export using the steps here: https://ninjatrader.com/support/help...lyzerTemplates

    If you are otherwise trying to recreate what you have done in xaml in just c# code, you would need to search online for C# ways to create WPF controls with only code. There are many tutorials online that cover this subject. Instead of loading a .xaml file and parsing it, you could construct your controls using only code and apply that control as the page content.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mykro, Today, 04:58 PM
    0 responses
    2 views
    0 likes
    Last Post Mykro
    by Mykro
     
    Started by edunwa, Today, 04:11 PM
    0 responses
    6 views
    0 likes
    Last Post edunwa
    by edunwa
     
    Started by yeshujbp, Today, 02:40 PM
    0 responses
    7 views
    0 likes
    Last Post yeshujbp  
    Started by Venom, Today, 01:05 PM
    0 responses
    10 views
    0 likes
    Last Post Venom
    by Venom
     
    Started by Dert66, Today, 12:11 PM
    0 responses
    7 views
    0 likes
    Last Post Dert66
    by Dert66
     
    Working...
    X