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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X