complete trailing ...
This commit is contained in:
@@ -3523,6 +3523,9 @@ struct XTradeData
|
||||
profit = 0;
|
||||
volume = 0;
|
||||
commission = 0;
|
||||
|
||||
//
|
||||
ResetTrail();
|
||||
}
|
||||
|
||||
//
|
||||
@@ -3741,13 +3744,24 @@ struct XTradeData
|
||||
// Trailing Stop ....
|
||||
|
||||
//
|
||||
bool canTrail; // Specified Position Can Trail Stop or not
|
||||
bool allowTrailStop; // Specified Position Can Trail Stop or not
|
||||
bool ignoreTPOnTrail; // Ignore TP when SL Trailed
|
||||
bool trailBasedOnProfit; // Do Trail Based on Profit Points
|
||||
int trailLevel; // Last Trail Level
|
||||
double trailStartInPoint; // Trail Starts When Profits Growing in Point
|
||||
double trailStepInPoint; // Profit Must Grows Point to do Trailling
|
||||
|
||||
//
|
||||
// Reset all Trailing Configurations ....
|
||||
void ResetTrail() {
|
||||
void ResetTrail()
|
||||
{
|
||||
//
|
||||
canTrail = false;
|
||||
trailLevel = 0;
|
||||
trailStepInPoint = 0;
|
||||
trailStartInPoint = 0;
|
||||
allowTrailStop = false;
|
||||
ignoreTPOnTrail = false;
|
||||
trailBasedOnProfit = false;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user