Conversion of code consultation

C# Consulenza C#

Lavoro terminato

Tempo di esecuzione 2 ore

Specifiche

Need help regarding compiling error. Based on csharp language on trading platforms.



using System;

using NinjaTrader.Cbi;

using NinjaTrader.Gui.Tools;

using NinjaTrader.NinjaScript;

using NinjaTrader.NinjaScript.Strategies;


namespace NinjaTrader.NinjaScript.Strategies

{

    public class StochasticBot : Strategy

    {

        private Stochastic stochasticOscillator;

        private double volumeInUnits;


        protected override void OnStateChange()

        {

            if (State == State.SetDefaults)

            {

                Description = "StochasticBot Strategy";

                Calculate = Calculate.OnEachTick;

                Quantity = 0.01;

                takeProfit = 150;

                stopLoss = 150;

                percentK = 150;

                percentKSlow = 150;

                percentD = 150;

            }

            else if (State == State.Configure)

            {

                stochasticOscillator = Stochastic(percentK, percentKSlow, percentD);

            }

        }


        protected override void OnBarUpdate()

        {

            if (stochasticOscillator.PercentK[2] < stochasticOscillator.PercentD[2])

            {

                if (stochasticOscillator.PercentK[0] > stochasticOscillator.PercentD[0])

                {

                    Print(stochasticOscillator.PercentK[0]);

                    EnterLong("Stochastic Long");

                }

            }

        }


        #region Properties

        [Range(0.01, double.MaxValue, 0.01)]

        [NinjaScriptProperty]

        public double Quantity { get; set; }


        [Range(4, 1000)]

        [NinjaScriptProperty]

        public int takeProfit { get; set; }


        [Range(4, 1000)]

        [NinjaScriptProperty]

        public int stopLoss { get; set; }


        [Range(4, 1000)]

        [NinjaScriptProperty]

        public int percentK { get; set; }


        [Range(4, 1000)]

        [NinjaScriptProperty]

        public int percentKSlow { get; set; }


        [Range(4, 1000)]

        [NinjaScriptProperty]

        public int percentD { get; set; }

        #endregion

    }

}


Con risposta

1
Sviluppatore 1
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(23)
Progetti
29
66%
Arbitraggio
1
0% / 0%
In ritardo
1
3%
In elaborazione
Ordini simili
I am looking for a coder to help me code my custom Ninjatrader 8 strategy and make it work perfectly without any error, your expertise is highly needed in this job kindly reach out to me and let proceed
I am looking for a developer to code my custom Ninjatrader 8 strategy and make it work perfectly, your expertise is highly needed for this project kindly reach out and let's proceed
Hello I am looking for a professional in building a stock trading robot and make it work perfectly Specifically, I want to build a robot for trading in options from the IOF your expertise is highly needed in this project Kindly reach out and let proceed
Hello Great Developer. I have a HFT bot for mt4. Can you copy it for ctrader? I will be looking for a Great Developer to bid for it and let talk about it now
How are you today? We’re looking for a ctrader bot that can receive signals from tradingview and place orders on different ctrader accounts, so no strategy coding is required. Here are the details: https://www.loom.com/share/d8166c67a74f46c28920be9e131f8ec7?sid=bd2c6ff2-52e4-4355-b35f-f4fc1bfb0f3b&nbsp ; We would like to know from you what’s the most cost effective method to create this bot. PDF is also attached to
I am in need of a developer to connect my TradingView signal with cTrader in other to make receive information and make it work perfectly your expertise is highly needed in this project feel free to reach out to me and let's get started
I want a bot developer deriv He has experience and I want a profitable robot, the profit is higher than the loss Or I want someone to sue with me. I have a profitable robot, but I want another robot or to improve another robot I have
I need a proficient developer to code my NinjaTrader 8 strategy, In order to work perfectly. Your expertise is invaluable for this project's success. Let's collaborate to achieve optimal trading results
I'm looking for a skilled developer to connect my TradingView signals with cTrader, ensuring flawless functionality. Your expertise is essential for this project's success. Let's collaborate to achieve seamless trading automation
I want a simple DLL written in C# for use in an MT4 EA that demonstrates how to connect to an external database held online. This is nothing fancy and just a prototype/demonstration really of what code is needed to connect to external databases held on the web. This is for educational purposes only so I can see the source code and how I can incorporate it in my own EAs in the future. I have already set up the

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
da 1 a 4 giorno(i)