NexusFi: Find Your Edge


Home Menu

 



Categories Help    






NinjaTrader 7 Indicators
Indicators in this section are compatible with NinjaTrader 7


Entries
Wicks 5 *
It's common for people to look at how large the upper or lower 'wicks' or 'shadows' are in comparison to the range of a bar. In writing strategies that do so, I got tired of re-re-coding calculations to look for especially large ones.
So, I created an indicator that shows the upper and lower wick size as a percentage of the bar's range. So, now, if I want to specify a wick that's greater than 50% of the bar's range, I can just look for instances where the indicator values are UpperWick > 50 or LowerWick < -50.

If you find looking for negative numbers cumbersome, edit the indicator and reverse the LowerWick calculations, from either (Low[0] - Open[0]) or (Low[0] - Close[0]) to (Open[0] - Low[0]) or (Close[0] - Low[0]), respectively. Then, all the histogram bars will point upwards and you can make your code always look for positive values.

I hope some of you find this indicator handy.

I neglected to account for instances where Range() is zero, so the original indicator sometimes stops working. This newer version corrects that problem.


Category NinjaTrader 7 Indicators 
 
Suggest other entries I might like
Details: Wicks
Category: NinjaTrader 7 Indicators 


November 5th, 2017
Size: 3.29 KB
Downloaded: 171 times
 


 
Category
 




© 2024 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 - Privacy Policy - Downloads - Top