명시
I tried using ChatGPT to Create this Multi-Pair Heikin Ashi EA to close open trades for me, but I need a developer to modify the code to make it functional,
I've attached the MQL5 code generated by ChatGPT I need modified (partially, or in full, depending on how much change needs to be made to get it working the way I desire) and notes generated by ChatGPT to help explain how it should function.
But, In short, the EA should work based on these principles:
1. it MUST be multi-pair and able to scan multiple symbols/pairs at the same time from one chart
2. Scans all listed pairs for the CURRENT (not closing or open) value of the Heikin Ashi candle for the selected timeframe (not the attached chart's timeframe)
3. When the CURRENT Heikin Ashi candle for the selected timeframe (scan all symbols/pairs on the same selected timeframe) is BULLISH and there is a sell trade for one of the trades, it should close the trade. And vice versa for buy trades when the CURRENT Heikin Ashi candle for the selected timeframe is bearish
4. IMPORTANT: it should ONLY close trades for that one specific pair/symbol when a close signal is analyzed based on rule #3. I don't want it to close trades for all of the selected symbols/pairs at the same time.
5. ALSO IMPORTANT: It has to close instantly when a close signal is analyzed on the CURRENT Heikin Ashi candle for the selected timeframe in real-time if a signal is analyzed when it scans at the selected time interval (in seconds), not wait for the HA candle for that timeframe to close.
I'll need the input settings to remain, especially the:
* INPUT SYMBOLS (comma-separated list of symbols to be monitored)
* TIMEFRAME (A dropdown menu [or text field] to select the timeframe for analysis)
* SCAN INTERVAL (A numeric input field to define the interval [in seconds] between scans for open positions.
Below are the two attached files mentioned above (MQL5 Code and Notes). Let me know if you have any questions.