Solo gli utenti che hanno acquistato o noleggiato il prodotto possono lasciare commenti
Catalin Zachiu  
mqsato #:
Hello,

I'm sorry, but let me ask you one more question.
MT4 CPU usage increases outside the trading hours set in "PauseHour" and on weekends.
I'm using it with multiple brokers, but with some brokers, MT4's CPU usage rises abnormally to nearly 100%.
It will return to normal during trading hours, but I would like to reduce the burden on my PC whenever possible.
Are there any countermeasures?

Implemented function for reducing CPU usage during pausing pending orders and option for displaying the CPU requests (executions) per second made by the EA .
If the Reduce CPU parameter is set to true , then the EA will make only one request (execution) per second .
If this function is used in parallel with multiple open orders , Safety Stop , Daily Goal and Max Daily Loss functions might be delayed up to one second , or missed entirely if the Daily Goal or Max Daily Loss show up very briefly (under one second) .

mqsato  
Catalin Zachiu #:

Implemented function for reducing CPU usage during pausing pending orders and option for displaying the CPU requests (executions) per second made by the EA .
If the Reduce CPU parameter is set to true , then the EA will make only one request (execution) per second .
If this function is used in parallel with multiple open orders , Safety Stop , Daily Goal and Max Daily Loss functions might be delayed up to one second , or missed entirely if the Daily Goal or Max Daily Loss show up very briefly (under one second) .

Thank you for being prompt.
You mentioned that the EA only has 1 request (execution) per second, but does it also reduce the number of TrailingStop updates during profit updates?
I don't think it's a problem for Daily Goal and Max Daily Loss to react slowly, but I don't want to lose reaction speed while holding a position.
Catalin Zachiu  
mqsato #:
Thank you for being prompt.
You mentioned that the EA only has 1 request (execution) per second, but does it also reduce the number of TrailingStop updates during profit updates?
I don't think it's a problem for Daily Goal and Max Daily Loss to react slowly, but I don't want to lose reaction speed while holding a position.

Yeap , you are right , I have modified it so that it runs with normal speed if any open orders .

Modified the Reduce CPU function so that if any open orders are present , the EA will run and manage the open trades with normal speed ( CPU rqeuests per second are not lowered) . version 4.5

Vladimir Tyurin  
Привет! а можно в настройках советника прописывыть API ключи от биржи бинанс ?
mqsato  
Catalin Zachiu #:

Yeap , you are right , I have modified it so that it runs with normal speed if any open orders .

Modified the Reduce CPU function so that if any open orders are present , the EA will run and manage the open trades with normal speed ( CPU rqeuests per second are not lowered) . version 4.5

Perfect. Thank you very much

By the way, I haven't used this feature yet, but I've been setting Tops Scalper on many charts lately. mt4, about 50 charts per one.
I feel that the trailing stop is delayed compared to when there were few charts, but maybe I set too many?
By the way, the CPU of the PC is 30-60%. Memory is always running around 70-80%.
Catalin Zachiu  
rapmaxter #:

Hello Catalin Zachiu,

are the old set files suitable for the revised EA code?

The are compatible with the EA code , but not with current market conditions , I added a new function , VirtualTakeProfit and posted updated set files , using the new function . The OnTester function will also now display in strategy tester the profit/drawdown ratio so that on optimization , the best results using this ratio can be sorted easyier .

The new set files can be found on post #187 .

Catalin Zachiu  
Vladimir Tyurin #:
Привет! а можно в настройках советника прописывыть API ключи от биржи бинанс ?

Привет, я не знаю, как это сделать, или если это возможно, из-за безопасности.

Hi , I don't know how to do it , or if it's possible , because of security .

mqsato  

Hallo

Usually, when a trailing stop starts, the SL is "modify" to move to the entry point, but is there a parameter to shift this SL value from the entry point?

For example, if USDJPY entered at 140.000 at "TrailingStop" 15, SL will move to 140.000 when the rate reaches 140.015.

Instead, I want to put SL at 139.980 once 140.015 is reached.

In other words, how can the first "modify" in SL be moved to -20 from the entry point?


Catalin Zachiu  
mqsato #:

Hallo

Usually, when a trailing stop starts, the SL is "modify" to move to the entry point, but is there a parameter to shift this SL value from the entry point?

For example, if USDJPY entered at 140.000 at "TrailingStop" 15, SL will move to 140.000 when the rate reaches 140.015.

Instead, I want to put SL at 139.980 once 140.015 is reached.

In other words, how can the first "modify" in SL be moved to -20 from the entry point?


