Hi, thank you for your reply.
I was able to successfully add the grid system to my EA.
I really appreciate your advice.
Best,
Hi, thank you for your reply.
I was able to successfully add the grid system to my EA.
I really appreciate your advice.
Best,
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!
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.
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,

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,
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!
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,
Hi, thank you for youre reply. I'm running the EA using "Specified" on demo account. I'll check how it works. Thank you.
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?
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,
Hi,
I appreciate your kind reply. I was able to fix the issue and found what was wrong. Thank you very much!
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!
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?


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!

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,
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?


Hi Frosties,
Thanks to your kind advice, I was able to fix the EA, and it is now running as expected. Thank you!
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?


