Help to fine tune an advisor, an indicator - page 6

 
Thank you very much!
 
Hello, is it possible to add ATR to the robot ?
 
Romal001:
Hello ! Is it possible to add ATR to the robot ?

yes

https://docs.mql4.com/ru/indicators/iatr

iATR - Технические индикаторы - Справочник MQL4
iATR - Технические индикаторы - Справочник MQL4
  • docs.mql4.com
iATR - Технические индикаторы - Справочник MQL4
 

Hello !

Please help me to equip my EA with function to close all orders when the profit % of the deposit is reached, if there are orders over 200p then trailing stop should be applied to them.

Please help with it, I've already had enough troubles...

Files:
probetest.mq4  279 kb
 
FXwin:

Everyone who is not good at coding has probably faced the problem of missing one or two functions to get a grail in their trading system)
We will improve, fix, fix it!

Afternoon.

In the attached file, the script "to determine the lot or Stop Loss" to implement

Risk-Management.

Unfortunately, the authors of the "script" have not been contacted.

*(either very rich or very lost (April 1 all the same))).

The essence of the request is as follows:

1. The script was written for 4-digit data from the broker;

**(currently 5 digit prices are used).

In this regard, when using the "script" I have to "rearrange the comma in my head".

which is not very convenient. i.e. with a stop loss of 50 pips in 4 digits,

i.e. a stop loss of 50 points in the 4-digit equals 500 points in the 5-digit equals 500 points in the 5-digit equals the lot is one tenth bigger.

the same problem is with calculation of ATR, i.e. instrument moves.

***orders are not opened for this reason either.

In general, the "comma needs to be moved" in calculations (and display) of the script,

optimize the script for working with 5 digit prices.


Regards,

Andrew.

Files:
 
pal64them:

Please help me to fill in the expert advisor function to close all orders when the profit % of the deposit is reached, if there are orders over 200p then apply trailing stop to them.

I will have a look at it.

Wallstep:

In the attached file the script "to determine the lot or stop loss" to implement
conditions of Risk Management.
Unfortunately the authors of the "script" could not be contacted.

You have ex4 files in your archive.
To fix something in the code you need mql4

 
pal64them:

Please help me to equip my Expert Advisor with the function to close all orders when the profit % of the deposit is reached

New parameter: ProfitPercent = 0.0; // Percentage of profit (if =0.0 off)


If there are orders above 200p, apply a trailing stop to them.

What is 200p?
Pips, or currency of deposit?

Files:
 
FXwin:

OK, I'll have a look.

You have ex4 files in the archive.
To fix something in the code you need mql4

Do I understand correctly that there is no way to refine it?

 
Wallstep:

Am I right in assuming that there is no way to refine it?

No of course, I won't be able to open the ex4 code to edit.

 
FXwin:

No, of course I won't be able to open the ex4 code to edit it.

Thank you very much for your promptness, though.

Can you tell me who can handle ex4?