NexusFi: Find Your Edge


Home Menu

 





Best way to signal divergence in NT strategy (wizard or code)


Discussion in NinjaTrader

Updated
    1. trending_up 1,726 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
d122y
Dublin, Ireland
 
Posts: 2 since Jan 2022
Thanks Given: 0
Thanks Received: 1

I'm looking to create and backtest a divergence strategy, for example on RSI or CumDelta vs price.

I've found I can easily compare rising or falling RSI even with the UI wizard but it needs to compare latest bar to n bars ago - where n is hardcoded. Is there a method or indicator I could use and input to a custom strategy which would make this fuzzier? By this I mean a method that accounts for recent divergence without forcing me to time it to the bar...

I'm also looking to develop and backtest a strategy around support and resistance breakouts.

What is the best way to programatically find these levels or geometries? Ideally with a parameter signifying the strength based on how many times they've been bounced off.. I take it this is something that has been done many times in NT/c# but I couldn't find much in history..


As I'm looking to backtest and tune strategies, visual indicators for the above are less useful.

Any help much appreciated!


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
Bitcoin’s 2022 low, 2025 high and 2026 low so far arou …
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
 
  #2 (permalink)
 pajarojo 
hood river or
 
Experience: Beginner
Platform: NinjaTrader
Trading: es
Posts: 3 since Nov 2020
Thanks Given: 1
Thanks Received: 6

I use sharkindicators bloodhound so I don't know how to specifically do it with a NT strategy but the way I've looked for divergence there was to run a donchian channel on both the indicator and on price and comparing them, e.g. if price is pushing against the top of it's donchian channel but the RSI is not moving up it's donchian upper line then you have divergence.


Reply With Quote
Thanked by:




Last Updated on February 6, 2022


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts