jiehonglim

No Nonsense NNFX VP Strategy for Back Testing | jh

My first script, be kind :)

Most of the rules are implemented:
- Money management
- ATR, Baseline, Confirmation, Volume , Exit

More details below.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//Made to be as modular as possible, so we can swap the indicators in and out.
//Originated from causecelebre
//Tried to put in as much VP rules as possible

///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry within 1 candles of baseline + 1 x confirmation + volume
//// - Entry only if baseline is < 1 x ATR
// - Exit conditions
//// - Exit on exit indicator or when baseline or confirmation flip

///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
// - Second entry L2 or S2 with standard SL and exit upon the exit conditions

///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Baseline = HMA 20
// - Confirmtion = SSL 10
// - Volume = TDFI 4
// - Exit = RVI 4

///////////////////////////////////////////////////
//Credits
// Strategy causecelebre
// TDFI causecelebre
// SSL Channel ErwinBeckers
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Phát hành các Ghi chú: Re-adjusted the logic to handle the 1 candle rule.
Phát hành các Ghi chú: Added 2nd confirmation, Absolute Strength MTR Indicator.

Included indicators are just possible examples.

Obviously more testing and patience needed to get the right combination of indicators and settings :)
Phát hành các Ghi chú: Changed to 0.1 lots per trade, this 400 USD or 2% of equity is not working out for me.

strategy.entry to strategy.order. Apparently strategy.entry is going to double the trade size as it takes it the other way.

Trade signal based on confirmation 2 (ASH).
Phát hành các Ghi chú: Updated to version 4.
Added a label at the end explaining the various shapes plotted.
Most important change, ATR is correctly assigned upon confirmation signal.
Phát hành các Ghi chú: Uploaded the corrected script.
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
Wow! Found this while searching for indicators. I am just at the very beginning on my journey with VP. Very inspiring!
Phản hồi
Good job! I found your contribution while searching for info on the strategy.order command, but my intention was also to implement my NNFX interpretation. Great minds think alike!
Phản hồi
gee_ell gee_ell
Hey also just a quick note... is your TDFI a repainter?
Phản hồi
@gee_ell, hi nope it’s now. I tried that on one minute charts.
Phản hồi
gee_ell jiehonglim
@jiehonglim I started from the inspiration you gave me and thought about how we could modularize even more by using other indicators as inputs for the NNFX strategy. This way, one could very quickly test different functions for baseline, volume, etc. instead of copying and pasting indicator code every time and bloating code unnecessarily.

Turns out I had to get in touch with support... they told me you can't use indicators as inputs for a strategy, plain and simple. However, you can use ONE indicator as input for a study on the pro plan, and more with more expensive plans. That's not helpful.So let's keep working on that strategy!
Phản hồi
@gee_ell, I only recently discovered indicator on indicator, so it wasn't on my mind when I was coding this but the pro plan only allows one, so I guess we just have to make our code as modular as possible, so it's easy to swap indicator in and out.

You will need to modify other indicator code, like v2 to v4 and assign the right values.
Phản hồi
Good work! thanks share
when price reach the long_tp or short_tp (for L1 or S1), stop loss point should move to enter price (for L2 or S2)
how it can be
+1 Phản hồi
@the_5786, Ah, the part of moving SL to breakeven is something on my todo list :)
Phản hồi
Beautiful work and congratulations as well with your first script...

I hope you are accepted into the private Discord group ... I imagine you have requested access .. after this interesting work ..

A couple of ideas, VP never said that the second confirmation indicator has to be a different to the first.

Why you don't use the same at the first one, but for the confirmation you can use another major temporality (x3 for example). It will reduce risk and make everything easier.

I would like to be part of the Discord private group as well, bu is not easy, specially with the Backtest what they ask.

Thank you so much for sharing it.
Phản hồi
@jmcc76, have yet to join that private group. More testing to be done before I'm comfortable with my algo. :)
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Giá Quy tắc Áp dụng Người điều hành Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Nhận trợ giúp Yêu cầu tính năng Blog & Tin tức Câu hỏi thường gặp Wiki Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Nhận trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất