無料でロボットをダウンロードする方法を見る
Telegram上で私たちを見つけてください。
私たちのファンページに参加してください
興味深いスクリプト?
それではリンクにそれを投稿してください。-
他の人にそれを評価してもらいます
記事を気に入りましたか?MetaTrader 5ターミナルの中でそれを試してみてください。
インディケータ

SymbolSynthesizer_Chart - MetaTrader 4のためのインディケータ

ビュー:
15071
評価:
(18)
パブリッシュ済み:
2016.01.08 13:58
アップデート済み:
2016.11.22 07:32
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動

Same concept with Triangle Hedge (Symbol Synthesizer for MT5), but for chart display in MetaTrader 4.

It synthesizes any symbol if you have the source symbols in Market Watch window and then makes a real time offline chart like Period_Converter_Opt.mq4 (https://www.mql5.com/en/code/7673).

So, basic use is same with Period_Converter_Opt since this is based on it.

Differences in Parameter settings are:

  • extern int     spread      = 0;

Spread in points for sSym01 (Attached chart symbol). 0 means current.

Since MetaTrader 4 history file doesn't have past spread data, we need them to determine Ask price for the case dividing to calculate the virtual prices.

  • extern int     vDigits     = 5;

The digits for synthesized symbol. This is replaced OmitDigit (from Period_Converter_Opt.mq4).

  • extern string vSymbol   ="EURUSD_v";

The one you want to generate. Any name is OK but less than 11 characters.

  • string sSym01    ="EURGBP";  // (Not external variable)

Source symbol#1. 

It is automatically set from the attached chart Symbol.

You should attach this tool on this symbol chart to avoid getting "Insufficient Data Error" when sCal is "D" and if the history file of sSym01 is not sufficient.

  • extern string sSym02    ="GBPUSD";

Source symbol#2.

It has to be and exact same name on Market Watch include prefix and/or suffix.

  • extern string sCal    ="M";

The calculation to synthesize. "M" means "Multiply", or put "D" means "Divide".

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

Ex: vSymbol="EURUSD"   sSym01="EURGBP"   sSym02="GBPUSD"

      vSymbol="EURJPY"   sSym01="EURGBP"   sSym02="GBPJPY"

      vSymbol="EURJPY"   sSym01="EURUSD"   sSym02="USDJPY"

      vSymbol="BTCJPY"   sSym01="BTCUSD"   sSym02="USDJPY"

      Note: sSym01 and sSym02 can be switched with each other since we multiply them. Major pair should be sSym01 for more often ticks.

If the virtual price of vSymbol can be calculated by sSym02 divided by sSym01, put "D" or any other string but "M".

Ex: vSymbol="USDJPY"   sSym01="EURUSD"   sSym02="EURJPY"

      vSymbol="ZARJPY"   sSym01="USDZAR"   sSym02="USDJPY"

     vSymbol="EURUSD"   sSym01="USDJPY"   sSym02="EURJPY"

     Note: sSym01 and sSym02 can NOT be switched with each other since we divide.

Those under-lined currencies are "media" currencies.



synthesized-zarjpy-chart.png

iPivot iPivot

Draw your preferred pivot formulas: Standard, Fibonacci, Camarilla, Woody’s and DeMark with 4 Support and Resistance lines.

iClean iClean

Close, Delete or Clean values from all orders by your choice.

BSpread BSpread

This indicator helps you display spread on a chart.

Hidden TP and SL Hidden TP and SL

Easy EA for closing positions with profit or loss. All positions of chart's symbol are counted separately.