How to get automated ?..

Discussion in 'Automated Trading' started by TheMordy, Jan 28, 2025.

  1. VERY GOOD POST. I LOVE IT.
     
    #41     Jan 30, 2025
  2. You need someone that is familiar with the broker's API.

    An API has specific methods that are unique to your broker. It is best to speak to someone that has developed software for that broker before.
     
    #42     Jan 30, 2025
    TheMordy likes this.
  3. You would be well on your way if you started when AI was suggested. Just get goin on your programming journey. AI will help you.

    If you get an error, tell it what the error is and on what line. It might take it a few tries but it'll make it happen for you. chatGPT is incredible at coding, especially simple shorts pieces. Anyone who says otherwise just hasn't used it enough yet. It'll even explain its logic in laymen's terms. I've literally written thousands and thousands of lines of code with it. Excel VBA, Tradestation Easylanguage, NinjaTrader ninjascript (C#), Matlab, Unreal Engine C++... I have a lot of programming experience, but it can spit out basic code so much faster than i can type so i use it almost daily

    Personally, I think Tradestations Easylanguage is the easiest for a non-programmer to start programming strategies with. It'll backtest, and you can automatically place trades with it. Their community support forum is great. I've even gotten calls from one of the forum admins to answer my questions because they were too long to type out. They called the day after i asked about stuff. I was blown away

    You'll get the best help (from AI) with ninjascript because i believe it's most common, but i'll be the hardest for a non-programmer to work with, IMO

    me: Tell me how to program a simple moving average cross over strategy in Easylanguage for Tradestation.

    ChatGPT:
    A simple moving average (SMA) crossover strategy in EasyLanguage for TradeStation involves buying when a short-term SMA crosses above a long-term SMA and selling when it crosses below. Here's how to code it:

    Simple Moving Average Crossover Strategy (EasyLanguage)
    easylanguage
    inputs:
    ShortLength(10), // Short-term SMA period
    LongLength(50); // Long-term SMA period

    variables:
    ShortSMA(0),
    LongSMA(0);

    ShortSMA = Average(Close, ShortLength);
    LongSMA = Average(Close, LongLength);

    // Buy when Short SMA crosses above Long SMA
    if ShortSMA crosses above LongSMA then
    Buy next bar at market;

    // Sell when Short SMA crosses below Long SMA
    if ShortSMA crosses below LongSMA then
    SellShort next bar at market;

    Explanation:
    1. Inputs: Defines the short and long SMA periods.
    2. Variables: Stores the SMA values.
    3. Calculate SMAs: Uses the Average function.
    4. Entry Conditions:
      • Buy when the short SMA crosses above the long SMA.
      • Sell (or go short) when the short SMA crosses below the long SMA.
    5. Orders: Uses Buy next bar at market and SellShort next bar at market.
    Would you like to add stop-loss, take-profit, or position sizing to this strategy?


    Get goin and good luck Morty!! If you get stuck, people here will help you
     
    #43     Jan 30, 2025
    Drawdown Addict and TheMordy like this.
  4. TheMordy

    TheMordy

    Thanks so much for the detailed answer and the encouragement !!

    (new to me to get real help and support on this site...)
     
    #44     Jan 30, 2025
  5. TheMordy

    TheMordy

    Also for a really simple strategy - easy explainable to ChatGPT ?

    Would'nt I be able to leave it all up to him + minimal support on some forums ?
     
    #45     Jan 30, 2025
  6. TheMordy

    TheMordy

    Another question:

    If my strategy runs on Ninja and the execution on IBRK, will my startegy stay "safe", as Ninha dosn't know the win rate and IBRK not the strategy ?

    Yes, I'm talking like the guy with the super-duper-holy-gray - but I'm just trying to get into the world of automated trading, and like to know all the details about it...
     
    #46     Jan 30, 2025
  7. TheMordy

    TheMordy

    Just checking:

    500 daily automated trades is not considered much ?

    Not to get considerable reduced fees ?

    and also not for the broker to ask me for a Market-Maker or so certificate ?

    besides the tax office in my country which will tax my profits for that amount of trades with around 45%...
     
    #47     Jan 30, 2025
  8. That is the business behind platforms like Ninja Trader, they want to know your strategy.
    IBKR won't care at all.

    If you want your system to be safe you have to code the algorithm yourself and execute it through the broker API.
     
    #48     Jan 30, 2025
    TheMordy likes this.
  9. I think unless you know a little programming, ninjascript will be hardest to implement with chatGPT. It has to do with how the methods are staged/nested in ninjascript when you start a new indicator/strategy, and knowing where to put in your code. Not quite a copy and past thing, but the logic will be correct. chatgpt will give you more than you want with ninjascript, and some of it you just plain wont want to copy and paste.

    Regardless of where you start, dive in man! You wont finish unless you start. Just go. You know all you need for now
     
    #49     Jan 30, 2025
    TheMordy likes this.
  10. TheMordy

    TheMordy

    What's the difference between coding C# on Ninja versus C# "myself" ?

    That I don't have data and indicators to work with ?
     
    #50     Jan 30, 2025