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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
릴리즈 노트: 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.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
Tip Jar :)

BTC: 37eLmtMHCVR3XZbZUM3PkxchtDYQ9wxXcb
BTH: qpj3rh3j55l0zyx6h5hg8xq2yj96rgq2kczvts3cnq
ETH: 0x9591c33a31b34E7006F299224C421822d096483D
ETC: 0x2Cb84658AaFc3CFe264885894A017339baFa77E3
LTC: M8hoJPkLLzcGG3U3bHpiCF4N11zt8msfsy

코멘트

GREAT WORK! How do you change emas and indicators or this just for what you coded?
+5 응답
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
+2 응답
jiehonglim the_5786
@the_5786, Ah, the part of moving SL to breakeven is something on my todo list :)
응답
@jiehonglim, what the rule to move our stop loss to break even?
응답
Could some one tel me how to add this to my mt4. I keep getting about 25 errors and I don't know how to fix them. Thanks
+1 응답
TraderBenjamin Bambam13fox
@Bambam13fox, shout out i started my career as a 13F Fort Drumm New York and retired 18D Torri Station Okinawa Japan. snap back to reality. The codes used here Pine (i believe i just woke up and TBR keep me hazey until a coffee) and you want to convert it to MT4 MT5
응답
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!
+1 응답
gee_ell gee_ell
Hey also just a quick note... is your TDFI a repainter?
응답
jiehonglim gee_ell
@gee_ell, hi nope it’s now. I tried that on one minute charts.
응답
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!
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