any help please ?
i dont know how to do it , even chat GPT cant help me !!!
But please read up well beforehand:
rules: https://www.mql5.com/en/job/rules
EA requirements specification: https://www.mql5.com/en/articles/4368
Indicator requirements specification: https://www.mql5.com/en/articles/4304
How to Order a Trading Robot in MQL5 and MQL4: https://www.mql5.com/en/articles/117
- 2023.01.14
- www.mql5.com
string heading[4]= {"Buy","Sell"}; ⋮ for(int i=2; i<4; i++) { name=heading[i]; ObjectCreate(0,name,OBJ_LABEL,0,0,0);You can't create objects with a name of NULL.
William Roeder #:
You can't create objects with a name of NULL.
okay , but what i should do , cant you help edit the code
because the buy and the sell button are working !!
i dont know how to do it , even chat GPT cant help me !!!
What is chat GPT?
Where did you get the code from?
#property copyright "Keith Watford"
It appears that you have obtained some of my code from somewhere and modified it.
It is important that you study and fully understand code before you try to modify it
string heading[4]= {"Buy","Sell"};
You have a 4 element array but you have only assigned a value to 2.
int lastTradeTicket = OrderTicket();
You must select an order before you use OrderTicket() etc.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
What is chat GPT?
Where did you get the code from?
It appears that you have obtained some of my code from somewhere and modified it.
It is important that you study and fully understand code before you try to modify it
You have a 4 element array but you have only assigned a value to 2.
You must select an order before you use OrderTicket() etc.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
Sorry bro if I used your code without asking for it and I'll try to learn program from scratch
and I'm sorry because I choose the place of the subject wrong , for the chat GPT? it's an Ai that can generate code for you Everybody is talking about it these days but I think it is not good with mql code
Sorry bro if I used your code without asking for it and I'll try to learn program from scratch
and I'm sorry because I choose the place of the subject wrong , for the chat GPT? it's an Ai that can generate code for you Everybody is talking about it these days but I think it is not good with mql code
I have no problem with you using my code. I just wondered where you got it from.
But as I said you should study the original code and fully understand it before trying to modify it.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
So I have been making an AI with button labels
the first button opens bye
and the second one opens a sell
I want to add another two buttons one that opens a sell limit and one that opens a buy limit far from the last trade opened accordingly and I want to be able to edit the space between them in pipes and their lots
and also if it is possible to make the bot close all trades after some profit I put it in the input panel
here it is the code , I don't know what is its problem, can you please help me !