jiehonglim

No Nonsense NNFX VP Strategy for Back Testing | jh

jiehonglim Cập nhật   
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.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?