Discussion of article "Trading Signal Generator Based on a Custom Indicator"

 

New article Trading Signal Generator Based on a Custom Indicator has been published:

I am sure there must be an indicator not included in the standard delivery that you have long wanted to use. And that is the indicator based on which you want to build a trading signal module. I will use the MACD indicator from the standard delivery as such an indicator. The location of the indicator is as follows: ...MQL5\Indicators\Examples\MACD.mq5

Each indicator can describe one or more market models. A market model is a certain combination of the indicator value and the price value. The models available for the MACD indicator are reversal, crossover of the main and the signal line, crossover of the zero level, divergence and double divergence.

Figure 7. Placing a pending Buy Stop order

Author: Karputov Vladimir

 

Thank you. The article is interesting. I would like to see this generator with theincluded file (*.mqh) in its entirety with Expert Advisor code to test it on a chart. If it is possible? I would be very grateful.

 

At the end of the article there is an attached file mysignal.mqh (9.31 KB) - this is the generator of trading signals of the custom indicator. Also in the article it is written where this file should be placed. After you open this file in MetaEditore, press the F7 key in MetaEditire - the trading signals generator will become available for the MQL5 MASTER.

After that you will have to start creating your Expert Advisor and add the signal of the trading signals generator to it.

 
barabashkakvn:

At the end of the article there is an attached file mysignal.mqh (9.31 KB) - this is the generator of trading signals of the custom indicator. Also in the article it is written where this file should be placed. After you open this file in MetaEditore, press the F7 key in MetaEditire - the trading signals generator will become available for the MQL5 MASTER.

After that you will only need to start creating your EA and add the signal of the trading signals generator to it.

Thank you. I have carefully read the article. But I would like to see the Expert Advisor itself, its code, even if it does not trade, but only gives signals.
 
piv_:
Thank you. I have carefully read the article. But I would like to see the Expert Advisor itself, its code, even if it does not trade, but only gives signals.
You should create an Expert Advisor in MQL5 MASTER by yourself. When creating an Expert Advisor, specify the trading signals generator from the article as a signal.
After the Expert Advisor is created by MQL5 MASTER, find the Signal_PriceLevel parameter in the Expert Advisor and set the value to minus fifty. This way the Expert Advisor will be able to open stopp orders.
 
Thanks for the article! However, when implementing a test Expert Advisor, a problem arose: is it possible to correctly (without rewriting the library) transfer the opening level of a pending order from a custom indicator? ShortCondition LongCondition methods deal with voting. I have not found any other methods in the CExpertSignal class that pass information about the state of the indicator. The trading system assumes that sometimes there can be 2 pending orders, one to buy and one to sell?
Переход на новые рельсы: пользовательские индикаторы в MQL5
Переход на новые рельсы: пользовательские индикаторы в MQL5
  • 2009.11.23
  • Андрей
  • www.mql5.com
Я не буду перечислять все новые возможности и особенности нового терминала и языка. Их действительно много, и некоторые новинки вполне достойны освещения в отдельной статье. Вы не увидите здесь кода, написанного по принципам объектно-ориентированного программирования — это слишком серьезная тема для того, чтобы просто быть упомянутой в контексте как дополнительная вкусность для кодописателей. В этой статье остановимся подробней на индикаторах, их строении, отображении, видах, а также особенностях их написания по сравнению с MQL4.
 
tyn:
... is it possible to correctly (without rewriting the library) transfer the opening level of a pending order from a custom indicator? ...?
As I understand, you want to open pending orders not strictly at a distance of +-50 points, but depending on the situation?
 
tyn:
... The trading system assumes that sometimes there can be 2 pending orders, one to buy and one to sell?
No. The system does not assume the existence of two pending orders.
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров
Документация по MQL5: Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров
  • www.mql5.com
Стандартные константы, перечисления и структуры / Торговые константы / Свойства ордеров - Документация по MQL5
 
barabashkakvn:
As I understand, you want to open pending orders not strictly at a distance of +-50 pips, but depending on the situation?
Yes, exactly like that
 
barabashkakvn:
No. The system does not assume the existence of two pending orders.
This condition can be circumvented... by reopening pending orders as they approach the opening price.
 
tyn:
barabashkakvn:
As I understand, you want to open pending orders not strictly at a distance of +-50 pips, but depending on the situation?
Yes exactly like that
It can be done. How to do it will be described in a new article.