# SetParameterByName 方法
SetParameter(Name,Parameter)
 修改指定参数名称的参数
参数
 | 参数 | 说明 | 
|---|---|
| Name | 字符串格式的参数,参数名称 | 
| Parameter | 参数值 | 
示例
 ' 得到框架名称为"Technic",窗格名称为"Main"的窗格对象
Set Grid = Technic.GetGridByName("Main")
Set Formula = Grid.GetFormulaByIndex(1)
'将技术分析图表的MA均线公式的ma2的参数修改为15
call Formula.SetParameterByName ("n2",15)
Application.MsgOut Formula.GetParameter
Grid.ReInitDataFormula
 1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
应用于