TradingView
auroagwei
Nov 9, 2019 8:24 PM

Baseline-C [ID: AC-P] 

AUD/JPYOANDA

Description

The "AC-P" version of jiehonglim's NNFX Baseline script is my personal customized version of the NNFX Baseline concept as part of the NNFX Algorithm stack/structure for 1D Trend Trading for Forex. Everget's JMA implementation is used for the baseline smoothing method, with optional ATR bands at 1.0x and 1.5x from the baseline.

  • NNFX = No Nonsense Forex
  • Baseline = Component of the NNFX Algorithm that consists of a single moving average
  • Baseline ---> Meant to be used in conjunction with ATR/C1/C2/Vol Indicator/Exit Indicator as per NNFX Algorithm setup/structure. C1 is 1st Confirmation Indicator, C2 is 2nd Confirmation Indicator.

  • JMA (Jurik Moving Average) is used for the baseline and slow baseline.
  • A slow baseline option is included, but disabled by default.

  • The faint orange/purple lines are 1.0x/1.5x ATR from the Baseline, and are what I use as potential TP/SL targets or to evaluate when to stay out of a trade (chop/missed entry/exit/other/ATR breach), depending on the trade setup (in conjunction with C1/C2/Vol Indicator/Exit Indicator)
  • This script is heavily based upon jiehonglim's NNFX Baseline script for signaling, barcoloring, and ATR.
  • SSL Channel option included but disabled by default (Erwinbeckers SSL component)
  • POC (Point of Control) from Volume Profile is included/enabled by default for both the current timeframe and 12HR timeframe

  • 03.freeman's InfoPanel Divergence Indicator was used a reference to replace the current/previous ATR information infopanel/info draw from jiehonglim's script. I'm not sure whether I like the previous way ATR info was displayed vs how I have it currently, but it's something that is completely optional:
  • Specifically: I am tuning this baseline/indicator for 1D trading as part of the NNFX system, for Forex.
  • DO NOT USE THIS INDICATOR WITHOUT PROPER TUNING/ADJUSTMENT for your timeframe and asset class.


Note about lack of alerts:

* Alerts for baseline crosses (and other crosses) have been purposefully omitted for this version upon initial publication. While getting alerts for baseline crosses under certain conditions/filtered conditions that eliminate low-importance signals and crossover whipsaw would be great, it's something I'm still looking into.

* SPECIFICALLY: There are entry, exit, take profit, and continuation signal components in relation to the Baseline to the rest of the NNFX Algorithm stack (ATR/C1/C2/Vol Indicator/Exit Indicator), including but limited to the "1 candle rule" and the "7 candle rule" as per NNFX.
* Implementing alerts that are significant that also factor in these rules while reducing alert spam/false signals would be ideal, but it's also the HTF/Daily chart - visually, entry/exit/continuation signal alignment is easy to spot when trading 1D - alerts may be redundant/a pursuit in diminishing returns (for now).

//-------------------------------------------------------------------
// Acknowledgements/Reference:
// jiehonglim, NNFX Baseline Script - Moving Averages
// tradingview.com/script/XmEVK58c-NNFX-Baseline-Script-Moving-Averages/
// Fractured, Many Moving Averages
// tradingview.com/script/xDdweXk5-Many-Moving-Averages/
// everget, Jurik Moving Average/JMA
// tradingview.com/script/nZuBWW9j-Jurik-Moving-Average/
// 03.freeman, InfoPanel Divergence Indicator
// tradingview.com/script/w1yWukv0-InfoPanel-Divergence-Indicator/
// Ggqmna Volume stops
// tradingview.com/script/rK7Dzxam-volume-stops/
// Libertus RSI Divs
// tradingview.com/script/42wcFfql-Relative-Strength-Index-Divergences-Libertus/
// ChrisMoody, CM_Price-Action-Bars-Price Patterns That Work
// tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/
// Erwinbeckers SSL Channel
// tradingview.com/script/xzIoaIJC-SSL-channel/
Comments
GRE666X
great work love how you have implemented the POC line to!
chicarica
Hi, I got the Study Error
'Pine cannot determine the referencing length of a series. Try using max_bars_back' error, please visit: tradingview.com/?solution=43000587849

Here is a response from TradingView. Can you help to take a look at your code?

For a quick fix - open the indicator's source code and add the 'max_bars_back = 5000' argument in a study() function, as is shown in the example below:

the 25th line of your code" study("Baseline-C [ID: AC-P]",overlay=true) ==> study("Baseline-C [ID: AC-P]",overlay=true, max_bars_back = 5000)

We can't edit user's scripts, you have edit the script's source code manually or contact the author of the script and ask him to update the source code.
UnknownUnicorn5757714
@chicarica, disable 12h POC
WhoaNelly
I like it, but any idea why the script doesn't work on different timeframes? I tend to use 1hr, 1d, and 1w.
Also noticed it doesn't work on some tickers/assets.
Can more ATR bands be implemented?
Kaizen1502
Thanks very much! just what I have been looking for.
Money-Tree
Hi mate, Good work. Can you please explain how you use to for your trading?
GarethPollock
love the script man.. but i am getting a study error on some of the pairs
bobbytheblob
Great script mate, just a question, does the white doted lines repaint?
blakester1111
Wow. This script has so many elements that I love using. JMA, SSL, and ATR. I was wondering if you could explain more how you use the POC in this trading system. I understand it as the volume component of your algo, but can you describe how it is calculated on this particular implementation and how you use it in this overall method? I tried reading the script but I don't know Pine and so don't fully understand it's calculations. Keep up the great work and thank you!
More