last ...
This commit is contained in:
@@ -1337,3 +1337,75 @@
|
||||
Alert(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
// //
|
||||
// XSignal tmpSignal;
|
||||
// tmpSignal.Clean();
|
||||
|
||||
// //
|
||||
// double longEntry = GetEntry(
|
||||
// iPosition.symbol,
|
||||
// POSITION_TYPE_BUY //
|
||||
// );
|
||||
// double shortEntry = GetEntry(
|
||||
// iPosition.symbol,
|
||||
// POSITION_TYPE_SELL //
|
||||
// );
|
||||
// double mVolume = iPosition.volume * 2;
|
||||
// double mSL = 0;
|
||||
// double mTP = 0;
|
||||
|
||||
// //
|
||||
// bool isLong = IsLong(iPosition.type);
|
||||
|
||||
// //
|
||||
// // Here we Can Start a Recovery Zone ...
|
||||
// if (data[index].rLongEntry <= 0 &&
|
||||
// data[index].rShortEntry <= 0 &&
|
||||
// data[index].rVolume <= 0)
|
||||
// {
|
||||
// //
|
||||
// data[index].PrepareNextRecovery(
|
||||
// supportDistance,
|
||||
// volumeMultiplier,
|
||||
// iPosition.type //
|
||||
// );
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// //
|
||||
// bool hasRecovery = data[index].HasRecovery(
|
||||
// tmpSignal,
|
||||
// supportDistance,
|
||||
// volumeMultiplier //
|
||||
// );
|
||||
// if (hasRecovery)
|
||||
// {
|
||||
// //
|
||||
// // tmpSignal.sl = 0;
|
||||
// // tmpSignal.tp = 0;
|
||||
// string comment = GenerateEQMSupportTag(iPosition.ticket);
|
||||
// tmpSignal.comment = comment;
|
||||
|
||||
// //
|
||||
// AddRef(
|
||||
// tmpSignal,
|
||||
// signals //
|
||||
// );
|
||||
// }
|
||||
// else if (priceDiffPoints >= supportDistance)
|
||||
// {
|
||||
// //
|
||||
// // Reset
|
||||
// if (longEntry > data[index].rZoneUpper || shortEntry < data[index].rZoneLower)
|
||||
// {
|
||||
// //
|
||||
// // data[index].ResetRecovery();
|
||||
|
||||
// //
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user