Re: MT4 Trading Utilities, Chart Tools & Add-ons

211
A simple ADR utility showing:
average daily range in pips (over the number of days you nominate)
today's move in pips
and the % of today's move relative to the average

As a general rule, do not trade into the ADR's extreme.
These users thanked the author bilbao for the post:
Ricstar_8
what we want: 1+1+1+1+1+1+1+1+1=9 <3
what market delivers: 1+2+8+7-4+0-5+8-4-5+1=9 :problem:


Re: MT4 Trading Utilities, Chart Tools & Add-ons

212
If you like a bit of space above and below your price bars and you tire of dragging the vertical axis around
then automatically scale charts with this handy utility.
These users thanked the author bilbao for the post (total 4):
ionone, Skyold, W35, In2Blues
what we want: 1+1+1+1+1+1+1+1+1=9 <3
what market delivers: 1+2+8+7-4+0-5+8-4-5+1=9 :problem:

Re: MT4 Trading Utilities, Chart Tools & Add-ons

213
bilbao wrote: Fri Mar 27, 2020 7:47 pm EMA Trailing Stop
how thsi trailing stop ea works is by using a trailing stop based on exponential moving average.
so you set the “EMA Period” to 13 means that it will use the 13 EMA to trail stop your trades.
If you set “TrailAllSymbols” to “true”, it will trail all the currency pairs, not just the pair it is attached to on the chart.
“CloseWhenProfit”…you set this parameter to start trailing the sum of all profits gained from all open trades so when it reaches a value you’ve set, all the trades will be closed.
If you set “TrailOnlyInProfit” to “true” then it will activate a trailing stop on only those trades that are in profit. If “false” it will trail all the trades.
“EMAShift” simple means the bar of the EMA that is used as a trailing stop. If set to zero (0), it will do it on ever ema bar tick.
With “magicNumber.from” and “magicNumbe.to you” controls which numbers should it trail. Magic number 0 are usually for manual trades which means if you decide to put 0, this ea will monitor and trail manual trades along with chosen magic numbers.
Error when compiled. Does this one same with mladen EMA trailing 1.1?

Re: MT4 Trading Utilities, Chart Tools & Add-ons

215
bilbao wrote: Mon May 29, 2017 12:05 am indicator is able to perform a calculation on two currency pairs at the same time. The most common setup is EURUSD vs USDCHF. By comparing the values computed on the two pairs, displays a “cloud” which lets you trade the two pairs in opposite directions. A line also shows you the width of the cloud (the spread) so that it’ll be easier to understand the strength of the current price movement.

The interface changes in real time (tick by tick) showing in detail what’s happening on the two pairs. Here is the exact meaning of each row from top to bottom:


– the two currency pairs involved in the calculation (e.g. “EURUSD – USDCHF”)
– the period used for calculation and the relative time span (e.g. “120 bars (5 days 0 hours”) when it has period 120 and is applied to a H1 chart)
– the correlation between the two pairs over the last “period” bars (e.g. “Period correlation: -99%”)
– the Average Daily Range of the first pair (e.g. “EURUSD ADR: 122.00 pips”)
– the lot size selected by the user for the first pair (e.g. “EURUSD Lot Size: 1.00 lots”)
– the entry level of the last trade signalled on the first pair (e.g. “EURUSD Entry Level @ 1.31639″)
– the floating Profit/Loss in pips of the last trade that was signalled on the first pair (e.g. “EURUSD Gain: 157.70 pips”)
– the Average Daily Range of the second pair (e.g. “USDCHF ADR: 82.00 pips”)
– the lot size suggested for the second pair, taking into account the ratio of ADRs between the two pairs (e.g. “USDCHF Lot Size: 1.49 lots”)
– the entry level of the last trade signalled on the second pair (e.g. “USDCHF Entry Level @ 0.91733″)
– the floating Profit/Loss in pips of the last trade that was signalled on the second pair (e.g. “USDCHF Gain: 108.10 pips”)
– the floating Profit/Loss in pips of the last 2 trades that were signalled on both pairs, taking into account the lot size of each pair (e.g. “Total Normalized Pips: 318.53 pips”)

The interface also gives additional information through its color. The background color of the interface is directly related to the spread between the main curves of the two currency pairs being processed. It goes from green (positive spread) to red (negative spread), passing through black (spread around 0). The brighter the color, the wider the spread, the more buying pressure (in case of green color) or selling pressure (in case of red color). Of course when the last cloud displayed on chart is red the textual interface will be red as well. When the last cloud displayed on chart is green the textual interface will be green as well.

On the indicator’s sub window two white curves represent the value computed for each pair. These two main curves look mirror-like most of the time, but it is not always like that. The space within the curves forms a “cloud” which can be green or red. A green cloud stresses the opportunity of being Long in the market, a red cloud the opportunity of being Short. The cloud’s witdh (the difference between the main curves’ values) is called “spread” and is represented by a solid yellow line. it can also display a moving average computed over the spread: it’s a dashed yellow line like in the picture below:



You can also see that the last value of the main curves and the spread is displayed with three labels on chart.

The last (important) element is the dotted vertical lines that appear when the two main curves make a new fresh cross. When you see a new dotted green vertical line then beware of a potential Long trade (a new green cloud is shaping up right now). When you see a new dotted red vertical line then beware of a potential Short trade (a new red cloud is shaping up right now).

Example of Use – Read Carefully
I’ll describe how to use with the most typical setup: EURUSD vs USDCHF. First of all open two charts on your MT4 platform: H1 chart of EURUSD and a H1 chart of USDCHF.

Please keep in mind that default settings were tested with hourly charts, so you should learn how to use on H1 charts first.

On the EURUSD chart you must put: instrument_1 = “EURUSD” and instrument_2 = “USDCHF”.
On the USDCHF chart you must put: instrument_1 = “USDCHF” and instrument_2 = “EURUSD”.

