fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Popular
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month
    • G

      Do you use your EA for live trading?
      Questions & Answers • • GTOAT777

      58
      0
      Votes
      58
      Posts
      10296
      Views

      TipsyWisdom

      you can not just copy and paste EAs from mt4 to mt5, there are different blocks. Its best to remake it 1 by 1 block when transferring over.

    • G

      sell profit
      Questions & Answers • • gunji80

      56
      0
      Votes
      56
      Posts
      7660
      Views

      A

      I hope to be useful

      0_1566849673336_Cattura.JPG

      0_1566849683886_wwww.JPG

    • V

      tow conditions
      Questions & Answers • • venous

      56
      1
      Votes
      56
      Posts
      3802
      Views

      X

      @venous USDJPY 15

    • M

      Tutorial 06 - My Indicators in fxDreema
      Tutorials by Users • • miro1360

      55
      3
      Votes
      55
      Posts
      52897
      Views

      l'andorrà

      @austin07 Can you please open a different thread for your issue? This tutorial is not the place for that.

    • Spuzy

      [Custom Block Release] Send a message or screenshot to Telegram Blocks
      Tutorials by Users • • Spuzy

      55
      3
      Votes
      55
      Posts
      26388
      Views

      I

      Hello everyone, I hope the topic is still alive.
      First of all, I would like to thank the author for this wonderful work, everything works great!
      I have a question - is it possible to implement the function of sending a message to the Group Threads (message_thread_id)?

    • M

      Grid placing to many trades.
      Questions & Answers • • Michaelgstrainjr

      55
      0
      Votes
      55
      Posts
      1833
      Views

      M

      I finally made the pending orders close. Each tp needed to close the pending orders. Thanks yall.

    • A

      order manager
      Questions & Answers • • amin

      54
      0
      Votes
      54
      Posts
      17540
      Views

      fxDreema

      Is this picture from the last project that you have on the web version? If so, I will suggest few things. The first is - backtest it. Add some "Buy now", set it's MagicStart to 0 and backtest it. If there are issues, they will appear. Then, I'm not sure about the combination of Break even and partial close. Maybe you want to partially close and break even at the same time? If this is the case, why not using the pink "modify stops" somewhere around "close (partially)"

    • Sauce

      Adding custom Currency Strength Meter indicator
      Questions & Answers • • Sauce

      54
      0
      Votes
      54
      Posts
      11854
      Views

      Sauce

      @miki my apologies! I found the error... totally my fault. I added the indicator to the chart and forgot to make OutputGlobals to true instead of the default false. Works now! Thanks again, my apologies for the confusion!

    • slimmz

      Using custom SnD indicator
      Questions & Answers • • slimmz

      54
      0
      Votes
      54
      Posts
      9192
      Views

      slimmz

      @biztet Hahaha that's fine, im just wondering what to do with it

    • K

      Martingale or Grid EA - Help
      Questions & Answers • • keng89

      53
      0
      Votes
      53
      Posts
      8926
      Views

      l'andorrà

      @yader-mayorga Me alegro mucho. Felicidades.

    • M

      I have no idea how to start.
      Questions & Answers • • Miroslaw

      53
      0
      Votes
      53
      Posts
      6689
      Views

      l'andorrà

      @miroslaw For some reason you link doesn't open your project. Let me confirm if I understand it correctly.

      The preceding is a candle measuring 100 pips from high to low. The close price of the preceding candle is at 75 pips distance from high (for a sell trade). This means the lower wick is 25 pips long. If the close price of the preceding candle is at 75 or more pips distance from the high, the a sell is open.

      Is that correct?

    • B

      Distance from last open and only buy/sell above/below last open trade
      Questions & Answers • • bigfoot

      53
      0
      Votes
      53
      Posts
      4056
      Views

      jstap

      @bigfoot 👍

    • R

      Is there a way to configure the EA to wait for 3 consecutive losses and then enter orders?
      Questions & Answers • • rafaels919

      51
      0
      Votes
      51
      Posts
      11868
      Views

      T

      @cpxiom Passion is always a good attitude 😉

    • gooseman

      How to do I build a multi timeframe\symbol portfolio?
      Questions & Answers • • gooseman

      51
      0
      Votes
      51
      Posts
      5956
      Views

      MrDaisyBates

      @roar Gotcha! Thanks again. That makes sense.

    • A

      Stop and reverse strategy(No martingale)
      Questions & Answers • • Arrow82

      50
      0
      Votes
      50
      Posts
      20069
      Views

      AlphaOmega

      Hi roar.... Could you please look at this strategy and give me a helping hand ... I having trouble to get the TP to move 75% under the next created trade either in buy trend or sell trend. I have asked in the normal forum but nobody seems to know how to do it. I tried many ways but the TP either do not move to new position or the TP move and then retrace making the BT very very slow. I am hoping you will be able to help... Thx in advance
      Project:
      https://fxdreema.com/shared/DycmAdrob
      Idea:
      0_1597292522805_Capture.JPG
      Here is my post in the normal forum:
      https://fxdreema.com/forum/topic/10242/how-do-i-move-tp/15

    • TashaB

      How do I loop my EA?
      Questions & Answers • • TashaB

      49
      1
      Votes
      49
      Posts
      8035
      Views

      TipsyWisdom

      @ladydolares Id recommend you to youtube. My mentor is a controversial name but surely if you search around the internet you will find the person who didn't invent what an "order block" is, but made it widely known to the trading community back in the 90's. Or feel to message me and I can give you a good resource or 2

    • Monaco

      Expert programmer gives solutions to any problem just ask me
      Questions & Answers • • Monaco

      49
      0
      Votes
      49
      Posts
      7240
      Views

      Monaco

      @Kevin0214

      Variables and Preparation
      Define the variables needed to identify the oldest trade or the one furthest from the current price:

      // Variables for tracking the furthest or oldest losing trade double max_distance = 0; // Max distance from current price, initialized to zero double lot_to_close = 0.1; // Lot size to close partially int selected_ticket = -1; // Ticket ID of the selected trade for partial close // Loop through all open trades to find the oldest or furthest losing trade for (int i = OrdersTotal() - 1; i >= 0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { // Only consider trades on the current symbol and open positions if (OrderSymbol() == Symbol() && (OrderType() == OP_BUY || OrderType() == OP_SELL)) { double current_price = (OrderType() == OP_BUY) ? Bid : Ask; // Determine current price based on trade type double order_price = OrderOpenPrice(); double distance = MathAbs(current_price - order_price); // Calculate distance from current price // Check if the trade is in loss if (OrderProfit() < 0) { // Select the oldest or furthest trade in loss if (distance > max_distance || selected_ticket == -1) { max_distance = distance; selected_ticket = OrderTicket(); } } } } } // If a trade was found, proceed to partially close it if (selected_ticket != -1) { // Select the trade by ticket ID if (OrderSelect(selected_ticket, SELECT_BY_TICKET, MODE_TRADES)) { double remaining_lots = OrderLots() - lot_to_close; // Calculate remaining lots after partial close // Check if the remaining lot size is above the minimum allowed if (remaining_lots >= MarketInfo(Symbol(), MODE_MINLOT)) { bool close_result = OrderClose(selected_ticket, lot_to_close, OrderClosePrice(), Slippage, clrRed); if (close_result) { Print("Partial close successful for trade with ticket: ", selected_ticket); } else { Print("Error attempting partial close. Error code: ", GetLastError()); } } else { Print("Cannot partially close; remaining size would be below minimum lot size."); } } } else { Print("No eligible trade found for partial close."); }

      Function for Partial Close on Oldest/Furthest Losing Trade
      To make this process reusable, here’s a function that you can call whenever you want to perform this action.

      void PartialCloseOldestFurthestLoss(double lot_to_close, int slippage) { double max_distance = 0; // Max distance from current price int selected_ticket = -1; // Ticket ID of the selected trade for partial close // Loop through all open trades to find the oldest or furthest losing trade for (int i = OrdersTotal() - 1; i >= 0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { // Only consider trades on the current symbol and open positions if (OrderSymbol() == Symbol() && (OrderType() == OP_BUY || OrderType() == OP_SELL)) { double current_price = (OrderType() == OP_BUY) ? Bid : Ask; // Determine current price based on trade type double order_price = OrderOpenPrice(); double distance = MathAbs(current_price - order_price); // Calculate distance from current price // Check if the trade is in loss if (OrderProfit() < 0) { // Select the oldest or furthest trade in loss if (distance > max_distance || selected_ticket == -1) { max_distance = distance; selected_ticket = OrderTicket(); } } } } } // If a trade was found, proceed to partially close it if (selected_ticket != -1) { // Select the trade by ticket ID if (OrderSelect(selected_ticket, SELECT_BY_TICKET, MODE_TRADES)) { double remaining_lots = OrderLots() - lot_to_close; // Calculate remaining lots after partial close // Check if the remaining lot size is above the minimum allowed if (remaining_lots >= MarketInfo(Symbol(), MODE_MINLOT)) { bool close_result = OrderClose(selected_ticket, lot_to_close, OrderClosePrice(), slippage, clrRed); if (close_result) { Print("Partial close successful for trade with ticket: ", selected_ticket); } else { Print("Error attempting partial close. Error code: ", GetLastError()); } } else { Print("Cannot partially close; remaining size would be below minimum lot size."); } } } else { Print("No eligible trade found for partial close."); } }

      Explanation of the Function
      Function Parameters:

      lot_to_close: The lot size you want to close from the selected trade.
      slippage: The allowable slippage for the close operation.
      Selecting the Trade:

      Loops through all open trades and finds the trade with the maximum distance from the current price that is also in loss.
      Updates selected_ticket with the ticket ID of this trade.
      Partial Close Execution:

      If a trade is found, the function attempts a partial close by calling OrderClose.
      Checks if the remaining lot size will be above the minimum allowed to ensure the trade remains valid.
      Usage Example
      To use this function, you can simply call it with the desired lot size to close and slippage:
      PartialCloseOldestFurthestLoss(0.1, 3); // Partially closes 0.1 lots with 3 pips of allowable slippage

    • T

      I need help on this
      Questions & Answers • • tec.nacks

      49
      0
      Votes
      49
      Posts
      2343
      Views

      T

      @tec-nacks I've figured it out realise I didnt place value on the string data type

    • tcanuto

      Problem with custom indicator ex5
      Bug Reports • • tcanuto

      48
      0
      Votes
      48
      Posts
      16435
      Views

      fxDreema

      108 and 117 are at the top.

      At the same time... if you use different Group number, this is like having different EAs, so in this case you can control 2 strategies at the same time in the same EA. This is the idea of the Group number.

    • Julianrob

      Profitable test results on Falcon and Condor, and forward testing looking good
      General Discussions • • Julianrob

      47
      0
      Votes
      47
      Posts
      7217
      Views

      thatguyisop

      @Julianrob Nice result on the Quant Analyzer! how is the progress on the live test so far? and is this an ORB-like strategy?

    • 1
    • 2
    • 3
    • 4
    • 5
    • 9
    • 10
    • 3 / 10