Getting Started
1. Add reference to Atdl4net.dll2. Add namespace to your .xaml file:
<Windowx:Class="Atdl4netDemo.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:atdl4net="clr-namespace:Atdl4net.Wpf;assembly=Atdl4net">
<Grid><atdl4net:AtdlControlx:Name="AtdlControl1"/></Grid>
string filePath = @"C:\Atdl4net\Test Data\broker_abc_strategies.xml"; FileInfo file = new FileInfo(filePath); string providerId = file.Name; StrategiesReaderProvider strategyProvider = new StrategiesReaderProvider(); strategyProvider.Load(new FileProviderContext(file, providerId));
Strategy_t strategy = strategyProvider.GetStrategyByName(providerId, "VWAP");
strategy.Controls.LoadDefaults();
AtdlControl1.Strategy = strategy;