Th

mail@pastecode.io avatar
unknown
csharp
2 years ago
15 kB
1
Indexable
Never
    public class TickHunter : Indicator
    {
        // START VARIABLES SECTIONS
        // END VARIABLES SECTIONS

        public override string DisplayName
        {
            get { return FullSystemName; }
        }

        // SECTIONS : State.SetDefaults | State == State.Configure | State == State.DataLoaded | State == State.Terminated
        protected override void OnStateChange()
        {
        }

        //public override void CloseStrategy(string signalName)
        //{


        // base.CloseStrategy(signalName);
        //}

        protected override void OnBarUpdate()
        {
        }

        private void RefreshObjects()
        {
        }

        private void HandleAutoBreakEvenStatusChange()
        {
        }

        private void HandlAutoCloseStatusChange()
        {
        }

        private void HandleEntryVolumeAutoStatusChange()
        {
        }

        private void RefreshAccount()
        {
        }

        private void RefreshATMStrategyName()
        {
        }

        private void MarketData_Update(object sender, MarketDataEventArgs e)
        {
        }

        private bool hasInFlightOrderElementsOutput = false;
        private bool hasActiveOrdersOutput = false;
        private void RealTimePipeline()
        {
        }


        private void OnTimerTick(object sender, EventArgs e)
        {
        }

        private void DelayedPipeline()
        { 
        }

        private void ResetPositionTPSLOrderDelayOrderDelay()
        {
        }

        private void SetPositionTPSLOrderDelayOrderDelay()
        {
        }

        private DateTime GetDateTimeNow()
        {
        }

        private bool HasPositionTPSLOrderDelay()
        {
        }

        private void OnOrderUpdate(object sender, OrderEventArgs e)
        {
        }


        //protected void OnExecutionUpdate(object sender, ExecutionEventArgs e)
        //{
        //}

        private void OnPositionUpdate(object sender, PositionEventArgs e)
        {
        }

        private void LoadPositions()
        {
        }

        private string EscapeKeyName(string keyName)
        {
        }

        string BuildFullStopHLineKey()
        {
        }

        private string BuildObjectFullName(string name)
        {
        }

        private void RemoveFullStopLine()
        {
        }
        private void DrawHLine(string key, double price, Brush lineColor, DashStyleHelper lineDashStyle, int lineWidth)
        {
        }

        private void RefreshFullStopLine()
        {
        }

        private void RefreshRiskInfoLabel()
        {
        }

        
        private void OnButtonClick(object sender, RoutedEventArgs re)
        {
        }

       private bool IsAllButtonsDisabled()
       {
       }

        private void UnloadAccountEvents()
        {
        }

        private bool HandleReverse(string signalName)
        {
        }

        private bool HandleBreakEvenPlus(string signalName)
        {
        }

        private int GetBreakEvenJumpTicks()
        {
        }

        private bool HandleStopLossPlus(string signalName, double overrideStopLossPrice = 0)
        {
        }


        private bool HandleSLTPRefresh(string signalName)
        {
        }

        private bool HandleTakeProfitPlus(string signalName, double overrideTakeProfitPrice = 0)
        {
        }

        private bool HandleSellSnap(string signalName)
        {
        }

        private void TrailSellPositionStopLoss(string signalName, bool force1Bar = false)
        {
        }

        private void TrailBuyPositionStopLoss(string signalName, bool force1Bar = false)
        {
        }

        private double CalculateTrailLowPrice(MarketPosition positionType, bool force1Bar = false)
        {
        }

        private double CalculateTrailHighPrice(MarketPosition positionType, bool force1Bar = false)
        {
        }

        private double GetBreakEvenAutoMovingAverage1Price(MarketPosition positionType)
        {
        }

        private double GetBreakEvenAutoMovingAverage2Price(MarketPosition positionType)
        {
        }

        private double GetBreakEvenAutoMovingAverage3Price(MarketPosition positionType)
        {
        }

        private bool CheckSnapPositionTPSL()
        {
        }

        private int CalculateStopLossTicks(MarketPosition marketPosition, double averagePrice, double stopLossPrice, double tickSize)
        {
        }

        private bool GetPopDropOrderCount(out int buyCount, out int sellCount)
        {
        }
        

        private void LoadNinjaTraderOrders()
        {
        }

        private Order GetNinjaTraderOrder(RealOrder order)
        {
        }

        private bool CancelPopDropOrders(string signalName)
        {
        }

        private bool HandleBuySnap(string signalName)
        {
        }

        private bool HandleBuyPop(string signalName)
        {
        }

        private bool HandleSellPop(string signalName)
        {
        }

        private bool HandleBuyDrop(string signalName)
        {
        }

        private bool HandleSellDrop(string signalName)
        {
        }

        private void HandlePopAutoJumpToSnap(string signalName)
        {
        }

        private void HandleDropAutoJumpToSnap(string signalName)
        {
        }

        private int CalculateATRTicks(double atrValue, double atrMultiplier, int ticksPerPoint)
        {
        }

        private double GetInitialPopPrice(MarketPosition marketPosition, double askPrice)
        {
        }

        private double GetPopPriceFromJumpTicks(MarketPosition marketPosition, double oldPopPrice, int jumpTicks)
        {
        }

        private double CalculatePopPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private double CalculatePopPlusPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private double GetInitialDropPrice(MarketPosition marketPosition, double askPrice)
        {
        }

        private double GetDropPriceFromJumpTicks(MarketPosition marketPosition, double oldDropPrice, int jumpTicks)
        {
        }

        private double CalculateDropPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private double CalculateDropPlusPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private double GetInitialStopLossPrice(MarketPosition marketPosition, double averagePrice, int quantity, double currentStopLossPrice = 0)
        {
        }


        private double GetFullStopFromDollars(MarketPosition marketPosition, double averagePrice, int quantity, double fullStopDollars)
        {
        }

        private double GetStopLossPriceFromJumpTicks(MarketPosition marketPosition, double oldStopLossPrice, int jumpTicks)
        {
        }

        private double CalculateStopLossPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private double CalculateStopLossPlusPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private double GetInitialBreakEvenStopLossPrice(MarketPosition marketPosition, double averagePrice)
        {
        }

        private double GetTriggerBreakEvenStopLossPrice(MarketPosition marketPosition, double averagePrice)
        {
        }

        private double GetInitialTakeProfitPrice(MarketPosition marketPosition, double averagePrice)
        {
        }

        private double GetTakeProfitPriceFromJumpTicks(MarketPosition marketPosition, double oldTakeProfitPrice, int jumpTicks)
        {
        }

        double CalculateTakeProfitPrice(MarketPosition marketPosition, double price, int ticks, double tickSize, int ticksPerPoint)
        {
        }

        private MarketPosition ConvertOrderActionToMarketPosition(OrderAction orderAction)
        {
        }

        private OrderAction ConvertMarketPositionToRevOrderAction(MarketPosition marketPosition)
        {
        }

        private OrderAction ConvertMarketPositionToSLOrderAction(MarketPosition marketPosition)
        {
        }

        private OrderAction ConvertMarketPositionToTPOrderAction(MarketPosition marketPosition)
        {
        }


        private double GetSellSnapInfo(Instrument instrument, OrderAction orderAction, out OrderType orderType, out int orderQuantity)
        {
        }


        private void AttemptToEngageAutobot()
        {
        }

        private void AttemptAccountInfoLogging()
        {
        }

        private double GetPositionProfitWithStoLoss(Instrument instrument, MarketPosition marketPosition, int quantity, double averagePrice, double stopLossPrice)
        {
        }

        private double GetPositionProfit(RealPosition position)
        {
        }


        private bool IsMicroInstrument(Instrument instrument)
        {
        }

        private bool IsEminiInstrument(Instrument instrument)
        {
        }

        private double GetCommissionPerSide(Instrument instrument)
        {
        }

        private void AttemptToClosePositionsInProfit()
        {
        }

        private void AttemptToClosePositionsInLoss()
        {
        }

        private void CreateSellStop(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private void CreateBuyStop(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private void CreateSellLimit(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private void CreateBuyLimit(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private void UpdateStopOrder(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, double price)
        {
        }

        private void UpdateLimitOrder(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, double price)
        {
        }

        private void CreatePositionStopLoss(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private void UpdatePositionStopLoss(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private void CreatePositionTakeProfit(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private bool ConsolidatePositionSLTPOrders(string signalName, Instrument instrument)
        {
        }

        private bool CancelPositionSLTPOrders(string signalName, Instrument instrument, OrderAction? orderAction = null)
        {
        }

        private void UpdatePositionTakeProfit(string signalName, Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, double price)
        {
        }

        private bool FlattenEverything(string signalName, bool continueTillZeroRemainingQuantity, Instrument limitToSingleInstrument)
        {
        }

        private bool IsMaxDDStopLossEnabled()
        {
        }

        private bool IsEquityRemainingStopLossEnabled()
        {
        }

        private bool IsFullStopDailyMaxEnabled()
        {
        }

        private int GetRandomNumber(int maxValue)
        {
        }

        private void SubmitMarketOrder(Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity)
        {
        }

        private void SubmitMarketOrderChunked(Instrument instrument, OrderAction orderAction, OrderEntry orderEntry, int quantity, bool continueTillZeroRemainingQuantity = true)
        {
        }

        private int CalculateAutoEntryVolume(TickHunterEntryVolumeAutoTypes entryVolumeAutoType)
        {
        }

        private void GenerateEntryVolumeAutoButtonText()
        {
        }

        private bool IsAccountFlat()
        {
        }

        private bool IsAccountFlat(Instrument instrument)
        {
        }

        private bool HasActiveMarketOrders()
        {
        }

        private void CloseAllAccountPendingOrders(string signalName, Instrument limitToSingleInstrument)
        {
        }

        protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
        {
        }

        private bool HasRanOnceFirstCycle()
        {
        }

        private void OnAccountStatusUpdate(object sender, AccountStatusEventArgs e)

        {
        }

        private void OnAccountItemUpdate(object sender, AccountItemEventArgs e)

        {
        }

        private void OnExecutionUpdate(object sender, ExecutionEventArgs e)

        {
        }

        private string GetATMStrategy()
        {
        }

        private void LoadATMStrategy(string newATMStrategyName = "")
        {
        }

        private Account GetAccount()
        {
        }

        private void LoadAccount(Account newAccount = null)
        {
        }

        private void SetButtonPanelVisiblity()
        {
        }

        private void SetButtonPanelHidden()
        {
        }
        private bool IsStrategyAttachedToChart()
        {
        }

        private void RemoveButtonPanel()
        {
        }

        private void DrawButtonPanel()
        {
        }

        private bool HasATMStrategy()
        {
        }

        private void ValidateInstrument(string instrumentName)
        {
        }

        private string GetCurrentFuturesMonthYearPrefix()
        {
        }

        private bool IsCtrlKeyDown()
        {
        }
        // START FOLD #Region Properties Start fold
        // END FOLD #Region Properties End fold
    }