last ...
This commit is contained in:
@@ -3386,3 +3386,222 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//
|
||||
// Handle Creating a new Signal Info ...
|
||||
// XSignal signal;
|
||||
// X121SetupConditions otherConditions[];
|
||||
// if (hHasSignal)
|
||||
// {
|
||||
// //
|
||||
// signal = hSignal;
|
||||
|
||||
// //
|
||||
// AddRef(
|
||||
// cConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// sConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// }
|
||||
// else if (lHasSignal)
|
||||
// {
|
||||
// //
|
||||
// signal = lSignal;
|
||||
|
||||
// //
|
||||
// AddRef(
|
||||
// cConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// sConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// mConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// }
|
||||
// else if (mHasSignal)
|
||||
// {
|
||||
// //
|
||||
// signal = mSignal;
|
||||
|
||||
// //
|
||||
// AddRef(
|
||||
// cConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// sConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// }
|
||||
// else if (sHasSignal)
|
||||
// {
|
||||
// //
|
||||
// signal = sSignal;
|
||||
|
||||
// //
|
||||
// AddRef(
|
||||
// cConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// mConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// lConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// hConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// }
|
||||
// else if (cHasSignal)
|
||||
// {
|
||||
// //
|
||||
// signal = cSignal;
|
||||
|
||||
// //
|
||||
// AddRef(
|
||||
// sConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// mConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// lConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// hConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// }
|
||||
|
||||
// //
|
||||
// int pushers = cPusher + sPusher + mPusher + lPusher + hPusher;
|
||||
|
||||
// //
|
||||
// bool isLong = IsLong(signal.type);
|
||||
|
||||
// //
|
||||
// // Collecting Bullish/Bearish Signs ...
|
||||
// if (isLong)
|
||||
// {
|
||||
// mBullishSigns += pushers;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// mBearishSigns += pushers;
|
||||
// }
|
||||
|
||||
// //
|
||||
// // Validate Signal ...
|
||||
// bool isValid =
|
||||
// //
|
||||
// // Handle Pusher Validations ...
|
||||
// (mReuiredSignalVerifications <= 0
|
||||
// ? true
|
||||
// : pushers >= mReuiredSignalVerifications)
|
||||
// //
|
||||
// &&
|
||||
// //
|
||||
// // Handle Other Conditions Validations ...
|
||||
// (!mGetVerificationFromOtherTimeFrames
|
||||
// ? true
|
||||
// : isLong
|
||||
// ? signalGenerator.HasLongVerifications(otherConditions)
|
||||
// : signalGenerator.HasShortVerifications(otherConditions))
|
||||
// //
|
||||
// ;
|
||||
|
||||
// //
|
||||
// bool forceState = ForceState();
|
||||
|
||||
// //
|
||||
// if (!isValid || (forceState && isValid))
|
||||
// {
|
||||
// //
|
||||
// // Clear Other Conditions ...
|
||||
// Clean(otherConditions);
|
||||
|
||||
// //
|
||||
// // Fill All Conditions to Other Conditions ...
|
||||
// AddRef(
|
||||
// cConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// sConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// mConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// lConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
// AddRef(
|
||||
// hConditions,
|
||||
// otherConditions //
|
||||
// );
|
||||
|
||||
// //
|
||||
// // If Recieved Any Unverified Signal
|
||||
// // we Passed it to EQM Manager ...
|
||||
// EQMHandleInvalidSignal(
|
||||
// signal,
|
||||
// pushers,
|
||||
// mVolumeOSC,
|
||||
// mBullishScore,
|
||||
// mBullishSigns,
|
||||
// mBearishScore,
|
||||
// mBearishSigns,
|
||||
// otherConditions,
|
||||
// isValid //
|
||||
// );
|
||||
// continue;
|
||||
// }
|
||||
|
||||
// //
|
||||
// if (!forceState)
|
||||
// {
|
||||
// //
|
||||
// // Add Signal to Execution Result ...
|
||||
// AddRef(
|
||||
// signal,
|
||||
// signals //
|
||||
// );
|
||||
|
||||
// //
|
||||
// // Add new Signal Info ...
|
||||
// mTradeHandler.Add(
|
||||
// signal,
|
||||
// pushers,
|
||||
// mVolumeOSC,
|
||||
// mBullishSigns,
|
||||
// mBearishSigns,
|
||||
// mBullishScore,
|
||||
// mBearishScore,
|
||||
// cConditions,
|
||||
// sConditions,
|
||||
// mConditions,
|
||||
// lConditions,
|
||||
// hConditions //
|
||||
// );
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user