jiehonglim

No Nonsense NNFX VP Strategy for Back Testing | jh

jiehonglim Atualizado   
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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Notas de Lançamento:
Re-adjusted the logic to handle the 1 candle rule.
Notas de Lançamento:
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 :)
Notas de Lançamento:
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).
Notas de Lançamento:
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.
Notas de Lançamento:
Uploaded the corrected script.

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?