This function helps you manage all trading events in the signal, you can turn on or turn off event(s) that you do or don’t want the EA to do by setting their value(s) as “true” (to turn on a function) or “false” (to turn off a function).
__1.Text BLOCK ALL Trading Events: Input some texts here (separated by semi-colons). You can block all events by input the text value for this parameter. If there is any text in this text value, the EA will not do any event from 2 to 10 (see the above image).
For example: If you input the value for the “Text BLOCK ALL Trading Events” parameter as “REPORT;NOTICE”, the EA will not do any event from 2 to 10 (see the above image) if there is the text “REPORT” or “NOTICE” in the signal text. Please note that the EA will capitalize all texts, therefore the texts “Report”, or “report”, or “RePort”… will trigger this event too (block all trading).
If your signal system doesn’t have any event from 2 to 10, you should set that events’ values as “false” to help the EA run faster.
The EA will check and scan the events from 1 to 10 in order, and execute an event if all conditions in its settings are met.
__Texts TRIGGER the “Open a Buy Order” event: Input some texts here (separated by semicolons). If the signal text contains any text here, the EA will open a buy order with order’s properties are gotten from signal text through next parameters (Lot size, Open price, Stop loss, Take profit…).
For example 1: If the setting value is “BUY”. It means if the signal text contains the words such as “BUY”, or “Buy”, or “buy”, or “BUy”… this will trigger this event and the EA will begin to get order’s properties in the next parameter values (lot size, open price, stop loss, take profit…) to open a new buy order. The EA will automatically capitalize all the words in signal text so that all texts such as “Buy”, or “buy”, or “BUy”… will meet the text value “BUY” in the setting.
For example 2: If the setting value is “OPEN ORDER”,”BUY”. It means if there is a text “OPEN ORDER” or a text “BUY”, or there are both of these texts “OPEN ORDER” and “BUY” in the signal text, the EA will begin to get the order’s properties in the next parameter values to open a new buy order.
__Texts BLOCK the “Open a Buy Order” event: Input some texts here (separated by semicolons). If the signal text contains any text here, the EA will not open a buy order and go to check the next event (Open a Sell Order event).
This function is mainly used to prevent the EA to open a new order when the signals come just to give information such as: to notice about an order hit stop loss or take profit, a report or a guide…).
For example 1: If the setting value is “SELL”. It means if the signal text contains the words such as “SELL”, or “Sell”, or “sell”, or “SEll”… the EA will not open a buy order and go to check the next events. Remember that the EA will capitalize all the signal texts, therefore, all the texts “SELL”, or “Sell”, or “sell”, or “SEll” will return to one text ”SELL” and meet the value ”SELL”. Therefore, if the signal text contains the word “SELL”, the EA will not open a new buy order and go to check the next events. (The EA will check an “Open a Sell Order” event then).
For example 2: If the setting value is ”SELL, CLOSE”. It means if the signal text contains a text ”SELL” or a text ”CLOSE”, or both of these texts ”SELL” and ”CLOSE” in the signal text, the EA will not open a buy order and go to check the next events.
If the signal text contains any text in the “Texts TRIGGER…” setting and doesn’t contain any text in the “Texts BLOCK…” setting, the EA will get more information in the below setting to prepare to open a new buy order.
__Lot size: Input a number location value of the lot size value if you want to get the order’s lot size value in the signal text. Input a value as ”0” if you want to omit this parameter, then the EA will check to get the lot size value from the parameters ”Default Lot size” or ”Private Lot size”.
__Open price: Input a number location value of the open price value in the signal text. Input a value as ”0” if you want to omit this parameter, then the EA will use the current market price to open a new buy order.
Remember that the open price value helps EA distinguish one order from other orders through their open price difference. If you omit this parameter, the EA will consider 2 orders having their open price difference less than the total of “Max Pips Difference” value + “Slippage” value are identical orders.
__Stop loss: Input a number location value of the stop-loss price value in the signal text. Input a value as ”0” if you want to omit this parameter, then the EA will open a new buy order having no stop-loss price value.
__Take profit (Tp1): Input a number location value of the take profit price value in the signal text. Input a value as ”0” if you want to omit this parameter, then the EA will open a new buy order having no take profit price.
Almost signal provider provides signals with one take profit value, therefore, you only need to input the number location value to get the take profit price value in this parameter.
Some signal provider provides signals with many take profit price levels so that we should input number location values for the take-profit 2, 3, 4, 5… values in the next parameters.
__Tp2:Tp3:Tp4:Tp5… (separated by colons): Input number location values for the take-profit 2, 3, 4, 5… values here, for example: “3:4:5:6”. The EA supports unlimited take-profit price levels.
By a similar meaning, you can easily understand the “Open A Sell Order Event” below:
__Texts TRIGGER the “Open a Sell Order” event: Input some texts (separated by semicolons) that trigger the “Open a Sell Order” event.
__Texts BLOCK the “Open a Sell Order” event: Input some texts (separated by semicolons) that block the “Open a Sell Order” event. The EA will omit this event and go to check the next event (Open a Buy Limit Order event).
__Lot size: Input a number location value of the sell order’s lot size.
__Open price: Input a number location value of the sell order’s open price.
__Stop loss: Input a number location value of the sell order’s stop-loss price.
__Take profit (Tp1): Input a number location value of the sell order’s take-profit price.
__Tp2:Tp3:Tp4:Tp5… (separated by colons): Input number location values of the sell orders’ take-profit 2, 3, 4, 5… prices
By the similar meaning, you can also easily understand the setting for below events:
The 4 above events all need the open price values from signal text because they are the pending orders. Therefore, you must input a number location value > 0 for the parameter “Open price (* value must be > 0)” in their setting.
__Texts TRIGGER the “Open a Buy Limit Order” event: Input some texts (separated by semicolons) that trigger the “Open a Buy Limit Order” event.
__Texts BLOCK the “Open a Buy Limit Order” event: Input some texts (separated by semicolons) that block the “Open a Buy Limit Order” event. The EA will omit this event and go to check the next event (Open a Sell Limit Order event).
__Lot size: Input a number location value of the lot size.
__Open price (* value must be > 0): Input a number location value of the open price. The value must be > 0 because a buy limit order always needs the open price.
__Stop loss: Input a number location value of the stop-loss price.
__Take profit (Tp1): Input a number location value of the take profit price.
__Tp2:Tp3:Tp4:Tp5… (separated by colons): Input number location values of take-profit 2, 3, 4, 5… prices.
__Text TRIGGER the “Open a Sell Limit Order” event: Input some texts (separated by semicolons) that trigger the “Open a Sell Limit Order” event.
__Text BLOCK the “Open a Sell Limit Order” event: Input some texts (separated by semicolons) that block the “Open a Sell Limit Order” event. The EA will omit this event and go to check the next event (Open a Buy Stop Order event).
__Lot size: Input a number location value of the lot size.
__Open price (* value must be > 0): Input a number location value of the open price. The value must be > 0 because a buy limit order always needs the open price.
__Stop loss: Input a number location value of the stop-loss price.
__Take profit (Tp1): Input a number location value of the take profit price.
__Tp2:Tp3:Tp4:Tp5… (separated by colons): Input number location values of take-profit 2, 3, 4, 5… prices.
In this event, the EA will open a buy stop order if all the below conditions are met.
__Text TRIGGER the “Open a Buy Stop Order” event: Input some texts (separated by semicolons) that trigger the “Open a Buy Stop Order” event.
__Text BLOCK THE “Open a Buy Stop Oder” event: Input some texts (separated by semicolons) that block the “Open a Buy Stop Order” event. The EA will omit this event and go to check the next event (Open a Sell Stop Order event).
__Lot size: Input a number location value of lot size.
__Open price (* value must be > 0): Input a number location value of the open price. The value must be > 0 because the buy limit order always needs the open price.
__Stop loss: Input a number location value of the stop-loss price.
__Take profit (Tp1): Input a number location value of the take profit price.
__Tp2:Tp3:Tp4:Tp5… (separated by colons): Input number location values of take-profit 2, 3, 4, 5… prices.
In this event, the EA will open a sell stop order if all the below conditions are met.
__Texts TRIGGER the “Open a Sell Stop Order” event: Input some texts (separated by semicolons) that trigger the “Open a Sell Stop Order” event.
__Texts BLOCK the “Open a Sell Stop Oder” event: Input some texts (separated by semicolons) that block the “Open a Sell Stop Order” event. The EA will omit this event and go to check the next event (Re-entry a Closed Order event).
__Lot size: Input a number location value of lot size.
__Open price (* value must be > 0): Input a number location value of the open price. The value must be > 0 because a buy limit order always needs the open price.
__Stop loss: Input a number location value of the stop-loss price.
__Take profit (Tp1): Input a number location value of the take-profit price.
__Tp2:Tp3:Tp4:Tp5… (separated by colons): Input number location values of take-profit 2, 3, 4, 5… prices.
In this event, the EA will open a new order with the same properties with a closed order when all the below conditions are met.
__Texts TRIGGER the “Re-Entry a Closed Order” event: Input some texts (separated by semicolons) that trigger the “Re-Entry a Closed Order” event.
__Texts BLOCK the “Re-Entry a Closed Order” event: Input some texts (separated by semicolons) that block the “Re-Entry a Closed Order” event. The EA will omit this event and go to check the next event (Modify an Order event).
__Lot size: Input the number location value of the closed order’s lot size.
__Open price: Input a number location value of the closed order’s open price.
__Stop loss: Input a number location value of the closed order’s stop-loss price.
__Take profit: Input a number location value of the closed order’s take-profit price.
__New Lot size: Input a number location value of the new open order’s lot size.
__New Stop loss: Input a number location value of the new open order’s stop-loss price.
__New Take profit: Input a number location value of the new open order’s take profit price.
In this event, the EA will modify the open price of a pending order, or the stop-loss/ take profit price values of an open order if all the below conditions are met.
__Texts TRIGGER the “Modify an Order” event: Input some texts (separated by semicolons) that trigger the “Modify an Order” event.
_mic_Texts BLOCK the “Modify an Order” event: Input some texts (separated by seolons) that block the “Modify an Order” event. The EA will omit this event and go to check the next event (Break-Even an Order event).
Some signals provide the values (order type, lot size, open price, stop loss, take profit) of the order to be modified. If you set a value of> 0 for any of the below parameters, which means that the parameters with a value > 0 will be checked, and the EA will only modify the orders having properties that meet the given parameter values.
For example: See the below signal.
MODIFY ORDER
Buy EURUSD
Lot: 0.03
Entry price: 1.17900
Stop loss: 1.15900
Take profit: 1.18900 (new)
This signal is to change the take profit of an order.
In this case, the EA will need to find the orders having the below values to change the order’s take-profit price value to 1.18900.
Therefore, we should input the number values for parameters such as “Lot size, Open price, and Stop-loss”. Read the below part to know how to input values.
__Lot size: Input a number location value of lot size. In the above example signal, we will input the value as “1” to get the lot size value “0.03”, because 0.03 is the first number.
__Open price: Input a number location value (must be > 0) of the open price. In the above example signal, we will input the value as “2” to get the open price value “1.17900”, because 1.17900 is the second number.
__Stop loss: Input a number location value of the stop-loss price. In the above example signal, we will input the value as “3” to get the stop-loss price value “1.15900”, because 1.15900 is the third number.
__Take profit: Input a number location value of the take profit price. In the above example signal, we will input the value as “4” to get the take profit price value “1.18900”, because 1.18900 is the fourth number.
<Set value for orders>
__New Price: Input a number location value of the new open price value.
__New Stop loss: Input a number location value of the new stop-loss price value.
__New Take profit: Input a number location value of the new take profit price value.
In this event, the EA will move stop-loss price to order’ open price (break-even) if all below conditions are met.
__Text TRIGGER the “Move Stop loss to Break-Even” event: Input some texts (separated by semicolons) that trigger the “Move Stop loss to Break-Even” event.
__Text BLOCK the “Move Stop loss to Break-Even” event: Input some texts (separated by semicolons) that block the “Move Stop loss to Break-Even” event. The EA will omit this event and go to check the next event (Close an Order event).
__Lot size: Input a number location value of the order’s lot size value
__Open price: Input a number location value of the order’s open price value.
__Stop loss: Input a number location value of the order’s stop-loss price value.
__Take profit: Input a number location value of the order’s take profit price value.
<Break-Even add pips> (pips): The extra pips you want to earn when the EA does the Break-Even. As the default setting, the EA will move the stop-loss price to the open price (Break-Even add pips = 0).
For example, if you set this value = 2, the EA will move the stop-loss price value to the open price value + 2 pips for buy orders and – 2 pips for sell orders.
In this event, the EA will close all the open orders in MT4 program, if all the below conditions are met.
__Texts TRIGGER the “Close All Orders” event: Input some texts (separated by semicolons) that trigger the “Close All Orders” event.
__Texts BLOCK the “Close All Orders” event: Input some texts (separated by semicolons) that block the “Close All Orders” event.
In this event, the EA will close a current profit order if all the below conditions are met.
__Texts TRIGGER the “Close a Profit Order” event: Input some texts (separated by semicolons) that trigger the “Close a Profit Order” event.
__Texts BLOCK the “Close a Profit Order” event: Input some texts (separated by semicolons) that block the “Close a Profit Order” event. The EA will omit this event and go to check the next event (Close All Orders event).
__Lot size: Input a number location value of the order’s lot size value.
__Open price: Input a number location value of the order’s open price value.
__Stop loss: Input a number location value of the order’s stop-loss price value.
__Take profit: Input a number location value of the order’s take profit price value.
In this event, the EA will close partially an order if all the below conditions are met.
__Texts TRIGGER the “Close Partially an Order” event: Input some texts (separated by semicolons) that trigger the “Close Partially an Order” event.
__Text BLOCK the “Close Partially an Order” event: Input some texts (separated by semicolons) that block the “Close Partially an Order” event. The EA will omit this event and go to check the next event (Close a Profit Order event).
__Lot size: Input a number location value of the order’s lot size value.
__Open price: Input a number location value of the order’s open price value.
__Stop loss: Input a number location value of the order’s stop-loss price value.
__Take profit: Input a number location value of the order’s take profit price value.
__Default Partial Close Lot (%): Input % lot value to close partially the order.
__Get Partial Close Lot (%) in signal (overwrite above lot %): Input a number location value of the % lot value in the signal. Remember that this % lot value will not include the text “%”, so that you should remove the character “%” or separate the character “%” from the % lot value to help the EA can detect the % lot value. See the below example signal.
CLOSE PARTIALLY 50%
Buy EURUSD
Lot: 0.02
Entry price: 1.17900
Stop loss: 1.15900
Take profit: 1.18900
This signal is to close 50% of the buy EURUSD order. To get the value “50”, you should remove or separate the character “%” by using replace text function (“%:” or “%: %”). Read more in the “Replace Texts…” function.
Result of removing character “%”: CLOSE PARTIALLY 50
Result of separating character “%”: CLOSE PARTIALLY 50 %
After removing or separating the text “%”, the EA can easily get the number value 50 in the signal.
In this event, the EA will close an order if all below conditions are met.
__Texts TRIGGER the “Close an Order” event: Input some texts (separated by semicolons) that trigger the “Close an Order” event.
__Texts BLOCK the “Close an Order” event: Input some texts (separated by semicolons) that block the “Close an Order” event. The EA will omit this event and go to check the next event (Close Partially an Order event).
__Lot size: Input a number location value of the order’s lot size value.
__Open price: Input a number location value of the order’s open price value.
__Stop loss: Input a number location value of the order’s stop-loss price value.
__Take profit: Input a number location value of the order’s take profit price value.