[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 380

 
kellin:
Do you know if it is possible to open a deal in Meta Trader 4 at a certain time and close it when the price reaches a certain number of points from the opening deal? Maybe you can write a script, does anybody knowhow to do it?

Use the search, you need to set an order opening by time and setting a takeprofit. https://www.mql5.com/ru/forum/113959

http://www.kimiv.ru/index.php?option=com_remository&Itemid=13&func=fileinfo&id=17

 
globad:
How much would such an EA cost, do you think?

I don't think you will formulate a complex EA. It would probably be a programme for about 50 quid at the most.
 
nikelodeon:


It's a template ..... What can it be, I updated build and EA started partially, moreover, the same EA on another old build, works, opens deals, etc.

Who will be able to help.... The Expert Advisor should work once per bar. But it beats the hell out of it....

Uh-oh... ...I tried to clean things up for you there... No... I don't think so. You first decide what you want to get, what the logic is...

Decide for yourself the whole sequence of actions, and then turn it into code...

It's a mess... There are a lot of mistakes... There is no check for "custom" orders, the orders array size was exceeded in a loop, the selection was based on zero instead of i... ...and a lot of other things...

 
Can you tell me what to do? I couldn't find it in a direct search... I want to display (and change) in the corner of the indicator the data of indicator lines when a new price value comes
 for(i=0; i<limit; i++)
      SignalBuffer[i]=iClose(NULL, PERIOD_M1,i)*1;
comment(
       "\n ",DoubleToStr(MaBuffer[i]+begin,5),
       "\n",DoubleToStr(SignalBuffer2[i],5),
       "\n",DoubleToStr(MacdBuffer[i],5),
       "\n",DoubleToStr(SignalBuffer[i],5)
With this design, the update is somehow not predictable
 
YOUNGA:
Can you help me? I haven't found it in a direct search... I want to display (and change) the data of indicator lines in the corner of the indicator when a new price value arrives With this design, the update is somehow unpredictable
 for(i=0; i<limit; i++)
      SignalBuffer[i]=iClose(NULL, PERIOD_M1,i)*1;
comment(
       "\n ",DoubleToStr(MaBuffer[0]+begin,5),
       "\n",DoubleToStr(SignalBuffer2[0],5),
       "\n",DoubleToStr(MacdBuffer[0],5),
       "\n",DoubleToStr(SignalBuffer[0],5)
 
splxgf:

Thank you - I've always known good people more than bad
 

People, can you tell me how to put a function in a library?

I created a function library with the wizard, copied the function code and pasted it into the window that opened, I press Compile and get the message: Start function not found and cannot by run.

What's wrong?

 
How can I tell if an EA is on a demo or real account?
 
nadya:
How can I tell if an EA is on a demo or real account?
https://docs.mql4.com/ru/check/IsDemo
 
Reason: