diff --git a/Stupesoft.LazyScalp.ConsoleUI/Stupesoft.LazyScalp.ConsoleUI.csproj b/Stupesoft.LazyScalp.ConsoleUI/Stupesoft.LazyScalp.ConsoleUI.csproj index eabaa6f..86e6a9c 100644 --- a/Stupesoft.LazyScalp.ConsoleUI/Stupesoft.LazyScalp.ConsoleUI.csproj +++ b/Stupesoft.LazyScalp.ConsoleUI/Stupesoft.LazyScalp.ConsoleUI.csproj @@ -18,7 +18,7 @@ - + diff --git a/Stupesoft.LazyScalp.ConsoleUI/appsettings.Development.json b/Stupesoft.LazyScalp.ConsoleUI/appsettings.Development.json index 876c22c..74e6d99 100644 --- a/Stupesoft.LazyScalp.ConsoleUI/appsettings.Development.json +++ b/Stupesoft.LazyScalp.ConsoleUI/appsettings.Development.json @@ -3,27 +3,6 @@ "App": "Filename=D:\\LazyScalp.db;Connection=Shared", "TradingViewDB": "Filename=D:\\TradingViewDB.db;Connection=Shared" }, - "indicator": { - "HighLevelPosition": { - "X": 2285, - "Y": 110 - }, - "LowLevelPosition": { - "X": 2285, - "Y": 140 - }, - "CodeColorIndicatorTarget": { - "X": 2180, - "Y": 680 - }, - "CodeColorIndicatorSideSize": 10 - }, - "imagePreparation": { - "Left": 65, - "Top": 50, - "Right": 2400, - "Bottom": 825 - }, "Application": { "NotificationDelayTimeMin": 1, "Features": { @@ -32,7 +11,8 @@ }, "Scaner": { "ReloadDelayTimeSecond": 10, - "ChromeProfile": "Profile 3" + "ChromeProfile": "Profile 2", + "ChromeDataUserDir": "C:\\Users\\stupean\\AppData\\Local\\Google\\Chrome\\User Data\\" }, "ScalpStation": { "Filters": [ diff --git a/Stupesoft.LazyScalp.ConsoleUI/appsettings.json b/Stupesoft.LazyScalp.ConsoleUI/appsettings.json index c673b4d..17eec51 100644 --- a/Stupesoft.LazyScalp.ConsoleUI/appsettings.json +++ b/Stupesoft.LazyScalp.ConsoleUI/appsettings.json @@ -57,7 +57,8 @@ }, "ReloadDelayTimeSecond": 60, "SkipAuth": true, - "ChromeProfile": "Default" + "ChromeProfile": "Default", + "ChromeDataUserDir": "C:\\Users\\Anton\\AppData\\Local\\Google\\Chrome\\User Data\\" }, "ScalpStation": { "url": "https://scalpstation.com/kapi/binance/futures/kdata", diff --git a/Stupesoft.LazyScalp.TradingView/Services/WebDriverFactory.cs b/Stupesoft.LazyScalp.TradingView/Services/WebDriverFactory.cs index 44d591c..524d535 100644 --- a/Stupesoft.LazyScalp.TradingView/Services/WebDriverFactory.cs +++ b/Stupesoft.LazyScalp.TradingView/Services/WebDriverFactory.cs @@ -29,7 +29,7 @@ public IWebDriver Create() options.AddArgument("--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"); if (_scanerOptions.Value.SkipAuth) { - options.AddArgument(@"--user-data-dir=C:\Users\Anton\AppData\Local\Google\Chrome\User Data\"); + options.AddArgument(@$"--user-data-dir={_scanerOptions.Value.ChromeDataUserDir}"); options.AddArgument(@$"--profile-directory={_scanerOptions.Value.ChromeProfile}"); } else diff --git a/Stupesoft.LazyScalp.TradingView/TradingViewOptions.cs b/Stupesoft.LazyScalp.TradingView/TradingViewOptions.cs index fcbaa12..e63553d 100644 --- a/Stupesoft.LazyScalp.TradingView/TradingViewOptions.cs +++ b/Stupesoft.LazyScalp.TradingView/TradingViewOptions.cs @@ -14,6 +14,7 @@ public class ScanerOptions public int ReloadDelayTimeSecond { get; set; } public bool SkipAuth { get; set; } public string? ChromeProfile { get; set; } + public string? ChromeDataUserDir { get; set; } } public class SelectorsOptions