NexusFi: Find Your Edge


Home Menu

 





Calling GomiCD into GomiLadder


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 kashter 
Moving
 
Experience: Intermediate
Platform: NT
Broker: Mirus/Zen Fire
Trading: ES
Posts: 82 since May 2010
Thanks Given: 90
Thanks Received: 44

Hi,
Programming novice here. I am trying to call GomiCD into GomiLadder. Those familiar with GomiLadder will know in GomiLadder, there is a bottom row of delta of the current bar. I want to add the cumulative delta using GomiCD (or any other alternative) to the bottom row so I can visualize the cum delta from the same chart.

This is what I did:

 
Code
private void DrawBottomTotalDelta(float x)
			{	
				RectangleF Rect=new RectangleF(0f,0f,0f,0f);
				DrawData param=new DrawData(helper);

				Rect.Width=2*(helper.BAcellwidth+helper.chartcontrol.BarWidth)+2;
				Rect.Height=helper.ladderBADeltaFont.GetHeight();
				Rect.X=x;
				Rect.Y=helper.bounds.Bottom-2-Rect.Height;
				
				int delta=_askLadder.Sum-_bidLadder.Sum;
				int sum=_askLadder.Sum+_bidLadder.Sum;


								
				//Cum delta cell
				Rect.Y=helper.bounds.Bottom-Rect.Height;
				param.FillColor=Color.FromArgb(255,(delta>0)?helper.colorUp:helper.colorDown);
				param.FormattedData=LadderClass.Formatter(GomCD(GomCDChartType.CumulativeChart, true).DeltaValue[0],helper.ladderBAFormat);
				helper.graphics.FillRectangle(helper.myWhiteBrush,Rect);
				DrawLadderCellC(Rect,param,helper);
}
When compiled, I get this error:
HTML Code:
Cannot access a non-static member of outer type 'NinjaTrader.Indicator.Indicator' via nested type 'NinjaTrader.Indicator.GomVolumeLadder.BALadderClass'

[COLOR="Blue"]AND[/COLOR]

The best overloaded method match for 'NinjaTrader.Indicator.GomVolumeLadder.LadderClass.Formatter(int, NinjaTrader.Indicator.GomVolumeLadder.FormattingType)' has some invalid arguments
Any help is appreciated.
K


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My Rant with AMP Futures
Trading Reviews and Vendors
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098


maybe you can take a look at gom delta momentum


Reply With Quote
Thanked by:




Last Updated on May 9, 2011


© 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