C# Class Forex_Strategy_Builder.Actions

Class Actions : Controls
Inheritance: Controls
Mostrar archivo Open project: nuggett11/Forex-Strategy-Builder

Public Methods

Method Description
Actions ( ) : System

The default constructor

Protected Methods

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

Whether to express account in pips or in currency

AdditionalStats_OnClick ( object sender, EventArgs e ) : void

AdditionalStats_OnClick

BtnAddCloseFilter_Click ( object sender, EventArgs e ) : void

Performs actions after the button add close filter was clicked.

BtnAddOpenFilter_Click ( object sender, EventArgs e ) : void

Performs actions after the button add open filter was clicked.

BtnRemoveSlot_Click ( object sender, EventArgs e ) : void

Remove the corresponding indicator slot.

BtnTools_OnClick ( object sender, EventArgs e ) : void

Tools button

Language_Click ( object sender, EventArgs e ) : void

Sets the program's language.

MenuAccountSettings_OnClick ( object sender, EventArgs e ) : void

Opens the account setting dialog

MenuAnalysisCalculate_OnClick ( object sender, EventArgs e ) : void

Forces the calculation of the strategy.

MenuCheckData_OnClick ( object sender, EventArgs e ) : void

Check the data.

MenuClosingLogicSlots_OnClick ( object sender, EventArgs e ) : void

Menu MenuClosingLogicSlots_OnClick.

MenuDataDirectory_OnClick ( object sender, EventArgs e ) : void

Data Directory

MenuDataHorizon_OnClick ( object sender, EventArgs e ) : void

Data Horizon

MenuDetailedBacktest_OnClick ( object sender, EventArgs e ) : void

Performs a detailed back-test.

MenuFileOpen_OnClick ( object sender, EventArgs e ) : void

Opens the dialog form OpenFileDialog.

MenuFileSaveAs_OnClick ( object sender, EventArgs e ) : void

Opens the dialog form SaveFileDialog.

MenuFileSave_OnClick ( object sender, EventArgs e ) : void

Saves the strategy.

MenuJournal_OnClick ( object sender, EventArgs e ) : void

Menu Journal

MenuLoadColor_OnClick ( object sender, EventArgs e ) : void

Load a color scheme.

MenuLoadData_OnClick ( object sender, EventArgs e ) : void

Performs actions corresponding on the menu item Load.

MenuNextHistory_OnClick ( object sender, EventArgs e ) : void

Loads the next generated strategy

MenuOpeningLogicSlots_OnClick ( object sender, EventArgs e ) : void

Menu MenuOpeningLogicSlots_OnClick.

MenuPrevHistory_OnClick ( object sender, EventArgs e ) : void

Loads the previously generated strategy

MenuQuickScan_OnClick ( object sender, EventArgs e ) : void

Forces the intrabar scanning of the strategy.

MenuRefineData_OnClick ( object sender, EventArgs e ) : void

Refine the data

MenuStrategyAUPBV_OnClick ( object sender, EventArgs e ) : void

Opens the strategy settings dialogue.

MenuStrategyAutoscan_OnClick ( object sender, EventArgs e ) : void

Autos can

MenuStrategyBBcode_OnClick ( object sender, EventArgs e ) : void

Export the strategy in BBCode format - ready to post in the forum

MenuStrategyNew_OnClick ( object sender, EventArgs e ) : void

Loads the default strategy.

MenuStrategySettings_OnClick ( object sender, EventArgs e ) : void

Opens the strategy settings dialog.

MenuStrategyUndo_OnClick ( object sender, EventArgs e ) : void

Undoes the strategy.

MenuTools_OnClick ( object sender, EventArgs e ) : void

Tools menu

MenuUseLogicalGroups_OnClick ( object sender, EventArgs e ) : void

Use logical groups menu item.

MenuViewFullScreen_OnClick ( object sender, EventArgs e ) : void

Changes the Full Screen mode.

PnlAveraging_Click ( object sender, EventArgs e ) : void

Opens the averaging parameters dialog.

PnlSlot_MouseUp ( object sender, MouseEventArgs e ) : void

Opens the indicator parameters dialog.

SelectedIndexChanged ( object sender, EventArgs e ) : void

Performs actions after selecting a new ComboBox item. Handler for: cbxMode, cbxSymbol, cbxPeriod, tscbInterpolationMethod

ShowPriceLine_OnClick ( object sender, EventArgs e ) : void

