Hi!
I try to create a strategy which works as follows:
- open a Long position at 0:55 am with a very wide TP and SL
- at 1:05 am change TP into the price, at which the current position was initially opened.
Is this possible to create such condition? And if so, could anyone please help me with this? I am sorry if such question has already been asked at the forum, but I can't find such topic anywhere.
I attached the code, which is supposed to open a Long position at 0:55am with wide TP and at 1:05am change TP into 20 pips. How could I edit it, so it would work as I mentioned above?
Hi!
I try to create a strategy which works as follows:
- open a Long position at 0:55 am with a very wide TP and SL
- at 1:05 am change TP into the price, at which the current position was initially opened.
Is this possible to create such condition? And if so, could anyone please help me with this? I am sorry if such question has already been asked at the forum, but I can't find such topic anywhere.
I attached the code, which is supposed to open a Long position at 0:55am with wide TP and at 1:05am change TP into 20 pips. How could I edit it, so it would work as I mentioned above?
if(Volume[0]>1) return; if(Hour()==0 && Minute()==55 && Seconds()==0)
You have already been told about this.
https://www.mql5.com/en/forum/428620#comment_40776320
yet you are making exactly the same mistake here.
People won't keep trying to help if you ignore what they say.

- 2022.07.13
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi!
I try to create a strategy which works as follows:
- open a Long position at 0:55 am with a very wide TP and SL
- at 1:05 am change TP into the price, at which the current position was initially opened.
Is this possible to create such condition? And if so, could anyone please help me with this? I am sorry if such question has already been asked at the forum, but I can't find such topic anywhere.
I attached the code, which is supposed to open a Long position at 0:55am with wide TP and at 1:05am change TP into 20 pips. How could I edit it, so it would work as I mentioned above?