C# Class Forex_Strategy_Builder.Indicator_Dialog

Form dialog contains controls for adjusting the indicator's parameters.
Inheritance: System.Windows.Forms.Form
显示文件 Open project: nuggett11/Forex-Strategy-Builder Class Usage Examples

Private Properties

Property Type Description
BtnDefault_Click void
BtnHelp_Click void
BtnOk_Click void
CalculateIndicator bool
CalculateIndicator void
Group_Changed void
Label_MouseEnter void
Label_MouseLeave void
LblIndicatorInfo_Click void
LblIndicatorWarning_Click void
PanelBase_Paint void
Param_Changed void
SetClosingLogicConditions void
SetDefaultGroup void
SetIndicatorNotification void
SetLogicalGroup void
SetOppositeSignalBehaviour void
SetTreeViewIndicators void
TrvIndicatorsLoadIndicator void
TrvIndicators_KeyPress void
TrvIndicators_NodeMouseDoubleClick void
UpdateBalanceChart void
UpdateFromIndicatorParam void

Public Methods

Method Description
Indicator_Dialog ( int slotNumb, SlotTypes slotType, bool isDefined ) : System

Constructor

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

OnLoad

OnResize ( EventArgs e ) : void

Recalculates the sizes and positions of the controls after resizing.

Private Methods

Method Description
BtnDefault_Click ( object sender, EventArgs e ) : void

Loads the default parameters for the selected indicator.

BtnHelp_Click ( object sender, EventArgs e ) : void

Shows help for the selected indicator.

BtnOk_Click ( object sender, EventArgs e ) : void

Closes the dialog.

CalculateIndicator ( SlotTypes slotType, Indicator indicator ) : bool

Calculates an indicator and returns OK status.

CalculateIndicator ( bool bCalculateStrategy ) : void

Calculates the selected indicator.

Group_Changed ( object sender, EventArgs e ) : void

Sets the slot group.

Label_MouseEnter ( object sender, EventArgs e ) : void

Changes the background color of a label when the mouse enters.

Label_MouseLeave ( object sender, EventArgs e ) : void

Changes the background color of a label when the mouse leaves.

LblIndicatorInfo_Click ( object sender, EventArgs e ) : void

Shows the indicator description

LblIndicatorWarning_Click ( object sender, EventArgs e ) : void

Shows the indicator warning

PanelBase_Paint ( object sender, PaintEventArgs e ) : void

Paints the base panel

Param_Changed ( object sender, EventArgs e ) : void

Calculates strategy when a parameter was changed.

SetClosingLogicConditions ( ) : void

Sets or restores the closing logic conditions.

SetDefaultGroup ( ) : void

Sets the default logical group of the slot.

SetIndicatorNotification ( Indicator indicator ) : void

Sets the indicator overview.

SetLogicalGroup ( ) : void

Sets the logical group of the slot.

SetOppositeSignalBehaviour ( ) : void

Sets or restores the opposite signal behavior.

SetTreeViewIndicators ( ) : void

Sets the trvIndicators nodes

TrvIndicatorsLoadIndicator ( TreeNode treeNode ) : void

Loads an Indicator

TrvIndicators_KeyPress ( object sender, KeyPressEventArgs e ) : void

Loads the default parameters for the chosen indicator.

TrvIndicators_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

Loads the default parameters for the chosen indicator.

UpdateBalanceChart ( ) : void
UpdateFromIndicatorParam ( IndicatorParam ip ) : void

Sets the controls' parameters.

Method Details

Indicator_Dialog() public method

Constructor
public Indicator_Dialog ( int slotNumb, SlotTypes slotType, bool isDefined ) : System
slotNumb int
slotType SlotTypes
isDefined bool
return System

OnLoad() protected method

OnLoad
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnResize() protected method

Recalculates the sizes and positions of the controls after resizing.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void