Menu ShowPriceLine_OnClick.

SlotContextMenu_Click ( object sender, EventArgs e ) : void

Strategy panel menu items clicked

TradeUntilMC_OnClick ( object sender, EventArgs e ) : void

TradeUntillMC

Private Methods

Method Description
Actions_FormClosing ( object sender, FormClosingEventArgs e ) : void

Checks whether the strategy have been saved or not

AddCloseFilter ( ) : void

Adds a new Close filter

AddOpenFilter ( ) : void

Adds a new Open filter

AfterStrategyOpening ( bool isMessage ) : void

Check the needed market conditions

Application_Idle ( object sender, EventArgs e ) : void

Application idle

Calculate ( bool recalcIndicators ) : void

Calculates the strategy.

CheckLoadedData ( ) : void

Checks the loaded data

DataHorizon ( ) : void

Sets the data starting parameters.

DuplicateSlot ( int iSlotToDuplicate ) : void

Duplicates a Slot

EditSlot ( int slot ) : void

Edits the Strategy Slot

EditStrategyProperties ( ) : void

Edits the Strategy Properties Slot

EditTradingCharges ( ) : void

Edit the Trading Charges

EditTranslation ( ) : void

Edit translation.

GetLockFile ( ) : string

The lockfile name will be passed automatically by Splash.exe as a command line arg -lockfile="c:\temp\C1679A85-A4FA-48a2-BF77-E74F73E08768.lock"

IntrabarDataLoaded ( object sender, RunWorkerCompletedEventArgs e ) : void

The intrabar data is loaded. Refresh the program.

JForexImport ( ) : void

Starts JForexImport.

LoadColorScheme ( ) : void

Loads a color scheme.

LoadInstrument ( bool useResource ) : int

LoadInstrument

LoadIntrabarData ( object sender, DoWorkEventArgs e ) : void

Starts scanner and loads intrabar data.

Main ( ) : void
MakeNewTranslation ( ) : void

Makes new language file.

MoveSlotDownwards ( int iSlotToMove ) : void

Moves a Slot Downwards

MoveSlotUpwards ( int iSlotToMove ) : void

Moves a Slot Upwards

NewStrategy ( ) : void

New Strategy

OpenFile ( ) : void

Open a strategy file

OpenStrategy ( string strategyName ) : int

Reads the strategy from a file.

PrepareScannerCompactMode ( ) : void

Load intrabar data by using scanner.

PublishStrategy ( ) : void

Generate BBCode for the forum

ReloadCustomIndicators ( ) : void

Reloads the Custom Indicators.

RemoveSlot ( int iSlot ) : void

Removes a strategy slot.

ResetSettings ( ) : void

Reset settings

SaveAsStrategy ( ) : void

Save the current strategy

SaveStrategy ( ) : int

Save the current strategy

Scan ( ) : void

Perform intrabar scanning

SetInstrumentDataStatusBar ( ) : void

Sets the Status Bar Data Label

SetMarket ( string symbol, DataPeriods dataPeriod ) : void

Sets the market according the strategy

ShowAccountSettings ( ) : void

Shows the Account Settings dialog.

ShowAnalyzer ( string menuItem ) : void

Starts the Analyzer.

ShowBarExplorer ( ) : void

Shows the Bar Explorer tool.

ShowCalculator ( ) : void

Starts the Calculator.

ShowCommandConsole ( ) : void

Starts the Calculator.

ShowComparator ( ) : int

Show the method Comparator

ShowFibonacciLevels ( ) : void

Starts the Fibonacci Levels Calculator.

ShowGenerator ( ) : void

Starts the generator

ShowInstrumentEditor ( ) : void

Shows the Instrument Editor dialog.

ShowOptimizer ( ) : void

Call the Optimizer

ShowOverview ( ) : void

Starts the generator

ShowPivotPoints ( ) : void

Starts the Pivot Points Calculator.

ShowProfitCalculator ( ) : void

Starts the Profit Calculator.

ShowScanner ( ) : void

Shows the scanner

UndoStrategy ( ) : void

Undoes the strategy

UpdateStatusLabel ( string comment ) : void

Updates the splash screen label.

UsePreviousBarValue_Change ( ) : void

Performs actions when UPBV has been changed

WhetherSaveChangedStrategy ( ) : DialogResult

Ask for saving the changed strategy

Method Details

AccountShowInMoney_OnClick() protected method

