BRiCK MT4 EA user manual

12 June 2018, 10:43
Yutaka Yokouchi
0
22

BRiCK MT4 EA user manual

[Reference]
Available technical indicator: https://www.mql5.com/en/blogs/post/718806


This section explains the specification of BRiCK.

1.1. Analysis target

  • Symbol
    Analyze against the current Symbol of the chart with BRiCK inserted. Analyze with EURUSD when inserted in the EURUSD chart, USD JPY if inserted in the USDJPY.
  • Timeframe
    Analyze against the current Timeframe of the chart with BRiCK inserted. When Timeframe is changed, the signal is initialized.
  • Basebar
    Analyze based on the previous bar in the current bar. Since it is not analysis in the current bar, the signal does not disappear with price change.
  • Technical Indicator
    All technical indicators inserted on the chart are subject to analysis.
    Please see here for the technical indicators used by BRiCK.

1.2. Signal type
 : Individual signal BUY.
: Individual signal SELL.

  • Integrate signal
    This is the signal output by BRiCK inserted on the chart, applicable to the order signal.
    After appearance it is not deleted except signal initialization.
  •    : Integrate signal BUY. When individual signal BUY appears for all the inserted technical indicators.

       : Integrate signal SELL. When individual signal SELL appears for all the inserted technical indicators.

1.3. Specification of order

  • Order entry
    Trigger of order entry is the appeared of integrated signal. All entry orders are executed immediately at market price. Also, if there is a position acquired by BRiCK, the behavior may change.

    [When integrated signal BUY appeared]
    Position statusAction
     No position Entry at BUY position
     BUY position exist Do nothing
     SELL position exist Exit SELL position and entry at BUY position
    [When integrated signal SELL appeared]
    Position statusAction
     No position Entry at SELL position
     BUY position exist Exit BUY position and entry at SELL position
     SELL position exist Do nothing

  • Order exit
    There are two types of triggers for exit. The first is due to reverse signal appearance, and the second is due to  Limit & Stop level set by the Expert parameter.

[Reverse signal]
If you have a BUY position, treat the integrate SELL signal appeared as an exit.
If you have a SELL position, treat the integrate BUY signal appeared as an exit.

[Limit & Stop level]
After position take with Market Execution, execute Modify Order to Profit level and Loss level based on the acquisition price. If 0 is specified for the parameter of Profit or Stop, or Modify level is too near to the current price, Modify Order is not executed and exit with reverse signal.



This section explains the procedure for executing Expert Advisor in real time. I divided it into 3 steps, but in fact it ends only with 2 steps.

[Step1] Insert indicators
[Step2] Insert expert

[Step3] Wait for signal appearance


2.1. [Step1] Insert indicators

Open the Navigator (Ctrl + N) and select the technical indicator you want to analyze, insert it in the chart and enter the parameters. Any number of indicators in the red frame can be used.



Please see here for parameters of customizable indicator.
After inserting the indicator and input the parameters, if you save the chart as a template, setting will be easier from next time.

2.2. [Step2] Insert expert

Insert Expert Advisor on chart and setting parameter. For details of the parameters, please see 3.Expert parameter.



2.3. [Step3] Wait for signal appearance

Wait until the integrate signal appears. There are two ways to judge a signal.

  • Judgment by arrow object
    When a signal appears on all the indicators inserted on the chart, the arrow object of integrate signal is output one before the current bar.

  • Judgment by comment
    The information of the current individual signal and the integrated signal is displayed as a comment in the upper left of the chart. The characters on the first and second lines are how many SELL and BUY individual signals are appearing and are represented by "Number of individual signals that are currently appearing / Number of inserted technical indicators". The characters in the fourth line are what kind of integrate signal is currently appearing.



This section explains the parameters of the expert advisor.

This is a parameter related to signal output.

VariableData typeRange valueDescription 
 PermitBars Unsigned integer 1 ~ 3999 Effective range of Individual signal.
 Sound Enumeration ON, OFF Play sound when integrate signal appear.

  • What is PermitBars?
    The parameters of BRiCK include "PermitBars" that takes into consideration the signal appearance delay of each technical indicators. As an example of the image below, if PermitBars is 1, only SELL individual signals will appear, but if you set to 3, individual signals of BUY will appear in addition to the individual signals of SELL. Increasing PermitBars is expected to increase the frequency of integrated signal appearance, but too large will reduce the authenticity of the signal.
            


3.2. Order

This is an order related parameter. After signal appearance, the position is opened based on the following values. 

VariableData typeRange valueDescription
 Lot Double 0 ~ 99.99 Input the order size that can be ordered with surplus funds. If input 0, Order will not be executed.
 Slippage Unsigned integer 0 ~ 3999 Order deviation. Units are pips.
 Profit Unsigned integer 0 ~ 3999 Set a level for take profit based on the acquisition price. If input 0, Modify Order will not be executed for take profit.
 Loss Unsigned integer 0 ~ 3999 Set a level for stop loss based on the acquisition price. If input 0, Modify Order will not be executed for stop loss.


3.3. Tester

It is a parameter to use when verifying with the strategy tester, it is not used when executing in real time.
Please see here for the verification by the tester.

Share it with friends: