fxDreema

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

    Posts made by pharmlatex

    • RE: how to add X grid trades after N pips drawdown

      Hi, thank you for your reply.

      I was able to successfully add the grid system to my EA.
      I really appreciate your advice.

      Best,

      posted in Questions & Answers
      P
      pharmlatex
    • how to add X grid trades after N pips drawdown

      Hi everyone,

      I want to add a simple grid trading system to my EA.
      How can I make it so that if the price moves N pips against the current position, it opens another trade in the same direction, and repeats this process up to X times?

      I’ve built a very simple shared project here:

      https://fxdreema.com/shared/D87ot2mvd

      Could someone please take a look and show me the correct or most efficient way to implement this logic?

      Thanks a lot in advance!

      posted in Questions & Answers
      P
      pharmlatex
    • RE: Switching auto lot and fixed lot

      Hi, Thank you for your reply. I apologize for the delayed response. I’ll study your idea and try to implement it in my EA. Thank you again.

      posted in Questions & Answers
      P
      pharmlatex
    • Switching auto lot and fixed lot

      Hi,

      I would like to add a switch to my EA for changing between auto lot and fixed lot. The attached picture is from a commercial EA, and I would like to create something similar. Is this possible?

      Best regards,

      39d773ff-0e1e-45f2-8c22-d659fd84e7d0-image.png

      posted in Questions & Answers
      P
      pharmlatex
    • RE: Close positions at end of the day

      Hi,

      Thank you for your reply. I try to close all positions within a day. I'm currently testing the EA using the MT4 strategy tester, and I believe the broker's GMT offset is not an issue.

      Best regards,

      posted in Questions & Answers
      P
      pharmlatex
    • RE: Close positions at end of the day

      Hi,

      I appreciate all the advice. I have tried changing the "time filter" and "once a day" settings many times, but I still cannot solve the problem. The attached link contains the minimal structure of the EA. It opens positions and closes positions based on Indicators, but some positions are being closed the next day. I want to open and close positions within a day. Could you help me again?

      Thank you!

      https://fxdreema.com/shared/kBsKp3w8e

      posted in Questions & Answers
      P
      pharmlatex
    • Close positions at end of the day

      Hi,

      I would like to know how to close positions at the end of the day. The EA is designed to open orders at NY time and close all positions before the rollover time (between 00:00 and 01:00). However, I can’t find a way to specify this. Could you please help me?

      Best regards,

      https://fxdreema.com/shared/SrSVjaled

      posted in Questions & Answers
      P
      pharmlatex
    • RE: About loss calculation

      Hi, thank you for youre reply. I'm running the EA using "Specified" on demo account. I'll check how it works. Thank you.

      posted in Questions & Answers
      P
      pharmlatex
    • RE: About loss calculation

      Hi, thank you for your reply.

      This test EA would have a maximum of 3 positions. I want to close positions only when the sum of the 3 positions' loss is over 300 pips in one chart. However, I don't want to close positions if the sum of all charts is over 300 pips loss (for example, 100 pips from USDJPY and 200 pips from GBPUSD). I read your explanation and understand that in the current setting, only the sum of one chart is referenced. Is that correct?

      posted in Questions & Answers
      P
      pharmlatex
    • About loss calculation

      Hi,

      I've made an EA that holds a maximum of 3 positions per currency pair, and the EA is designed for multiple currency pairs. The link below is the one with the complicated regions removed. I tried to close all positions at a total floating loss of -300 pips. However, if the EA is running on 3 pairs such as USDJPY, EURUSD, and AUDUSD, and if all 3 pairs have positions at the same time (maximum 9 positions), is the total floating loss calculated as the sum of all positions from all 3 pairs? Or, when USDJPY reaches -300 pips, are only the USDJPY positions closed?

      Please help me.

      Best regards,

      https://fxdreema.com/shared/4LyKuZz2d

      posted in Questions & Answers
      P
      pharmlatex
    • RE: How to set candle ID and group?

      Hi,

      I appreciate your kind reply. I was able to fix the issue and found what was wrong. Thank you very much!

      posted in Questions & Answers
      P
      pharmlatex
    • RE: How to set candle ID and group?

      Hi, this is the newest link. I tried to fix it according to pacificnet.lk's kind advice but failed. Because the closing conditions are the same, "Open Order" and "Open Order 2" should each result in only one position. However, in my current EA, they create several positions until the closing point. Please help!

      https://fxdreema.com/shared/3ezoBqxab

      posted in Questions & Answers
      P
      pharmlatex
    • RE: How to set candle ID and group?

      Hi, pacificnet.lk,

      Thank you for your reply. I moved the "if trade close" block to the "on Trade" tab and changed the group mode to "All (automated and manually opened)" for all blocks. In the strategy tester, the EA made multiple orders but did not close any of them. I think the assignment was not correct. Could you help me again?

      image.png

      image.png

      posted in Questions & Answers
      P
      pharmlatex
    • RE: How to set candle ID and group?

      Hi, is this correct?

      https://fxdreema.com/shared/vX8WPTWqd

      posted in Questions & Answers
      P
      pharmlatex
    • How to set candle ID and group?

      I'm making an EA that uses two strategies with the same logic but make different position with different intensities (weak and strong signal, respectively). The 1st strategy opens a position with a weak pinbar (signal 1) and closes it at the EMA touch, and it does not open the next position until the previous one closes. The 2nd strategy uses a stronger pinbar (signal 2) and closes it at the EMA touch but is allowed to open a position even when a position from the 1st strategy (signal 1) exists.

      I'm struggling to assign group and candle IDs. Please help!

      9e474ebf-9c3a-4172-b1f5-7639d0593900-image.png

      posted in Questions & Answers
      P
      pharmlatex
    • RE: How to set Heikenashi_smoothed?

      Hi,

      I apologize for my delayed response. I found a strategy that uses Heiken Ashi Smoothed, and I downloaded one. I'll try to find a good one and test it myself. If I need more help, I'll ask for assistance on your website.

      Best regards,

      posted in Questions & Answers
      P
      pharmlatex
    • How to set Heikenashi_smoothed?

      Hi, I'm struggling to use the Heiken Ashi Smoothed indicator. At first, I tried to create a simple EA that buys at the end of the candle when the indicator changes from red to green. I checked the topics in this forum but couldn't find an answer. Can you help me?

      1f507eff-ef79-4502-946f-52d70daccfa1-image.png
      ad26aece-5523-49d1-a278-a035ee905dd3-image.png

      posted in Questions & Answers
      P
      pharmlatex
    • RE: How can I set time filter?

      Hi Frosties,
      Thanks to your kind advice, I was able to fix the EA, and it is now running as expected. Thank you!

      posted in Questions & Answers
      P
      pharmlatex
    • How can I set time filter?

      Hi, I'm new to this service. I'm currently developing a night scalper for testing, and I need some help. I want to open a Buy/Sell order when the price touches the Bollinger Band at -2σ, but only between 23:00 and 23:59. I've attached my script to this question. The script should filter by time, check for the Bollinger Band touch, and then open the Buy/Sell order. However, some trades are opening at exactly 23:00 without touching the Bollinger Band at ±2σ. How can I fix this?

      360807d0-11ad-456c-bb45-767ecdb826c0-image.png
      20add9cc-eeb7-4431-907b-e6e088c9eeef-image.png
      d5f2ec29-b5fc-4c55-9e29-0eb0ff16c123-image.png

      posted in Questions & Answers
      P
      pharmlatex
    • 1 / 1