jiehonglim

No Nonsense NNFX VP Strategy for Back Testing | jh

jiehonglim מעודכן   
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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
הערות שחרור:
Re-adjusted the logic to handle the 1 candle rule.
הערות שחרור:
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 :)
הערות שחרור:
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).
הערות שחרור:
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.
הערות שחרור:
Uploaded the corrected script.

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?