Implement Position Protector ...
need to test BE Hedge ...
This commit is contained in:
@@ -579,10 +579,13 @@ struct XPosition
|
||||
}
|
||||
|
||||
//
|
||||
double point = GetPoints(symbol);
|
||||
double tickSize = SymbolInfoDouble(symbol, SYMBOL_TRADE_TICK_SIZE); // Tick size
|
||||
double tickValue = SymbolInfoDouble(symbol, SYMBOL_TRADE_TICK_VALUE); // Tick value
|
||||
double pointSize = SymbolInfoDouble(symbol, SYMBOL_POINT); // Point size
|
||||
double pointValue = tickValue * pointSize / tickSize; // Point value
|
||||
|
||||
//
|
||||
result = profit * point;
|
||||
result = profit / (volume * tickValue);
|
||||
|
||||
//
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user