Experts: N-_Candles_v4

 

N-_Candles_v4:

The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The account type is taken into account, i.e. whether it is netting or hedging.

N-_Candles_v4 Si-9.17

Author: Vladimir Karputov

 
Automated-Trading:

N-_Candles_v4:

Author: Vladimir Karputov


Good afternoon, Vladimir. Now everything works as it should, now I was able to put on two instruments, limiting the volume on each. Thank you!
 
Hello, Vladimir. I found a bug in the fourth version - when the maximum volume is reached, the Expert Advisor not only stops opening positions, but also stops closing them.
 
venecpl:
Hello, Vladimir. I found a bug in the fourth version - when the maximum volume is reached, the Expert Advisor not only stops opening positions, but closes them as well.

But there has never been any closing - all positions have StopLoss and TakeProfit set at once, when opening. On netting, before opening a position, the Expert Advisor checks if the maximum volume is reached - if it is reached, the position will not be opened.

Please provide a more detailed description: on which symbols and when the EA was launched, as well as logs.

 
Vladimir Karputov:

All positions are set to StopLoss and TakeProfit immediately upon opening. On netting, the Expert Advisor checks if the maximum volume is reached before opening a position - if it is reached, the position will not be opened.

Please provide a more detailed description: on which symbols and when the Expert Advisor was launched, as well as logs.


SI - ruble/dollar futures on the tester from 15 June to 25 June https://www.mql5.com/ru/charts/7260846/si-9-17-m6-ao-otkritie-broker
График Si-9.17, M6, 2017.06.26 18:49 UTC, АО ''Открытие Брокер'', MetaTrader 5, Real
График Si-9.17, M6, 2017.06.26 18:49 UTC, АО ''Открытие Брокер'', MetaTrader 5, Real
  • www.mql5.com
Символ: Si-9.17. Период графика: M6. Брокер: АО ''Открытие Брокер''. Торговая платформа: MetaTrader 5. Режим торговли: Real. Дата: 2017.06.26 18:49 UTC.
 

The thing is that I don't use TakeProfit. I use StopLoss and trailing. At the beginning of the trend, the Expert Advisor gains a position - let's say 4 buy*4 lots=16 lots. The trend does not always go smoothly in one direction, there are corrections, during which it can partially close the position several times, then again gain maximum volume. Actually, this is how the second version works, the only disadvantage of which is the impossibility to install the Expert Advisor on several instruments. I think you have understood me.

 
venecpl:

The thing is that I don't use TakeProfit. I use StopLoss and trailing. At the beginning of the trend, the Expert Advisor gains a position - let's say 4 buy*4 lots=16 lots. The trend does not always go smoothly in one direction, there are corrections, during which it can partially close the position several times, then again gain maximum volume. Actually, this is how the second version works, the only disadvantage of which is the impossibility to install the Expert Advisor on several instruments. I think you have understood me.


Thanks, I found a mistake: when checking the allowable volume (on netting), I completely overlooked the direction of the current position. For example we have BUY 9.0 lots and want to open SELL 3.0 lots - in this case I add BUY + SELL => 12. This is wrong and I will soon release an update with correct accounting of volumes on netting.

 
Vladimir Karputov:

Thanks, I found a mistake: when checking the allowed volume (on netting) I completely overlooked the direction of the current position. For example, we have BUY 9.0 lot and want to open SELL 3.0 lot - in this case I add BUY + SELL => 12. This is wrong and I will soon release an update with correct accounting of volumes on netting.


Good day Vladimir, excellent work, now everything is working as it should, however, if I am not boring you, I have the following suggestion: to supplement the EA with a block from the Exp_GTakeProfit.mq5 EA, it is in the library, i.e. when the optimised profit value is reached in % or in deposit currency, the trade is closed. This will give a tangible increase in profit, especially in flat. Thank you!
 
venecpl:

Good day, Vladimir! Excellent work, now everything works as it should, however, if I am not boring you, I have the following suggestion: to supplement the EA with a block from the Exp_GTakeProfit.mq5 EA, it is in the library, that is, when the optimised profit value is reached in % or in the currency of the deposit, the deal is closed. This will give a tangible increase in profit, especially in flat. Thanks!

I have already put Exp_GTakeProfit.mq5 on a duplicate chart of my instrument, but I have to optimise it manually.
 
venecpl:

Good day, Vladimir! Excellent work, now everything works as it should, however, if I am not boring you, I have the following suggestion: to supplement the EA with a block from the Exp_GTakeProfit.mq5 EA, it is in the library, that is, when the optimised profit value is reached in % or in the currency of the deposit, the deal is closed. This will give a tangible increase in profit, especially in flat. Thank you!

No. The EA modifications are over, there will be no more updates.
 
Hello! Very good! It fits me like a glove. If you could just insert Opening hours as I operate in a market limited by hours, I only do Day Trade. We can agree on the price and payment method. See the attachment for the Schedule parameters.