Quantcast
Viewing latest article 10
Browse Latest Browse All 15

Updated Wiki: Documentation

Getting Started

1. Add reference to Atdl4net.dll
2. 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">
3. Add an AtdlControl to the XAML markup (Grid is optional):
<Grid><atdl4net:AtdlControlx:Name="AtdlControl1"/></Grid>
4. Create a StrategiesReaderProvider and load it with your ATDL file:
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));
5. Set the control's Strategy property to the strategy of interest, having first called LoadDefaults on the strategy's controls:
    Strategy_t strategy = strategyProvider.GetStrategyByName(providerId, "VWAP");

    strategy.Controls.LoadDefaults();

    AtdlControl1.Strategy = strategy;
6. Call the GetOutputValues method of the Strategy_t to get the output FIX tags and their values.

Viewing latest article 10
Browse Latest Browse All 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>