NexusFi: Find Your Edge


Home Menu

 





Yet a nother indicator?


Discussion in EasyLanguage Programming

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




 
Search this Thread

Yet a nother indicator?

  #1 (permalink)
 Gibban 
Stockholm
 
Experience: Beginner
Platform: NinjaTrader, MultiCharts
Trading: Forex
Posts: 14 since Feb 2014
Thanks Given: 25
Thanks Received: 4

Hello fellow traders!

I am trying to find a indicator that can point out the size of the wig.

Like, if the wig is X % of the range then paint bar.
X should be a input.

Anyone who know how to find?

Best regards
Gibban

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


Gibban,

if you mean "wick" this should be fairly easy to code (I am guessing that wig is a typo, as I can't place it on anything trading related). Are you looking at the distance from High to Low and compare it to the body of a candle or only the wick part outside of the candle body? Or do you mean something completely different?

Regards,
ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 Gibban 
Stockholm
 
Experience: Beginner
Platform: NinjaTrader, MultiCharts
Trading: Forex
Posts: 14 since Feb 2014
Thanks Given: 25
Thanks Received: 4

ABCTG,

Yes you are right, its a typo! I mean wick

What I mean is the size of the wick in % of the range of the candle.

Like show me indicator, paint bar if the wick is => than 20% of the total range of the bar.

Regards,
Gibban

Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Gibban,

I lift my wig then .
This should get you going.

 
Code
Inputs:
	BarColor 				( yellow ),
	WickPercentage			( 20 );
	
Variables:
	BodyRangeRelation			( 0 ),
	WickPercent				( 0 );
	
once 
begin
	WickPercent = IFF( WickPercentage >= 0 and WickPercentage <= 100, WickPercentage / 100, 1 ) ;
	WickPercent = 1 - WickPercent ; //we simply turn the check around, check if the body is smaller than 100 - WickPercentage 	
end ;

//compute body percantage of the candle 
if ( High - Low ) <> 0 then
	BodyRangeRelation = AbsValue( Open - Close ) / ( High - Low ) 
else
	BodyRangeRelation = 1 ;

//plot paint bar
if BodyRangeRelation < WickPercent then
	PlotPaintBar( High, Low, Open, Close, "PB", BarColor ) ;
Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #6 (permalink)
 Gibban 
Stockholm
 
Experience: Beginner
Platform: NinjaTrader, MultiCharts
Trading: Forex
Posts: 14 since Feb 2014
Thanks Given: 25
Thanks Received: 4

Thanks ABCTG!

Definitely something to get me going.

If I find the Holey Grale, I send you a line

Best regards

Gibban

Started this thread Reply With Quote




Last Updated on January 3, 2015


© 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
no new posts