Skip to content

Commit

Permalink
Hydra. BarChart
Browse files Browse the repository at this point in the history
  • Loading branch information
mikasoukhov committed Jul 8, 2015
1 parent e5e6b8a commit d031eae
Show file tree
Hide file tree
Showing 12 changed files with 847 additions and 35 deletions.
3 changes: 3 additions & 0 deletions Connectors/BarChart/BarChartMessageAdapter.cs
Expand Up @@ -23,6 +23,9 @@

using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;

/// <summary>
/// Маркет-дата адаптер сообщений для BarChart.
/// </summary>
public class BarChartMessageAdapter : MessageAdapter
{
private string _streamAddress;
Expand Down
3 changes: 3 additions & 0 deletions Connectors/BarChart/BarChartTrader.cs
Expand Up @@ -16,6 +16,9 @@
using StockSharp.Logging;
using StockSharp.Messages;

/// <summary>
/// Реализация интерфейса <see cref="IConnector"/> для взаимодействия с BarChart для скачивания исторических и реал-тайм маркет-данных.
/// </summary>
public class BarChartTrader : Connector, IExternalCandleSource
{
private readonly SynchronizedDictionary<long, RefFive<List<Candle>, SyncObject, bool, CandleSeries, bool>> _candleInfo = new SynchronizedDictionary<long, RefFive<List<Candle>, SyncObject, bool, CandleSeries, bool>>();
Expand Down
129 changes: 129 additions & 0 deletions Hydra/Plugins/BarChart/BarChart.csproj
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{39261454-76F0-4684-8B93-091CBAB63A6A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>StockSharp.Hydra.BarChart</RootNamespace>
<AssemblyName>StockSharp.Hydra.BarChart</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Ecng.Localization">
<HintPath>..\..\..\References\Ecng\Ecng.Localization.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
<Reference Include="Ecng.Collections">
<HintPath>..\..\..\References\Ecng\Ecng.Collections.dll</HintPath>
</Reference>
<Reference Include="Ecng.Common">
<HintPath>..\..\..\References\Ecng\Ecng.Common.dll</HintPath>
</Reference>
<Reference Include="Ecng.ComponentModel">
<HintPath>..\..\..\References\Ecng\Ecng.ComponentModel.dll</HintPath>
</Reference>
<Reference Include="Ecng.Serialization">
<HintPath>..\..\..\References\Ecng\Ecng.Serialization.dll</HintPath>
</Reference>
<Reference Include="Ecng.Xaml">
<HintPath>..\..\..\References\Ecng\Ecng.Xaml.dll</HintPath>
</Reference>
<Reference Include="Xceed.Wpf.Toolkit">
<HintPath>..\..\..\References\Ecng\Xceed.Wpf.Toolkit.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\StockSharpAssemblyInfo.cs">
<Link>Properties\StockSharpAssemblyInfo.cs</Link>
</Compile>
<Compile Include="BarChartTask.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Resource Include="barchart_logo.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\StockSharp %28GitLab%29\Algo.History\Algo.History.csproj">
<Project>{5814D093-FA6D-44A5-B75B-4CC7E8F11EB0}</Project>
<Name>Algo.History</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Algo\Algo.csproj">
<Project>{2a5c6fad-106c-4a4a-b602-77a6b1034ca2}</Project>
<Name>Algo</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\BusinessEntities\BusinessEntities.csproj">
<Project>{dce69db8-53ca-4b7f-9368-02f175a31074}</Project>
<Name>BusinessEntities</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Connectors\BarChart\BarChart.csproj">
<Project>{99b84e0c-d035-4bd9-8a42-8232ed6ba3f4}</Project>
<Name>BarChart</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Localization\Localization.csproj">
<Project>{A98A81CE-75A1-4FAB-9C02-E6EEF4B51F4F}</Project>
<Name>Localization</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Logging\Logging.csproj">
<Project>{c4476add-a3d5-41bb-9d43-55d865863b78}</Project>
<Name>Logging</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Messages\Messages.csproj">
<Project>{b47f9c23-a4bd-46a9-bf27-54cb3d653503}</Project>
<Name>Messages</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Xaml\Xaml.csproj">
<Project>{64E4D6F0-36B6-4904-9BA7-FFFBE5FF71D8}</Project>
<Name>Xaml</Name>
</ProjectReference>
<ProjectReference Include="..\..\Core\Core.csproj">
<Project>{95ca16e0-0a47-43a3-aab7-7e0803e817ca}</Project>
<Name>Core</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>call ..\..\..\plugins.bat $(ProjectName) $(ConfigurationName)

copy StockSharp.BarChart.dll ..\..\..\..\Hydra\bin\$(ConfigurationName)\Plugins\StockSharp.BarChart.dll</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
128 changes: 128 additions & 0 deletions Hydra/Plugins/BarChart/BarChartPublic.csproj
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{39261454-76F0-4684-8B93-091CBAB63A6A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>StockSharp.Hydra.BarChart</RootNamespace>
<AssemblyName>StockSharp.Hydra.BarChart</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Ecng.Localization">
<HintPath>..\..\..\References\Ecng\Ecng.Localization.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="StockSharp.Algo.History">
<HintPath>..\..\..\Algo.History\StockSharp.Algo.History.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
<Reference Include="Ecng.Collections">
<HintPath>..\..\..\References\Ecng\Ecng.Collections.dll</HintPath>
</Reference>
<Reference Include="Ecng.Common">
<HintPath>..\..\..\References\Ecng\Ecng.Common.dll</HintPath>
</Reference>
<Reference Include="Ecng.ComponentModel">
<HintPath>..\..\..\References\Ecng\Ecng.ComponentModel.dll</HintPath>
</Reference>
<Reference Include="Ecng.Serialization">
<HintPath>..\..\..\References\Ecng\Ecng.Serialization.dll</HintPath>
</Reference>
<Reference Include="Ecng.Xaml">
<HintPath>..\..\..\References\Ecng\Ecng.Xaml.dll</HintPath>
</Reference>
<Reference Include="Xceed.Wpf.Toolkit">
<HintPath>..\..\..\References\Ecng\Xceed.Wpf.Toolkit.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\StockSharpAssemblyInfo.cs">
<Link>Properties\StockSharpAssemblyInfo.cs</Link>
</Compile>
<Compile Include="BarChartTask.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Resource Include="barchart_logo.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Algo\Algo.csproj">
<Project>{2a5c6fad-106c-4a4a-b602-77a6b1034ca2}</Project>
<Name>Algo</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\BusinessEntities\BusinessEntities.csproj">
<Project>{dce69db8-53ca-4b7f-9368-02f175a31074}</Project>
<Name>BusinessEntities</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Connectors\BarChart\BarChart.csproj">
<Project>{99b84e0c-d035-4bd9-8a42-8232ed6ba3f4}</Project>
<Name>BarChart</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Localization\Localization.csproj">
<Project>{A98A81CE-75A1-4FAB-9C02-E6EEF4B51F4F}</Project>
<Name>Localization</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Logging\Logging.csproj">
<Project>{c4476add-a3d5-41bb-9d43-55d865863b78}</Project>
<Name>Logging</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Messages\Messages.csproj">
<Project>{b47f9c23-a4bd-46a9-bf27-54cb3d653503}</Project>
<Name>Messages</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Xaml\Xaml.csproj">
<Project>{64E4D6F0-36B6-4904-9BA7-FFFBE5FF71D8}</Project>
<Name>Xaml</Name>
</ProjectReference>
<ProjectReference Include="..\..\Core\Core.csproj">
<Project>{95ca16e0-0a47-43a3-aab7-7e0803e817ca}</Project>
<Name>Core</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>call ..\..\..\plugins.bat $(ProjectName) $(ConfigurationName)

copy StockSharp.BarChart.dll ..\..\..\..\Hydra\bin\$(ConfigurationName)\Plugins\StockSharp.BarChart.dll</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

0 comments on commit d031eae

Please sign in to comment.