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,510 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?
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
The Ceasefire Curve: 2pct Peace by Next Week, 60pct by S …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
Friday Update: Markets Now Pricing Fed Rate HIKES as Sta …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #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