add TV indicators
This commit is contained in:
parent
72bb6cfda4
commit
f3fa940fd6
|
@ -71,6 +71,10 @@ namespace Core.Main.DataObjects.PTMagicData
|
|||
public int MaxSettingsLogEntries { get; set; } = 20;
|
||||
public string LinkPlatform { get; set; } = "TradingView";
|
||||
public string DefaultDCAMode { get; set; } = "Simple";
|
||||
public string TvStudyA { get; set; } = "";
|
||||
public string TvStudyB { get; set; } = "";
|
||||
public string TvStudyC { get; set; } = "";
|
||||
public string TvStudyD { get; set; } = "";
|
||||
|
||||
public string RootUrl
|
||||
{
|
||||
|
|
|
@ -604,6 +604,13 @@ namespace Core.Helper
|
|||
return result;
|
||||
}
|
||||
|
||||
public static string GetTradingViewStudies(string study)
|
||||
{
|
||||
string result = study;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string GetCurrencySymbol(string code)
|
||||
{
|
||||
string result = code;
|
||||
|
|
|
@ -269,6 +269,8 @@
|
|||
"allow_symbol_change": false,
|
||||
"hideideas": true,
|
||||
"hide_side_toolbar": false,
|
||||
"studies": ["@Core.Helper.SystemHelper.GetTradingViewStudies(Model.PTMagicConfiguration.GeneralSettings.Monitor.TvStudyA)", "@Core.Helper.SystemHelper.GetTradingViewStudies(Model.PTMagicConfiguration.GeneralSettings.Monitor.TvStudyB)", "@Core.Helper.SystemHelper.GetTradingViewStudies(Model.PTMagicConfiguration.GeneralSettings.Monitor.TvStudyC)"],
|
||||
"show_popup_button": true,
|
||||
"container_id": "tradingview_6aa22"
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue