I need some help please,
I have an indicator,which it create an object on the chart,which in the parameters it has a time value like this: 2017.09.20 12:00
1.I want to save in a variable the current date and time,which it will have value like this too:2017.09.19 17:00
Then i want to compare that too values,this i can do it,i have done that code.
2.Can i compare it without problem that values?
1.I use EA Builder to develop my Ea ,i don't have good knowledge of custom mql4 code.
2.I know the name of the object.The object on chart has parameters like the picture.I am interesting only for the time parameter.
3.I don't want to know how to get the time value of the object, i will do it that with EA builder much easier.
I want help only, how to set a variable(MyDateTime) ,which can hold a value like this 2017.09.19 17:00.
4.I ask if is possible to be a condition If MyDateTime(2017.09.19 17:00) < ObjectTime(2017.09.20 12:00) do that......!Can that values be compared?
1.I use EA Builder
3.I don't want to know how to get the time value of the object, i will do it that with EA builder much easier. I want help only, how to set a variable(MyDateTime) ,
Of course there no way to communicate with you,because you told me irrelevant things.If you don't want to help,don't answer.
I choose to build a EA using EA builder and 18.000 lines code builded with that without error look to me very well.
1.I don't ask you to debug me anything.
2.Yes ,i know how to intergrate it into my code
3.No need to suggest me OrderSelect loop with Magic Number and Symbol filtering, No need that.
4.The answer for someone who knows MQL4 is very simple for that i asked.It will be something like this:
Example: for declaration of variables do that: datetime MyDate=0;
for adding value to my MyDate do that: MyDate=Timecurrent();(added value like this 2017.09.19 17:00)
Yes or no,if that values can be compared.
datetime time = (datetime)ObjectGetInteger(0,"object_name",OBJPROP_TIME);
Why spoon feed the answers to people like that?
The OP already said they were using an EA builder and not actually coding the system. All they needed to do was look in the MQL documentation and they could have found the answer.
Exactly what I already said
You know how to get a object's value with EA builder, but you don't know
how to assign that value to a variable with EA builder? How can we
possibly help you, there is no common language
for us to communicate.
I don't understand your annoyance.So everyone who knows forex and want to automate the strategie must know mql4?We are not all programers.
I ask 2 lines code for help me bust my strategie for some expert.I will be sure for the output that's way,but not if i done it and tring to find the errors for that.
Ιs at the disposal of everyone to help if they want.Of cource there are people @Jack Thomas who get money from programming mql4,so that's why they are annoyed of that.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.