smart4trader

SMART4TRADER-Margin ZONE

smart4trader Mis à jour   
Indicator based on marginal zones (according to Mityukov Sergey). In open source.
Formula for calculating the margin:
Margin size / cost tick * minimum price change
Example:
EURUSD = 2100 $ / 6.25 $ * 0.00005 points = 0.01680 points

....

For currency pairs where USD is in the first place it is necessary to write so that the indicator is taken away from zero
Iff (ticker == "USDCAD", (0- (950/5 * 0.00005)),

//////////////////////////////////////////////////////////////////////////////////////////////////
Индикатор на основе маржинальных зон (по Митюкову Сергею). В открытом исходном коде.
Формула рассчета маржи:
размер маржи / стоимость тика * минимальное ценовое изменение
Пример:
EURUSD = 2100 $ / 6.25 $ * 0.00005 points = 0.01680 points

....

Для валютных пар где USD стоит на первом месте нужно писать так, чтобы показатель отнимался от нуля
iff (ticker=="USDCAD", (0-(950/5*0.00005)),


//////////////////////////////////////////////////////////////////////////////////////////////////
Notes de version:
update
Notes de version:
improved formula and smooth added
------------
улучшена формула и добавлено сглаживание


What new and change
////////////////////////////////////////////

MP=

iff (syminfo.ticker=="EURUSD", 2000/6.25*0.00005,
iff (syminfo.ticker=="GBPUSD", 2100/6.25*0.0001,
iff (syminfo.ticker=="AUDUSD", 1350/10*0.0001,
iff (syminfo.ticker=="USDCAD", (0-(1100/5*0.00005)),
iff (syminfo.ticker=="USDCHF", (0-(2800/5*0.00005)),
iff (syminfo.ticker=="USDJPY", (0-(2150/6.25*0.0000005)),
iff (syminfo.ticker=="USDMXN", (0-(1200/5*0.00001)),
iff (syminfo.ticker=="BTCUSD", 2064/25*5,
iff (syminfo.ticker=="SPX500", 6300/12.5*0.25,
iff (syminfo.ticker=="NAS100", 7600/5*0.25,
iff (syminfo.ticker=="US30", 5500/5*1,


na))))))))))) //внимательно следим за кол-вом скобок

/////////////////////////////////////////////////////// дата корректировки 21.08.2019
Notes de version:
USDCHF / USDCAD / USDJPY currency pairs are disabled
available CHFUSD / CADUSD / JPYUSD

--------------

валютные пары USDCHF/USDCAD/USDJPY отключены
доступны CHFUSD/ CADUSD/ JPYUSD

Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?