public Fibonacci(SlotTypes slotType)
{
// General properties
IndicatorName = "Fibonacci";
PossibleSlots = SlotTypes.Open;
WarningMessage = "Fibonacci indicator is included in the program for demonstration only." +
" This indicator tends to change past signals. That behaviour leads to unreliable back test results." +
" It’s not recommended Fibonacci to be used in real trading strategies.";
// Setting up the indicator parameters
IndParam = new IndicatorParam();
IndParam.IndicatorName = IndicatorName;
IndParam.SlotType = slotType;
// The ComboBox parameters
IndParam.ListParam[0].Caption = "Logic";
IndParam.ListParam[0].ItemList = new string[]
{
"This indicator is for demo only!!!"
};
IndParam.ListParam[0].Index = 0;
IndParam.ListParam[0].Text = IndParam.ListParam[0].ItemList[IndParam.ListParam[0].Index];
IndParam.ListParam[0].Enabled = true;
IndParam.ListParam[0].ToolTip = "Logic of application of the indicator.";
IndParam.ListParam[1].Caption = "Direction";
IndParam.ListParam[1].ItemList = new string[]
{
"Breakout",
"Retracement"
};
IndParam.ListParam[1].Index = 0;
IndParam.ListParam[1].Text = IndParam.ListParam[1].ItemList[IndParam.ListParam[1].Index];
IndParam.ListParam[1].Enabled = true;
IndParam.ListParam[1].ToolTip = "Direction of trade.";
// The NumericUpDown parameters
IndParam.NumParam[0].Caption = "Sensitivity";
IndParam.NumParam[0].Value = 15;
IndParam.NumParam[0].Min = 10;
IndParam.NumParam[0].Max = 200;
IndParam.NumParam[0].Enabled = true;
IndParam.NumParam[0].ToolTip = "Sensitivity of the indicator.";
return;
}