NexusFi: Find Your Edge


Home Menu

 





Calling GomiCD into GomiLadder


Discussion in NinjaTrader

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




 
Search this Thread

Calling GomiCD into GomiLadder

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
Quantum physics & Trading dynamics
The Elite Circle
Strategy stop orders partially filled
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
Funded Trader platforms
21 thanks
Trading with Intuition
17 thanks
ApexTraderFunding.com experience and review
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


maybe you can take a look at gom delta momentum

Reply With Quote
Thanked by:




Last Updated on May 9, 2011


© 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