Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 MSerag, Yesterday, 11:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by dcriador, Yesterday, 01:43 AM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by James650, Today, 08:25 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Rogers101, 05-05-2024, 11:30 AM
    14 responses
    40 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by ETFVoyageur, 04-30-2024, 06:05 PM
    11 responses
    80 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X