last works on XBackTester and Complete it ...

This commit is contained in:
2025-09-16 00:44:27 +03:30
parent 53898b2e4e
commit 011a82bf1e
5 changed files with 882 additions and 37 deletions
+23 -1
View File
@@ -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;
}
+13
View File
@@ -1224,6 +1224,19 @@ struct XPosition
return result;
}
//
double GetRiskInPoint()
{
//
double result = 0;
//
result = GetRisk() / GetPoints();
//
return result;
}
//
// Find Reward ...
double GetReward()