Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

SymbolSynthesizer_Chart - MetaTrader 4 Script - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

SymbolSynthesizer_Chart - indicator for MetaTrader 4

The same concept as Triangle Hedges (symbolic synthesizer for MT5), but used for chart display in MetaTrader 4.

If you have a source symbol in the market quote window, it will synthesize any symbol and then make a real-time offline chart like period_Converter_Opt.mq4 ( https://www.mql5.com/en/code/7673 ).

Therefore, the basic usage is the same as period_converter_opt since it is based on it.

The differences in parameter settings are:

Spread on sSym01 (with chart symbols). 0 means current.

Since MetaTrader 4 history files do not have past spread data, we need them to determine the ask price for case divisions to calculate virtual prices.

Numbers composed of symbols. It is replaced by OmitDigit (from period_Converter_Opt.mq4).

The one you want to generate. Any name is acceptable, but it must be less than 11 characters.

Source symbol #1.

It is automatically set from the attached chart symbols.

You should attach this tool to this symbol chart to avoid "insufficient data errors" when sCal is "D" and there is insufficient history file for sSym01.

Source symbol #2.

It must be exactly the same as the name on MarketWatch, including prefixes and/or suffixes.

Computational synthesis. "M" means "multiply", or "D" means "division".

If the virtual price of vSymbol can be calculated by multiplying sSym01 by sSym02, enter "M".

For example: vSymbol="EURUSD" sSym01="EUR GBP " sSym02=" GBP USD"

vSymbol="EUR JPY" sSym01="EUR GBP " sSym02=" GBP JPY"

vSymbol="EUR JPY" sSym01="EUR USD " sSym02=" USD JPY"

vSymbol="BTCJPY" sSym01="BTC USD " sSym02=" USD JPY"

Note: sSym01 and sSym02 are interchangeable because we are multiplying them. Major currency pairs should be sSym01 to get more frequent quotes.

If the virtual price of vSymbol can be calculated by dividing sSym02 by sSym01, enter "D" or any other string other than "M".

For example: vSymbol="USDJPY" sSym01=" Euro USD" sSym02=" Euro JPY"

vSymbol="ZARJPY" sSym01=" USD South African Rand" sSym02=" USD JPY"

vSymbol="Euro USD" sSym01="US Dollar" JPY " sSym02="EUR JPY "

Note: sSym01 and sSym02 cannot switch to each other because we are separated.

Those underlined currencies are "media" currencies.

SymbolSynthesizer_Chart - indicator for MetaTrader 4


Attachment download

📎 symbolsynthesizer_chart.mq4 (25.15 KB)

Source: MQL5 #14596

Verification code Refresh