C# Class MQL4CSharp.UserDefined.Strategy.CSVOrderPlacer

Inheritance: Base.BaseStrategy
Afficher le fichier Open project: jseparovic/MQL4CSharp

Méthodes publiques

Méthode Description
CSVOrderPlacer ( long ix ) : System
OnDeinit ( ) : void
OnInit ( ) : void
OnTick ( ) : void
OnTimer ( ) : void
destroy ( ) : void
evaluate ( string symbol ) : SignalResult
filter ( string symbol ) : bool
getComment ( string symbol ) : string
getEntryPrice ( string symbol, SignalResult signal ) : double
getExpiry ( string symbol, SignalResult signal ) : System.DateTime
getLotSize ( string symbol, double stopDistance ) : double
getMagicNumber ( string symbol ) : int
getStopLoss ( string symbol, SignalResult signal ) : double
getTakeProfit ( string symbol, SignalResult signal ) : double
init ( ) : void
isAsleep ( string symbol ) : bool
manageOpenTrades ( string symbol, int ticket ) : void
onNewCandle ( string symbol, TIMEFRAME timeframe ) : void
onNewDate ( string symbol, TIMEFRAME timeframe ) : void

Private Methods

Méthode Description
executeTrade ( CSVOrder csvOrder, bool tp1 ) : void

Method Details

CSVOrderPlacer() public méthode

public CSVOrderPlacer ( long ix ) : System
ix long
Résultat System

OnDeinit() public méthode

public OnDeinit ( ) : void
Résultat void

OnInit() public méthode

public OnInit ( ) : void
Résultat void

OnTick() public méthode

public OnTick ( ) : void
Résultat void

OnTimer() public méthode

public OnTimer ( ) : void
Résultat void

destroy() public méthode

public destroy ( ) : void
Résultat void

evaluate() public méthode

public evaluate ( string symbol ) : SignalResult
symbol string
Résultat MQL4CSharp.Base.Common.SignalResult

filter() public méthode

public filter ( string symbol ) : bool
symbol string
Résultat bool

getComment() public méthode

public getComment ( string symbol ) : string
symbol string
Résultat string

getEntryPrice() public méthode

public getEntryPrice ( string symbol, SignalResult signal ) : double
symbol string
signal MQL4CSharp.Base.Common.SignalResult
Résultat double

getExpiry() public méthode

public getExpiry ( string symbol, SignalResult signal ) : System.DateTime
symbol string
signal MQL4CSharp.Base.Common.SignalResult
Résultat System.DateTime

getLotSize() public méthode

public getLotSize ( string symbol, double stopDistance ) : double
symbol string
stopDistance double
Résultat double

getMagicNumber() public méthode

public getMagicNumber ( string symbol ) : int
symbol string
Résultat int

getStopLoss() public méthode

public getStopLoss ( string symbol, SignalResult signal ) : double
symbol string
signal MQL4CSharp.Base.Common.SignalResult
Résultat double

getTakeProfit() public méthode

public getTakeProfit ( string symbol, SignalResult signal ) : double
symbol string
signal MQL4CSharp.Base.Common.SignalResult
Résultat double

init() public méthode

public init ( ) : void
Résultat void

isAsleep() public méthode

public isAsleep ( string symbol ) : bool
symbol string
Résultat bool

manageOpenTrades() public méthode

public manageOpenTrades ( string symbol, int ticket ) : void
symbol string
ticket int
Résultat void

onNewCandle() public méthode

public onNewCandle ( string symbol, TIMEFRAME timeframe ) : void
symbol string
timeframe TIMEFRAME
Résultat void

onNewDate() public méthode

public onNewDate ( string symbol, TIMEFRAME timeframe ) : void
symbol string
timeframe TIMEFRAME
Résultat void