last ...
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
//
|
||||
// Long Recovery ...
|
||||
if (isLong)
|
||||
{
|
||||
//
|
||||
// Opposit Direction ...
|
||||
// canRecover =
|
||||
// //
|
||||
// isTicksBearishForShort &&
|
||||
// (
|
||||
// //
|
||||
// hasBearishTrend &&
|
||||
// (hasBearishPower ||
|
||||
// hasBearishPattern ||
|
||||
// hasBearishPressure)
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// ;
|
||||
// if (canRecover)
|
||||
// {
|
||||
// //
|
||||
// sl = position.tp;
|
||||
// tp = position.sl;
|
||||
// type = POSITION_TYPE_SELL;
|
||||
// }
|
||||
|
||||
//
|
||||
// Same Direction ...
|
||||
// if (!canRecover)
|
||||
// {
|
||||
// //
|
||||
// canRecover =
|
||||
// //
|
||||
// isTicksBullishForLong &&
|
||||
// (
|
||||
// //
|
||||
// hasBullishTrend &&
|
||||
// (hasBullishPower ||
|
||||
// hasBullishPattern ||
|
||||
// hasBullishPressure)
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// ;
|
||||
// if (canRecover)
|
||||
// {
|
||||
// //
|
||||
// sl = position.sl;
|
||||
// tp = position.entry;
|
||||
// type = POSITION_TYPE_BUY;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
//
|
||||
// Short Recovery ...
|
||||
else
|
||||
{
|
||||
//
|
||||
// Opposit Direction ...
|
||||
// canRecover =
|
||||
// //
|
||||
// isTicksBullishForLong &&
|
||||
// (
|
||||
// //
|
||||
// hasBullishTrend &&
|
||||
// (hasBullishPower ||
|
||||
// hasBullishPattern ||
|
||||
// hasBullishPressure)
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// ;
|
||||
// if (canRecover)
|
||||
// {
|
||||
// //
|
||||
// sl = position.tp;
|
||||
// tp = position.sl;
|
||||
// type = POSITION_TYPE_BUY;
|
||||
// }
|
||||
|
||||
//
|
||||
// Same Direction ...
|
||||
// if (!canRecover)
|
||||
// {
|
||||
// //
|
||||
// canRecover =
|
||||
// //
|
||||
// isTicksBearishForShort &&
|
||||
// (
|
||||
// //
|
||||
// hasBearishTrend &&
|
||||
// (hasBearishPower ||
|
||||
// hasBearishPattern ||
|
||||
// hasBearishPressure)
|
||||
// //
|
||||
// )
|
||||
// //
|
||||
// ;
|
||||
// if (canRecover)
|
||||
// {
|
||||
// //
|
||||
// sl = position.sl;
|
||||
// tp = position.entry;
|
||||
// type = POSITION_TYPE_SELL;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user