Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You have requested help but you have not explained exactly on what it is you need help.
Please explain in detail and identify the exact parts of the code on which you need advice.
I got bot working to some extent, however it still does things awkwardly and I've been at this bot now for month and two weeks.
i still think that the supertrend buffers are 0 and 1. In your code you have superTrendUp and superTrendDown as the same buffer.
and we are not mind readers, so describe your problem.
i still think that the supertrend buffers are 0 and 1. In your code you have superTrendUp and superTrendDown as the same buffer.
and we are not mind readers, so describe your problem.
Ok the bot holds, set the stoploss and trade profit, however it does crazy, like close trades instantly, I have it set to open three trades till they close and the bot, opens like 30 in a quick space. I want that fix and set up for slippage and some other useful defines, values and parameters. I new to this bot thing, I'm learning to code and still I used mostly ChatGPT to build this i have another bot I'm working on, still I want two to grind that paper, lol... Oh yes one more thing, sometimes i still have to sit and watch trades to close them, i need this stable that i don't have to watch it, it does more losses, than wins. If you can help please do, anyone with ideas and other stuff useful for this crafted bot?
Please, don't request help for ChatGPT (or other A.I.) generated code. It generates horrible code.
And given that you are relying on such generators and have minimal understanding, then advice given will be difficult for you to understand and/or implement.
Here is a standard boiler-plate answer given out for most of these cases ...
- Usually people who can't code don't receive free help on this forum.
- If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
- To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Documentation
- Remember also, that you can debug your code with MetaEditor's own debugging functionality.
- Finally, you also have the option to hire a programmer in the Freelance section.
double superTrendUp = iCustom(NULL, 0, "SuperTrend", superTrendPeriod, superTrendMultiplier, 1, 0); double superTrendDown = iCustom(NULL, 0, "SuperTrend", superTrendPeriod, superTrendMultiplier, 1, 0);
this is the first thing that pops out at me. These 2 lines, are the same. But I am sure that they should have different integer numbers before the last comma, and after the supertrendMultiplier.
this is the first thing that pops out at me. These 2 lines, are the same. But I am sure that they should have different integer numbers before the last comma, and after the supertrendMultiplier.
Please, don't request help for ChatGPT (or other A.I.) generated code. It generates horrible code.
And given that you are relying on such generators and have minimal understanding, then advice given will be difficult for you to understand and/or implement.
Here is a standard boiler-plate answer given out for most of these cases ...
- Usually people who can't code don't receive free help on this forum.
- If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
- To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Documentation
- Remember also, that you can debug your code with MetaEditor's own debugging functionality.
- Finally, you also have the option to hire a programmer in the Freelance section.
I used the word "Usually" and also that is why there is a statement at the end ... "Finally, you also have the option to hire a programmer in the Freelance section."
Other that that, I also explained that ... " If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code."
They keyword being "your attempts" (not a generator's), as that would show that you are striving to learn to code for yourself and that you have at least some understanding of what you are writing down as code.
I notice you said no one will help for free, greed is NOT my motivation, I'm asking for help to build myself to look after those I care about and I know money is needed at times for that. However, if someone is willing to help me refine this code, I thank them...
There are lots of examples to learn from, on codebase.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use