Commit Latest
BIN
PortfolioManager/Assets/AmberTriangleDown.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.0 KiB |
BIN
PortfolioManager/Assets/Blank.png
Normal file
|
After Width: | Height: | Size: 193 B |
BIN
PortfolioManager/Assets/BlueTriangleDown.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.0 KiB |
BIN
PortfolioManager/Assets/DarkBlueTriangleDown.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
PortfolioManager/Assets/MagentaTriangleDown.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.0 KiB |
BIN
PortfolioManager/Assets/OrangeTriangleDown.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1022 B |
BIN
PortfolioManager/Assets/YellowTriangleDown.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -5,6 +5,8 @@ using Avalonia.Media.Imaging;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using MarketData;
|
||||
using MarketData.CNNProcessing;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace PortfolioManager.Cache
|
||||
{
|
||||
@@ -29,6 +31,7 @@ namespace PortfolioManager.Cache
|
||||
pathToAssets = currentDirectory + "/Assets";
|
||||
}
|
||||
MDTrace.WriteLine(LogLevel.DEBUG, $"Reading assets from {pathToAssets}");
|
||||
|
||||
imageCache.Add(ImageCache.ImageType.BlueTriangleUp, new Bitmap(pathToAssets + "/BlueTriangleUp.png"));
|
||||
imageCache.Add(ImageCache.ImageType.GreenTriangleUp, new Bitmap(pathToAssets + "/GreenTriangleUp.png"));
|
||||
imageCache.Add(ImageCache.ImageType.GreenTriangleDown, new Bitmap(pathToAssets + "/GreenTriangleDown.png"));
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.2.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortfolioManager", "PortfolioManager.csproj", "{5E9565B6-29DD-1DBB-4B36-668515E703C9}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MarketDataLib", "..\..\Boneyard\ARM64\MarketData\MarketDataLib\MarketDataLib.csproj", "{BDF9EE7B-4118-4914-8BF8-07AD75A79F88}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -14,6 +16,10 @@ Global
|
||||
{5E9565B6-29DD-1DBB-4B36-668515E703C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5E9565B6-29DD-1DBB-4B36-668515E703C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5E9565B6-29DD-1DBB-4B36-668515E703C9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BDF9EE7B-4118-4914-8BF8-07AD75A79F88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BDF9EE7B-4118-4914-8BF8-07AD75A79F88}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BDF9EE7B-4118-4914-8BF8-07AD75A79F88}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BDF9EE7B-4118-4914-8BF8-07AD75A79F88}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace PortfolioManager.ViewModels
|
||||
private BollingerBandRenderer bollingerBandRenderer = default;
|
||||
private bool showInsiderTransactions = true;
|
||||
private bool showTradeLabels = true;
|
||||
private bool syncTradeToBand = true;
|
||||
private bool syncTradeToBand = false;
|
||||
private bool useLeastSquaresFit = true;
|
||||
private StopLimits stopLimits = default;
|
||||
|
||||
@@ -185,9 +185,9 @@ namespace PortfolioManager.ViewModels
|
||||
try
|
||||
{
|
||||
if (saveParameters.ContainsKey("SyncTradeToBand")) syncTradeToBand = Boolean.Parse((from KeyValuePair<String, String> item in saveParameters where item.Key.Equals("SyncTradeToBand") select item).FirstOrDefault().Value);
|
||||
else syncTradeToBand = true;
|
||||
else syncTradeToBand = false;
|
||||
}
|
||||
catch (Exception) { syncTradeToBand = true; }
|
||||
catch (Exception) { syncTradeToBand = false; }
|
||||
try
|
||||
{
|
||||
if (saveParameters.ContainsKey("ShowTradeLabels")) showTradeLabels = Boolean.Parse((from KeyValuePair<String, String> item in saveParameters where item.Key.Equals("ShowTradeLabels") select item).FirstOrDefault().Value);
|
||||
|
||||
@@ -5,5 +5,8 @@ Type,PortfolioManager.ViewModels.CMTrendViewModel,PathFileName,C:\boneyard\marke
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,SPOT,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,False,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,GWRE,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,True,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,CRS,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,True,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,SPY,SelectedWatchList,Valuations,SelectedDayCount,360,SyncTradeToBand,False,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,OPRA,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,True,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,T,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,True,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,NRG,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,False,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,PSO,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,True,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,PARR,SelectedWatchList,Valuations,SelectedDayCount,180,SyncTradeToBand,False,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
Type,PortfolioManager.ViewModels.BollingerBandViewModel,SelectedSymbol,SH,SelectedWatchList,Valuations,SelectedDayCount,90,SyncTradeToBand,False,ShowTradeLabels,True,UseLeastSquaresFit,True,ShowInsiderTransactions,True
|
||||
|
||||