[STRATEGY][UL]Price Divergence Strategy v1.0

Created by Request: This is a trend trading strategy that uses Price Divergence detection signals that are confirmed by the "Murrey's Math Oscillator" (Donchanin Channel based).

Strategy Code Based on:
  • Price Divergence Detector V2 by RicardoSantos
  • UCS_Murrey's Math Oscillator by Ucsgears
Strategy Risk Management Based on:
  • Strategy Code Example by JayRogers
Information on Divergence Trading:
  • - http://www.babypips.com/school/high-school/trading-divergences

Remove from Favorite Scripts Add to Favorite Scripts
nice work sir
someone tested this strategy with BTCUSD?
Hi, this is an indicator ?
I asked JustUncle to help me put this together and he did a fabulous job! If someone has the ability to code and EA for MT4 or would like to go together and have someone create it for anyone involved please let me know. There are some additions to this strategy I think will make it even better. Please PM me if interested.
I really appreciate your work.
Sorry my English is bad.
I'm newbie at TV, but I would like to ask questions in 2 topics.

I did backtest of this strategy. (FXCM price, USDMXN 15 min chart, standard parameters).

1. topic:
In the list of trades many trading was written that OPEN and CLOSE happened at the same time (minute), but different price. I think the system opened the trade at candle's open (for example 19:00), and later but within the same candle the system closed the trade, but this happened not at 19:00, but also for example 19:08.
Why there were not wrote in the list of trades the closing time like 19:08, instead of 19:00?
Is it happened because your system (fault), or it is general problem (fault) in Tradingview?

2. topic:
In the list of trades many was opened at candle's OPEN, and was closed at candle's HIGH/LOW (which were better).
How the system knows the HIGH/LOW?
Is it repaint?
Is it useable as automated strategy in live trading?
Topic 1: OPEN and CLOSE happen on the same time frame (eg 15min) of a candle not at the same time, OPEN at the start time of the candle and CLOSE at the end time of the candle. Tradingview Strategy back testing system is a Broker simulator and is still in Beta version, so some errors may still be there.

Topic 2: The TV back tests are performed by the server at TV end, so it knows all the details of the candles used. The back testing results are performed at the close of the signal candle and numbers are interpolated from the candle shape and decides from there where/whether the close/stop is going to happen. When strategy is running in real time the calculations are performed on a tick basis so different results will be observed. I have put some code in the script to try and prevent repaint but I'm not sure it has worked. I don't recommend using auto trading too many variables need to be considered to optimize trade selection (like where are the support and resistance zones, time of day etc). Also automation features are not yet available in TV.

I hope that helps...
+1 Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out