Discussion of article "Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies"

 

New article Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies is published:

This article is intended for novice/beginner users who want to approach some kind of customization with functionality and without writing an EA from scratch.

In MetaTrader 5 we have a great possibility of expert trading with a minimal or zero knowledge (and skills) about programming language and coding of sources, thanks to the one MetaEditor feature: MQL5 Wizard. The Wizard (we are not going to explain its detailed working here in this article) is intended to generate finished programs (.mq5 and .ex5 files), algorithms and code. It benefits from using MQL5 Standard Library and its Trading Strategy Classes (which are great resources).

Exploring Trading Strategy Classes of the Standard Library: Customizing Strategies

There are lots of trading strategy classes present in the Standard Library actually, some of them are already very good and come from more-or-less famous studies about financial markets and profitability analysis. There is at least one strategy for each indicator from the standard set of indicators that come with MetaTrader 5.

Author: Harvester

 
I recommend you to read also this interview.
Interview with Victor Kirillin: Benefit from the MQL5 Wizard - Automated Trading Championship 2011
  • championship.mql5.com
Victor Kirillin is developing the Standard Library and is directly related to the MQL5 Wizard that is built to the MQL5 development environment MetaEditor 5. In this interview we discuss the features of the MQL5 Wizard in connection with the forthcoming Championship.
 
thanks for getting in detail on threshold levels. I wish that MQ would get into similar detail with their own documentation :)
 

Articles, usually can be seen also as an "expanding" of documentation.

All the essential that you need to know about such trading and EA style with Wizard mechanism, is in this article and in the interview linked above,

if one seeks more, is just the trader/programmer behalf of his/her 'trading-mind' phantasy and skills.

 

Dear Harvester,

 I am not very sure about one thing in Section "Implementing Patterns". Hopefully you can confirm it here.

denote: strength=sum(m_pattern_X*weight of the pattern)/n.

in Case A: the calculated strength is 67, in Case B the calculated strength is -3. In Case C:strength=3. in Case D: strength=-67.

1. if strength> 40 ,but strength < 60. then a long position will be open, but donot close short positions.

2. if strength >60, open long position.and close short position.

3. if strength< -40 and strength>-60,a short position will be open , but long positions will not be closed.

4. if strength< -60 : open short position and close long position.

5. if strength >-40 and strength<40, no action will be taken.
 
IF Signal_ThresholdClose  >= Signal_ThresholdOpen
We receive a signal to sell, so the long position will be  reversed if:
Open_short > Signal_ThresholdClose OR Open_short > Signal_ThresholdOpen
We receive a signal to sell, so the long position will be  closed if:
Open_short > Signal_ThresholdClose OR Open_short < Signal_ThresholdOpen