When you see a new green cloud on the EURUSD chart you will also see a new red cloud that is shaping up in the USDCHF chart: you can consider taking a long trade on EURUSD and a short trade on USDCHF at this point.
On the contrary when you see a new red cloud on the EURUSD chart you will also see a new green cloud that is shaping up in the USDCHF chart: you can consider taking a short trade on EURUSD and a long trade on USDCHF at this point.

Of course you could also have only 1 chart instead of two specular charts opened at the same time:
you can use a single chart to enter long one pair and short the other pair, or vice versa, since the two trades are always triggered at the exact same time, or..
or you can elect to trade only one of the two pairs, so you definitely don’t need to look also at the chart of the other pair
The most common inversely correlated are:

EURUSD vs USDCHF
AUDUSD vs USDCHF
GBPUSD vs USDCHF
EURUSD vs USDCAD
AUDUSD vs USDCAD
NZDUSD vs USDCAD
The most common directly correlated :
EURUSD vs EURGBP
GBPUSD vs EURGBP
GBPCHF vs USDCHF


email ()
this field must contain the email address used for the transaction for buying the indicator, otherwise it will not be able to authenticate and it will display an “Authorization failed” message on chart.
period (120)
It’s the number of bars looks in the past in order to calculate its value. The default value 120 corresponds to 1 forex trading week when it is applied on hourly charts.
instrument_1 (“EURUSD”)
instrument_2 (“USDCHF”)
You should put instrument_1 equal to the currency pair of the chart is applied on, while instrument_2 is another pair which is directly or inversely correlated with the first pair.
If your broker uses non standard symbols (e.g. “EURUSDm” instead of “EURUSD”) then make sure you write them properly in the setting (for example: instrument1=”EURUSDm”, and instrument2 =”USDCHFm”).
smoothing (2)
It is the number of bars used to average the two indicator’s main values. If 1 no averaging is made. If 2, the scores of the last 2 bars are used etc.
first_pair_lot (1)
It is the number of lots that you would like to trade on the first pair. Given this value, the textual interface displays the suggested lotsize to be used on the second pair of your duetto. The calculation is based on the ratio of the respective Average Daily Ranges.
show_spread (true)
By setting the option to true, you enable the showing/calculation of the solid yellow representing the cloud’s width (or spread). If you set it to false you disable it.
show_spread_ma (false)
By setting the option to true, you enable the showing/calculation of the dashed yellow representing a moving average over the spread. If you set it to false you disable it. Please note that show_spread must be true if you want to enable show_spread_ma.
MA_period (24)
It is the period of the moving average (MA) computed over the spread. Please note that this parameter is taken into account only if show_spread and show_spread_ma are both set to true.
MA_mode(2)
It is the calculation method for the moving average (MA) computed over the spread. You have 4 options: Simple moving average (0), Exponential moving average (1), Smoothed moving average (2), and Linear weighted moving average (3). Please note that this parameter is taken into account only if show_spread and show_spread_ma are both set to true.
show_text_interface (true)
By setting the option to true, you enable the textual interface in the upper left corner of the main window. If you set it to false you disable it.
show_crosses (false)
By setting the option to true, you enable the showing/calculation of the vertical dotted lines that are drawn at the cross of the two main curves. If you set it to false you disable them.
crosses_threshold (0.0)
When crosses_threshold=0 (the default values) shows the vertical lines corresponding to crosses of the spread line with the zero line. When crosses_threshold>0 the spread must be greater than the given threshold value for to display the vertical lines of a cross. In other words the “crosses_threshold” lets you filter some frequent false signals when the spread line crosses back and forth the zero line.
show_labels (true)
By setting the option to true, you enable the 3 labels in the indicator’s subwindow. Two labels display the value of the main curves, while the third label displays their spread. If you set it to false you disable them.
text_size (10)
It lets you set the size used for the labels in the indicator’s subwindow.
text_font (“Segoe UI”)
It lets you set the font used for the labels in the indicator’s subwindow.
Hi my friend couldn't
find the link? Pls post many thanks


Re: MT4 Trading Utilities, Chart Tools & Add-ons

217
bilbao wrote: Fri Mar 27, 2020 7:50 pm EA Trade protector

this trailing stop is a bit different because it is based on a concept called proportional trailing stop.
what it does is setup a % ratio of pips to be protected by a trailing stop depending on how well the trend moves.
When you set the % ration, the expert advisor will move the stop loss to “x %” of the distance between the current market price and the price where the order was activated/executed.
Here’s the formula for Proportional Stop Loss=|Current Price-OrderOpen Price|x Ratio-Spread.
Parameters Explained:

logging=1 means that if you want logs in the expert\files directory, 0 if you do not want that.
nTrailingStop=35 means that 35 pips for initial trailing stop until the trade reaches:profit=nPropSLThreshold.


nPropSLThreshold=12 means that 12 pips after reaching this the profit proportional trailing stop will be activated.
dPropSLThreshold=0.35 This is the multiplying factor and calculated by :(PropSL=Profit*dPropSLRatio-Spread)
nUseEscape=0. 1 or 0 escape misplaced trades as soon as they reach some minimal profit.
nEscapeLevel=0. This is the loss size in pips you want your trade to be terminated as soon as it will reach the next high.
nEscapeTP=35. This is the take profit level in pips. If you set this to a negative number then it will be a trading loss that you have determined and are willing to risk.
Hey Bilbao, is there a script (not an EA) that will set your trades on current currency pair to breakeven? I cant find one.


Who is online

Users browsing this forum: Amazon [Bot], ChatGPT [Bot], IBM oBot [Bot], Ricstar_8, Sogou [Bot], Yandex [Bot] and 70 guests