Beispiel #1
0
        private static void onTryLiquidate(WatchAndBreakout st, object customData)
        {
            if (st.isProfitCoverCost())
            {
                st.SwitchRunningState(ERunningState.Stop);
                return;
            }

            st._timerUnconditionLiquidate.Update(st.CurrentTime, customData);
        }
Beispiel #2
0
        private static void onUnconditionLiquidate(WatchAndBreakout st, object customData)
        {
            st.onLiquidatePosition();

            st.SwitchRunningState(ERunningState.Stop);
        }