fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    sooo today i was fooling with chatgpt and....

    Questions & Answers
    2
    3
    374
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fred2 last edited by

      today i was fooling around with chat gpt and created a ea for mlq5 that trades a strategy based on indicators and trend continuation i was having a hard time getting to code right so switched gears and had chat gpt create a text tutorial for fx dreema and now im stumped even more on how to interpet the text tutorial into a actual fx dreema project that follows all the rules i wanted so .. if any body can help by all means if you can figure a way to get this into a decent project where it complies and actually execute trades please provide any insight or contributions are great ..

      strategy is

      check to see if the last two 4 hr candles are above or below the 200 ema for that time frame respectively then looking for a 14 ema 21 sma cross on the 30 min for either buys or sells based on the 4 hour trend
      for regular breakouts and

      5 min 14 /21 cross based on m30 already crossing and 4 hr trend in confluence

      okay thats just a basic rundown heres the chat gpt text tutorial it wrote

      Based on the updated requirements, let's revise the step-by-step process for creating the Nebula Breakout Expert Advisor in FX Dreema:

      Step 1: Creating Constants and Variables

      Constants:

      • DAILY_PROFIT_GOAL (string): The desired daily profit goal (e.g., "2%").
      • STOP_LOSS_DISTANCE (string): The distance in pips for the stop loss level (e.g., "50").
      • TRAILING_STOP_DISTANCE (string): The distance in pips for the trailing stop (e.g., "20").
      • TRADE_START_TIME (string): The start time for trading (e.g., "17:00").
      • TRADE_END_TIME (string): The end time for trading (e.g., "12:00").

      Variables:

      • accountBalance (string): The current account balance.
      • maxRiskPerDay (string): The maximum risk per day calculated based on the daily profit goal.
      • positionSize (string): The calculated position size based on the max risk per day.
      • lastTwoFourHourCandlesClosedAboveEMA (boolean): Indicates if the last two 4-hour candles closed above the 200 EMA.
      • lastTwoFourHourCandlesClosedBelowEMA (boolean): Indicates if the last two 4-hour candles closed below the 200 EMA.
      • fourHourCandlesAboveEMA (boolean): Indicates if the current 4-hour candle closed above the 200 EMA.
      • fourHourCandlesBelowEMA (boolean): Indicates if the current 4-hour candle closed below the 200 EMA.
      • thirtyMinEMA21SMA (boolean): Indicates if the 30-minute candle's 14 EMA crossed above the 21 SMA.
      • fiveMinEMA21SMA (boolean): Indicates if the 5-minute candle's 14 EMA crossed above the 21 SMA.
      • fiveMinEMA21SMACrossAbove (boolean): Indicates if the 5-minute candle's EMA crossed above the SMA.
      • fiveMinEMA21SMACrossBelow (boolean): Indicates if the 5-minute candle's EMA crossed below the SMA.
      • entrySignal (string): The generated entry signal.
      • stopLossLevel (string): The calculated stop loss level.
      • takeProfitLevel (string): The calculated take profit level.
      • trailingStopLevel (string): The calculated trailing stop level.
      • currentTime (string): The current time.

      Step 2: Creating Entry Conditions

      1. Primary Logic:
        • Use the "EMA" block to calculate the 200 EMA for the 4-hour timeframe.
        • Use the "Candle Close" block to get the close prices of the last two 4-hour candles.
        • Use the "Greater Than" block to check if both candle close prices are above the 200 EMA.
        • Assign the result to the lastTwoFourHourCandlesClosedAboveEMA variable.
        • Use the "Less Than" block to check if both candle close prices are below the 200 EMA.
        • Assign the result to the lastTwoFourHourCandlesClosedBelowEMA variable.
        • Use the "Candle Close" block to get the close price of the current 4-hour candle.
        • Use the "Greater Than" block to check if the current candle close price is above the 200 EMA.
        • Assign the result to the fourHourCandlesAboveEMA variable.
        • Use the "Less Than" block to check if the current candle close price is

      below the 200 EMA.

      • Assign the result to the fourHourCandlesBelowEMA variable.
      • Based on the above conditions, generate the entrySignal accordingly.
      1. Trend Continuation Logic:
        • Use the "EMA" block to calculate the 14 EMA for the 30-minute timeframe.
        • Use the "SMA" block to calculate the 21 SMA for the 30-minute timeframe.
        • Use the "Greater Than" block to check if the 14 EMA crossed above the 21 SMA.
        • Assign the result to the thirtyMinEMA21SMA variable.
        • Use the "EMA" block to calculate the 14 EMA for the 5-minute timeframe.
        • Use the "SMA" block to calculate the 21 SMA for the 5-minute timeframe.
        • Use the "Greater Than" block to check if the 14 EMA crossed above the 21 SMA.
        • Assign the result to the fiveMinEMA21SMA variable.
        • Use the "EMA Cross" block to check if the 5-minute EMA crossed above the SMA.
        • Assign the result to the fiveMinEMA21SMACrossAbove variable.
        • Use the "EMA Cross" block to check if the 5-minute EMA crossed below the SMA.
        • Assign the result to the fiveMinEMA21SMACrossBelow variable.
        • Based on the above conditions, generate the entrySignal accordingly.

      Step 3: Implementing Risk Management

      • Calculate the maxRiskPerDay by multiplying the accountBalance by the daily profit goal (DAILY_PROFIT_GOAL) divided by 100.
      • Calculate the positionSize by dividing the maxRiskPerDay by the stop loss distance (STOP_LOSS_DISTANCE).

      Step 4: Setting Take Profit and Stop Loss

      • Calculate the takeProfitLevel by multiplying the stop loss distance (STOP_LOSS_DISTANCE) by 2.
      • Calculate the stopLossLevel by subtracting the stop loss distance (STOP_LOSS_DISTANCE) from the current price (currentPrice).

      Step 5: Implementing Trailing Stop

      • Calculate the trailingStopLevel by subtracting the trailing stop distance (TRAILING_STOP_DISTANCE) from the current price (currentPrice).

      Step 6: Daily Trading Schedule

      • Use the "Current Time" block to get the current time (currentTime).
      • Use the "Greater Than" and "Less Than" blocks to check if the currentTime is greater than or equal to TRADE_START_TIME and less than TRADE_END_TIME.
      • If the condition is true, proceed with the trading logic. Otherwise, skip trading for the day.

      Step 7: Account Profit Goal

      • Calculate the desired account profit goal by multiplying the account balance by the daily profit goal.
      • Use the "Greater Than" block to check if the account profit goal has been reached.
      • If the condition is true, skip trading for the day.

      Please note that this is a generalized outline, and you may need to modify and adapt the logic based on the specific features and capabilities of FX Dreema and the trading platform you're using.

      if you can add or help make this better plz i dont care if you take the project bones and expand on it for your own just would like a frame work

      heres my inital build
      https://fxdreema.com/shared/j3kOdVLme

      thanks guys

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        I'm not a programmer, so I'm afraid I cannot be of any help in this case. However, I tried chatGPT to create some bots and I was disappointed. None of them worked. It still needs a lot of improvement before substituting fxDreema! 🙂

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • F
          fred2 last edited by

          yea it does its good for strategy structure but to get actual code is really really hard

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          D
          G
          T
          N
          M
          K
          F

          15
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors