Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1775

 

Good afternoon!

I have put an EA on the chart. The EA was working fine before that.

Terminal is frozen to death - I have rebooted the terminal, restarted the PC.

It is hanging!

I need to pull all of my indicators, profiles, and the Expert Advisor out of it!

There are practically no indicators in program files, the profiles are old for some reason.

Can I resuscitate it?

Help, please!

I have no indicators, I have no profiles. Thanks!

 
законопослушный гражданин #:

hello!

If I receive a signal (for example, Buy), I need to open an opposite order (Sell) after the lot conditions are met.

I built the code:

but when a condition occurs

But in this case two opposite orders are opened at once. How can you "fix" them?

You have the condition to open two orders simultaneously, if there are no open orders.

(GetLotSize()>LotControl)

What is it?

 
Kedrov #:

Good afternoon!

I hanged an EA on the chart. The EA was working fine.

The terminal froze to death - I rebooted the terminal, restarted the PC.

It is hanging!

I want to get all of my indicators, profiles, and the Expert Advisor out of it!

There are practically no indicators in program files, the profiles are old for some reason.

Can I resuscitate it?

Help, please!

Thank you!

You go to the ...MQL4/Experts folder

delete both files (mq4, ex4) of the Expert Advisor you have installed and launch the terminal

 
MakarFX #:

Go to the ...MQL4/Experts folder

delete both files (mq4, ex4) of the Expert Advisor you have installed and start the terminal without any problems

I can only access program files because the terminal is unresponsive. But there are no Expert Advisors in Expert Advisors. Not at all!

Long, hard terminal opens, but hangs...Can't do anything with it.

 
Kedrov #:

I can only go into the programme files, as the terminal is unresponsive. But there in Experts - no experts. None at all!

Long, hard to open the terminal, but it hangs...I can't do anything with it.

Find C:\Users\Mak\AppData\Roaming\MetaQuotes\Terminal
 
Kedrov #:

I can only go into the programme files, as the terminal is unresponsive. But there in Experts - no experts. None at all!

Long, hard to open the terminal, but it hangs...I can't do anything with it.

Run metaeditor.exe in the folder with the terminal.

Look for your Expert Advisor in the folder that opens and delete it

 
законопослушный гражданин #:

hello!

If I receive a signal (e.g. Buy), I need to open an opposite order (Sell) after the lot conditions are met.

I built the code:

but when a condition occurs

But two opposite orders are opened simultaneously. How can I cure them?

If the robot has already entered the market in one direction, it does not enter again in the same direction. Is this how your entry algorithm works?

If this condition ismet, it is triggered.

if((bSignalBuy() == true)&&(GetLotSize()>LotControl))
  vOrderOpenSell();

After

if(bSignalBuy() == true)
  vOrderOpenBuy();

And also when there is a sell signal.

Then, the reason for entering in the opposite direction is that the condition is triggered

GetLotSize()>LotControl
 
MakarFX #:

Run metaeditor.exe in the terminal folder

Look for your EA in the folder and delete it.

Makar!

First went to AppData - there it was in two builds - I deleted it

Checked it in the second version - it was not in metaeditor.exe

It is still there, process wheel on the cursor - spinning

Can I do something else, or should I open a new one and drag and drop everything from metaeditor.exe?


And then I got a question - is it possible to copy metaeditor.exe from this terminal to another terminal removing the one which was there?

Tried it - the trick didn't work

 
Kedrov #:

Makar!

First went into AppData - there it was in two builds - deleted it

Checked the second option - it's not in Experts metaeditor.exe

It is still there, process wheel on the cursor - spinning

Is there anything else I can do, or should I open a new one and drag and drop everything from metaeditor.exe?


And then there's a question - can metaeditor.exe from this terminal be pasted into another terminal, removing the one that was there?

Moving the metaeditor won't do anything.

If you have removed the EA and the terminal is still hanging, then it is not the problem.

Open this folder C:\Users\Mak\AppData\Roaming\MetaQuotes\Terminal

and take a screenshot.

 
MakarFX #:

Moving the metaeditor will do nothing.

If you deleted the EA and the terminal is still hanging, it's not the EA.

Open this folder C:\Users\Mak\AppData\Roaming\MetaQuotes\Terminal

and take a screenshot.

Thank you, Makar, for messing with me!

Here's a screenshot.

Files:
AppData.jpg  350 kb
Reason: