last works on XBackTester and Complete it ...
This commit is contained in:
@@ -860,6 +860,27 @@ double GetXSpread(
|
||||
return GetSpread(mSymbol);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get SPecified Symbols Volume Step ...
|
||||
*
|
||||
* @param mSymbol: string ...
|
||||
*
|
||||
* @return ( double )
|
||||
*/
|
||||
double GetVolumeStep(
|
||||
string mSymbol = NULL //
|
||||
)
|
||||
{
|
||||
//
|
||||
mSymbol = NormalizeSymbol(mSymbol);
|
||||
|
||||
//
|
||||
double result = SymbolInfoDouble(mSymbol, SYMBOL_VOLUME_STEP);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Point Price ...
|
||||
*
|
||||
@@ -3904,7 +3925,8 @@ template <typename T>
|
||||
void Clean(T &buffer[])
|
||||
{
|
||||
//
|
||||
if (!HasChild(buffer)) {
|
||||
if (!HasChild(buffer))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1224,6 +1224,19 @@ struct XPosition
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
double GetRiskInPoint()
|
||||
{
|
||||
//
|
||||
double result = 0;
|
||||
|
||||
//
|
||||
result = GetRisk() / GetPoints();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Find Reward ...
|
||||
double GetReward()
|
||||
|
||||
Reference in New Issue
Block a user