• 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 Johnny Santiago, Today, 06:18 PM
    1 response
    6 views
    0 likes
    Last Post Johnny Santiago  
    Started by EnveousColnago, Today, 05:43 PM
    0 responses
    7 views
    0 likes
    Last Post EnveousColnago  
    Started by Zigfried, Today, 02:30 PM
    2 responses
    10 views
    0 likes
    Last Post Zigfried  
    Started by lunardiplomacy, Today, 11:35 AM
    4 responses
    18 views
    0 likes
    Last Post lunardiplomacy  
    Started by silverm3170, Today, 11:24 AM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X