Sure, I will take look at it and try to edit according to my requirements
thanks
1
I Will Learn Coding in 1 Month - Give me the 80/20 of MT4 Coding 14 replies
Auto Pivot Point in MetaTrader coding assist please 10 replies
Coding Example Wanted 1 reply
Primer for coding MT4 3 replies
Overly Complex Coding and Trading Systems. 32 replies
Disliked{quote} --- Image: {image} --- Tested on BTCUSD: {image} --- ChangeLog: /*-------------------------------------------------------------------- Change-log: HedgeButtonClickEA Updated:[07-june-2025] By: MwlRCT -------------------------------------------------------------------- - Feature: On-chart button for trade execution. - Action: Button click opens simultaneous BUY and SELL orders (Hedge). - Requirement: Set Take Profit for both positions (Ref: FF nguyenoni). - Added: `InpStopLossPips` input parameter. - Implemented `GetUniversalUnitValue()`...Ignored
Disliked{quote} --- I can help you: Copy below system instruction and save it to CURSOR AI: <SYSTEM_INSTRUCTION> MODE: Clarification-First, Confirmation-Required TRIGGER: Any user request or instruction. LOGIC: 1. Upon receiving a request, immediately generate a concise, explicit summary of the interpreted task. 2. Before any action, present this summary to the user and explicitly request confirmation or clarification. 3. If ambiguity, vagueness, or multiple interpretations are detected, ask targeted clarifying questions. Do not proceed until ambiguity...Ignored
DislikedGreetings, programs! Woke up from a dream and said "Good morning" to my computer. This was its response: {image} {image}Ignored
Disliked{quote} What's with this .pdf??? Does it link to a hacking virus/trojan?Ignored
Disliked{quote} Hi Converted to txt. He He - Looks silly though. Go well / Mos (Apology to @emmzett) {file}Ignored
DislikedGreetings, programs! Woke up from a dream and said "Good morning" to my computer. This was its response: {image} {image}Ignored
Disliked{quote} {image} I have a problem with this AI response; it seems like it is selling a dream because machines do not simply understand everything. If we already have a coded strategy with 80% success, there is no need for AI; a robot can do the same job. The issue is that people think AI will help in this field. I don’t know how much it can actually help because coding some strategies is straightforward, but the main problem is the noise in the signals, which causes errors. The initial idea of a strategy might be good with a high win rate, but when...Ignored
Disliked{quote} Those AIs seem to be getting more and more stupid. They just do what they want, not what you want them to do, and they just mess everything up instead of fixing it. Like they can't understand most basic stuff. But, yes they can't understand anything, actually... Sad, but I get more and more frustrated - and they were supposed to help, not make it harder!Ignored
for (int i = 0; i < 3; i++) {
string *tempVar;
switch (i) {
case 0: tempVar = &temp_list1; break;
case 1: tempVar = &temp_list2; break;
case 2: tempVar = &temp_list3; break;
} Disliked{quote} Recently there have been many attempts to plant a hacking algo through .pdf attachement files. One of our friends from this forum has been infected in this way and lost a significant ammount of their money because of this.Ignored
Disliked{quote} Off topic: Don't want to appear super smart, but if someone catches a virus/malware via PDF then it's not the fault of the PDF file, but of the user using the wrong PDF reader. Especially one should never use Microsoft, Acrobat or Google readers. It's these softwares which are responsible for - unfortunate - user harm/infections.Ignored
Disliked{quote} The point is that this .pdf was uploaded to FF, and then downloaded by many users. Not only to FF, other forums, too. And the .pdf itself didn't contain any virus, it contained a url to the infection. Also, in another case, someone planted a .pif executable on some forums. And that's why all the commotion. Also, no, it's not the users fault!!! It's the fault of the one who planted/uploaded the file. Next, it's the fault of the forum or other site which allows such files to be uploaded without proper verification. Third, the final user trusts...Ignored
Disliked{quote} Let's agree to disagree. And to bring this somewhat pointless dispute back on-topic: Whenever any approaching trader engages with a professional trading environment, whenever he/her gets an insight and a glimpse of what's really going on in this business, then one of the very first things he/her learns is the requirement to be/become accountable. That's means not blaming the market or others for any mis-fortune but taking on full responsibility for your deeds and the outcome. Whithout that lesson learned the whole idea of earning money through...Ignored
DislikedWant to share my early experiences here for coding with a.i in hopes we can build the codes a lot quicker by bouncing ideas of each other. These might have been mentioned but not really elaborated on, feel free to add or to correct my mistakes 1st thing i noticed was the error loops, there were way to many and id sit there or give up because there will be error after error and i think its because id throw to many ideas at the a.i and then wonder why certain codes werent working the way i wanted, then id have to retrace step by step through the code...Ignored
Finally, there is a strategy decision room that communicates with all these rooms at every moment, checks the rules, and if all conditions are met, sends a message to the expert advisor’s trade execution section to request a buy or sell order.
This model helps us break down the code into small, manageable parts, carefully test each part, and eventually have an organized and extensible system that fully aligns with what we want.
In coding, we call these “rooms” functions.
Some examples of functions are:
// This function returns the number 5
int GetFive()
{
return 5;
} // This function adds two numbers and returns the result
int AddNumbers(int a, int b)
{
return a + b;
} // This function checks if a number is positive
bool IsPositive(int number)
{
if(number > 0)
return true;
else
return false;
}