Using the parameters it has now , it's not possible , it needs modifications so that negative trailing is possible , I will take a look into the code and see what I can do .
mqsato  
Catalin Zachiu #:
Using the parameters it has now , it's not possible , it needs modifications so that negative trailing is possible , I will take a look into the code and see what I can do .
thank you.
In the first "modify", I would like a parameter that allows me to adjust how far the SL is from the entry point.
Catalin Zachiu  
mqsato #:
thank you.
In the first "modify", I would like a parameter that allows me to adjust how far the SL is from the entry point.
Added option for Trailing Stop : NegativeTrailing . If set to true , the trailstop will measure the distance from the entry point to the opposite direction of the trade . If set to false , the trailstop will measure the distance from the current price to entry point . Version 4_7 .
mqsato  
Catalin Zachiu #:
Added option for Trailing Stop : NegativeTrailing . If set to true , the trailstop will measure the distance from the entry point to the opposite direction of the trade . If set to false , the trailstop will measure the distance from the current price to entry point . Version 4_7 .
Thank you for your promptness.
If you want to set it 20 points inside like the example above, would "N_TrailingStop" be "20"?
Also, if I set it to "-5", can I set it outside like 140.005?
Catalin Zachiu  
mqsato #:
Thank you for your promptness.
If you want to set it 20 points inside like the example above, would "N_TrailingStop" be "20"?
Also, if I set it to "-5", can I set it outside like 140.005?

I forgot to delete that parameter , it is not used , use the normal Trailing Stop parameter with the Negative Trailing set to true . I will update the EA without that parameter in a couple of minutes .

mqsato  
Catalin Zachiu #:

I forgot to delete that parameter , it is not used , use the normal Trailing Stop parameter with the Negative Trailing set to true . I will update the EA without that parameter in a couple of minutes .

sorry. It seems that my explanation was difficult to understand.
To explain what I want to do again, I need another parameter apart from "Trailing Stop".
The functionality I want is to adjust the position of the SL which is  "modify" after the "Trailing Stop" value is reached.

If you have a 'Buy' entry at 140.000 with a 'TrailingStop' set to 15, SL will start at 140.000 when the rate rises and reaches 140.015, but you want to be able to start at 139.980.
For example, if you enter "20" in the parameter "InitialInnerOffset", SL can be set 20 points inside from the entry point (140.000).
(Since it is triggered when it reaches 140.015, a parameter different from "TrailingStop" is required)


This is because I want to have a little interval until SL even if the trailing stop starts.
Catalin Zachiu  
mqsato #:
sorry. It seems that my explanation was difficult to understand.
To explain what I want to do again, I need another parameter apart from "Trailing Stop".
The functionality I want is to adjust the position of the SL which is  "modify" after the "Trailing Stop" value is reached.

If you have a 'Buy' entry at 140.000 with a 'TrailingStop' set to 15, SL will start at 140.000 when the rate rises and reaches 140.015, but you want to be able to start at 139.980.
For example, if you enter "20" in the parameter "InitialInnerOffset", SL can be set 20 points inside from the entry point (140.000).
(Since it is triggered when it reaches 140.015, a parameter different from "TrailingStop" is required)


This is because I want to have a little interval until SL even if the trailing stop starts.

So , when price reaches 140.015 :

1 : you want the Stop to be moved to 139.980 and then normal trailing starting from 140.000 (nothing happens between 140.980-140.000 ) or ,

2 : you want to start normal trailing from 139.980 ( Negative Trailing can be conditioned to start if price is higher with a certain amount above the buy price ) .

mqsato  
Catalin Zachiu #:

So , when price reaches 140.015 :

1 : you want the Stop to be moved to 139.980 and then normal trailing starting from 140.000 (nothing happens between 140.980-140.000 ) or ,

2 : you want to start normal trailing from 139.980 ( Negative Trailing can be conditioned to start if price is higher with a certain amount above the buy price ) .

I have to specify -20 points to get 139.980, which parameter should I put it in?
Catalin Zachiu  
mqsato #:
I have to specify -20 points to get 139.980, which parameter should I put it in?

Added new parameter , NegativeTrailAfter , if set to zero and NegativeTrailing is set to true , the negative trailing will start with a negative distance of the value of TrailigStop . If NegativeTrailAfter is set above zero  and NegativeTrailing is set to true , the negative trailing will start only after the price reached a certain profit in points (set by the NegativeTrailAfter parameter )  trailing value in points will be the TrailigStop value.

So , in your example you should set like this :

 TrailingStop         =35;

 Trail_Step           =0;

 Start_Trail_After    =0;

 NegativeTrailing     =true;

 NegativeTrailAfter   =15;

mqsato  
Catalin Zachiu #:

Added new parameter , NegativeTrailAfter , if set to zero and NegativeTrailing is set to true , the negative trailing will start with a negative distance of the value of TrailigStop . If NegativeTrailAfter is set above zero  and NegativeTrailing is set to true , the negative trailing will start only after the price reached a certain profit in points (set by the NegativeTrailAfter parameter )  trailing value in points will be the TrailigStop value.

So , in your example you should set like this :

 TrailingStop         =35;

 Trail_Step           =0;

 Start_Trail_After    =0;

 NegativeTrailing     =true;

 NegativeTrailAfter   =15;

thank you very much.

For 139.980, TrailingStop=35;
that means
For 139.970, TrailingStop=45;
Do you agree with that?

By the way, I always put "1" in "Trail_Step", is there any problem in this case?

Solo gli utenti che hanno acquistato o noleggiato il prodotto possono lasciare commenti