fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. simba296
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by simba296

    • RE: How to limit "number" of trading symbols? if I drag EA into 28 pairs but want to limit only 4 pairs. ?

      Thanks. I will look for a programmer to help with coding.

      posted in Questions & Answers
      S
      simba296
    • RE: How to limit "number" of trading symbols? if I drag EA into 28 pairs but want to limit only 4 pairs. ?

      I am creating an EA on fxdreema and I would like some help to limit trades per currency. I intend to trade eurcad, eurusd, nzdusd, usdcad, usdjpy and euraud but I want to trade no more than one usd and no more than 2 EUR. I turned to AI for help because this question was asked before but it was not clearly resolved. It gave a 5 steps process . I am unable to implement all the Steps except step 1 and step 3 . Below find the steps and provide help . To limit trades per currency in fxDreema — specifically:
      • ✅ No more than 1 USD trade
      • ✅ No more than 2 EUR trades
      — across pairs like EURCAD, EURUSD, NZDUSD, USDCAD, USDJPY, and EURAUD, follow this step-by-step guide using fxDreema’s built-in blocks (no custom MQL4 coding required).


      🧠 Concept:
      We’ll:

      1. Loop through all open trades
      2. Count how many contain "USD" or "EUR" in their symbol
      3. Use conditions to block new entries if the limit is reached

      ✅ Step-by-Step in fxDreema


      🔹 Step 1: Define Your Variables
      Go to the “Variables” tab and create:
      Name Type Initial Value
      usdCount int 0
      eurCount int 0
      These will track the number of open USD and EUR trades.


      🔹 Step 2: Reset Variables on Every Tick
      In the “on Tick” event, add two blocks:
      • Set Variable → usdCount = 0
      • Set Variable → eurCount = 0
      This ensures we reset before recounting each time.


      🔹 Step 3: Loop Through All Open Trades
      Add a block:
      Block: For each Trade
      Scope: All Trades
      This will loop through each open trade.


      🔹 Step 4: Inside the Loop — Count Currencies
      ➤ Check if Trade Symbol Contains "USD"
      • Condition block:
      o Left: Symbol
      o Is: Contains
      o Right: "USD"
      → Connect this to a Modify Variables block:
      • Variable: usdCount
      • Action: Add
      • Value: 1


      ➤ Check if Trade Symbol Contains "EUR"
      • Condition block:
      o Left: Symbol
      o Is: Contains
      o Right: "EUR"
      → Connect this to another Modify Variables block:

      here is the link for the project. https://fxdreema.com/shared/ytofVuile

      posted in Questions & Answers
      S
      simba296
    • RE: Check trades and For each trade blocks are not working in my project

      I don't get it when you say technically this should work but I know it doesn't. Like which blocks do you have in mind to be removed?. I need all the blocks shown as part of my strategy. Removing the blocks would change my strategy.

      posted in Questions & Answers
      S
      simba296
    • Check trades and For each trade blocks are not working in my project

      I have spent many days trying to make an EA which opens maximum of 3 Buy trades and 3 Sell trades for each currency pair it trades in. I have tried to use For Each Block but the EA still opens more positions than expected. Here is the link for the project.https://fxdreema.com/shared/yZoH3ezMb
      Perhaps there is something I am not doing correctly. I then tried the Check Trades Count. It did not work either. See project link: https://fxdreema.com/shared/VismTL53c. Then I tried Custom MQL code but it did not work because of error in the code. I am not a programmer. See link https://fxdreema.com/shared/FfkceluR.
      Kindly give directions with step by step instructions on how I can resolve this problem. Perhaps a correction of Custom MQL code might help in case you can code. Thanks

      posted in Questions & Answers
      S
      simba296
    • RE: Conditional trading pairs

      Hi Everyone,
      I have seen a similar question in the forum and decided to use some of the ideas posted. It was proposed to use On Trade rather than On tick. What I have created does not work. Please check the link below and correct me where I am wrong. https://fxdreema.com/shared/JoOtd7u2c

      posted in Questions & Answers
      S
      simba296
    • RE: Conditional trading pairs

      Thanks for your quick response. I have more than one trade per chart. Each chart has actually up to 3 trades giving up to 9 open trades at any particular moment. For example I have GBPAUD, USDCAD EURAUD, NZDUSD, GBPCHF and EURJPY. If GBPAUD, USDCAD and EURAUD has open trades none of the other pairs can open a trade but GBPAUD, USDCAD and EURAUD can each have 3 trades each.

      posted in Questions & Answers
      S
      simba296
    • Conditional trading pairs

      Can someone help with an example how I can only trade with 3 Pairs out 6 pairs in my charts. Each of the 6 pairs can trade but only 3 pairs can trade at the same time.

      posted in Questions & Answers
      S
      simba296
    • 1 / 1