Whether to express account in pips or in currency
protected AccountShowInMoney_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Actions() public method

The default constructor
public Actions ( ) : System
return System

AdditionalStats_OnClick() protected method

AdditionalStats_OnClick
protected AdditionalStats_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

BtnAddCloseFilter_Click() protected method

Performs actions after the button add close filter was clicked.
protected BtnAddCloseFilter_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

BtnAddOpenFilter_Click() protected method

Performs actions after the button add open filter was clicked.
protected BtnAddOpenFilter_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

BtnRemoveSlot_Click() protected method

Remove the corresponding indicator slot.
protected BtnRemoveSlot_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

BtnTools_OnClick() protected method

Tools button
protected BtnTools_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Language_Click() protected method

Sets the program's language.
protected Language_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuAccountSettings_OnClick() protected method

Opens the account setting dialog
protected MenuAccountSettings_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuAnalysisCalculate_OnClick() protected method

Forces the calculation of the strategy.
protected MenuAnalysisCalculate_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuCheckData_OnClick() protected method

Check the data.
protected MenuCheckData_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuClosingLogicSlots_OnClick() protected method

Menu MenuClosingLogicSlots_OnClick.
protected MenuClosingLogicSlots_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuDataDirectory_OnClick() protected method

Data Directory
protected MenuDataDirectory_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuDataHorizon_OnClick() protected method

Data Horizon
protected MenuDataHorizon_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuDetailedBacktest_OnClick() protected method

Performs a detailed back-test.
protected MenuDetailedBacktest_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuFileOpen_OnClick() protected method

Opens the dialog form OpenFileDialog.
protected MenuFileOpen_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuFileSaveAs_OnClick() protected method

Opens the dialog form SaveFileDialog.
protected MenuFileSaveAs_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuFileSave_OnClick() protected method

Saves the strategy.
protected MenuFileSave_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuJournal_OnClick() protected method

Menu Journal
protected MenuJournal_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuLoadColor_OnClick() protected method

Load a color scheme.
protected MenuLoadColor_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuLoadData_OnClick() protected method

Performs actions corresponding on the menu item Load.
protected MenuLoadData_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuNextHistory_OnClick() protected method

Loads the next generated strategy
protected MenuNextHistory_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuOpeningLogicSlots_OnClick() protected method

Menu MenuOpeningLogicSlots_OnClick.
protected MenuOpeningLogicSlots_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuPrevHistory_OnClick() protected method

Loads the previously generated strategy
protected MenuPrevHistory_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuQuickScan_OnClick() protected method

Forces the intrabar scanning of the strategy.
protected MenuQuickScan_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuRefineData_OnClick() protected method

Refine the data
protected MenuRefineData_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuStrategyAUPBV_OnClick() protected method

Opens the strategy settings dialogue.
protected MenuStrategyAUPBV_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuStrategyAutoscan_OnClick() protected method

Autos can
protected MenuStrategyAutoscan_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuStrategyBBcode_OnClick() protected method

Export the strategy in BBCode format - ready to post in the forum
protected MenuStrategyBBcode_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuStrategyNew_OnClick() protected method

Loads the default strategy.
protected MenuStrategyNew_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuStrategySettings_OnClick() protected method

Opens the strategy settings dialog.
protected MenuStrategySettings_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuStrategyUndo_OnClick() protected method

Undoes the strategy.
protected MenuStrategyUndo_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuTools_OnClick() protected method

Tools menu
protected MenuTools_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuUseLogicalGroups_OnClick() protected method

Use logical groups menu item.
protected MenuUseLogicalGroups_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

MenuViewFullScreen_OnClick() protected method

Changes the Full Screen mode.
protected MenuViewFullScreen_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

PnlAveraging_Click() protected method

Opens the averaging parameters dialog.
protected PnlAveraging_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

PnlSlot_MouseUp() protected method

Opens the indicator parameters dialog.
protected PnlSlot_MouseUp ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

SelectedIndexChanged() protected method

Performs actions after selecting a new ComboBox item. Handler for: cbxMode, cbxSymbol, cbxPeriod, tscbInterpolationMethod
protected SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ShowPriceLine_OnClick() protected method

Menu ShowPriceLine_OnClick.
protected ShowPriceLine_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

SlotContextMenu_Click() protected method

Strategy panel menu items clicked
protected SlotContextMenu_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

TradeUntilMC_OnClick() protected method

TradeUntillMC
protected TradeUntilMC_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void