add TV indicators
This commit is contained in:
parent
72bb6cfda4
commit
f3fa940fd6
|
@ -71,7 +71,11 @@ namespace Core.Main.DataObjects.PTMagicData
|
||||||
public int MaxSettingsLogEntries { get; set; } = 20;
|
public int MaxSettingsLogEntries { get; set; } = 20;
|
||||||
public string LinkPlatform { get; set; } = "TradingView";
|
public string LinkPlatform { get; set; } = "TradingView";
|
||||||
public string DefaultDCAMode { get; set; } = "Simple";
|
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
|
public string RootUrl
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -604,6 +604,13 @@ namespace Core.Helper
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetTradingViewStudies(string study)
|
||||||
|
{
|
||||||
|
string result = study;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public static string GetCurrencySymbol(string code)
|
public static string GetCurrencySymbol(string code)
|
||||||
{
|
{
|
||||||
string result = code;
|
string result = code;
|
||||||
|
|
|
@ -269,6 +269,8 @@
|
||||||
"allow_symbol_change": false,
|
"allow_symbol_change": false,
|
||||||
"hideideas": true,
|
"hideideas": true,
|
||||||
"hide_side_toolbar": false,
|
"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"
|
"container_id": "tradingview_6aa22"
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue