This commit is contained in:
2024-06-21 13:13:09 +03:30
parent 5e8df132d4
commit 9041f22045
3 changed files with 55 additions and 24 deletions
+33 -9
View File
@@ -2254,15 +2254,39 @@ protected:
//
// Here we Select Price for SL Trailling ...
double usedPrice =
iPosition.sl > 0 &&
isLong
? iPosition.sl < iPosition.entry
? iPosition.entry
: iPosition.sl
: iPosition.sl > iPosition.entry
? iPosition.entry
: iPosition.sl;
double usedPrice = 0;
if (iPosition.sl != 0)
{
//
if (isLong)
{
//
if (iPosition.sl < iPosition.entry)
{
usedPrice = iPosition.entry;
}
else
{
usedPrice = iPosition.sl;
}
}
else
{
//
if (iPosition.sl > iPosition.entry)
{
usedPrice = iPosition.entry;
}
else
{
usedPrice = iPosition.sl;
}
}
}
else
{
usedPrice = iPosition.entry;
}
//
double nextTrailPoint = NextTrailPoint();