|
QuantShare
2012-01-16 04:40:20
1
|
|
Best Answer
Hi,
You can do that using the global script (Tools -> Script Editor).
Execute this script to display RSI and ROC data for the selected chart in the output console (View -> Output)
string symbol = Charts.GetSelectedChart().SymbolName;
Parser parser = ParserTool.CreateParser("a = rsi(10).';'.roc(10);");
Report report = parser.Parse(symbol, 1, true);
string[] lines = report.GetStringArray("a");
for(int i = 0; i < lines.Length; i++)
{
App.Main.AddToOutput(lines[i] + Environment.NewLine);
}
|
|