NexusFi: Find Your Edge


Home Menu

 





Vars implemetation to gbMACDx5 indicator


Discussion in NinjaTrader

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




Closed Thread
 
Search this Thread
  #1 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
Posts: 22 since Dec 2020
Thanks Given: 12
Thanks Received: 6

Hi all
Im insert vars to gbMACDx5 indicator
Trend chanding signals

So..
I add plot to code
 
Code
AddPlot(new Stroke(Brushes.Transparent, DashStyleHelper.Solid, 1), PlotStyle.Square, "Trend");
and put code in places where trending is counting. Nothig else

 
Code
Trend[0] = 1 /// when trend is up -1 for trend down and 0 for no trend
All worked. But I have output like this



No white color.. If you have idea how to return color back - tell me any idea please 8)

 
Code
/// Color Macd Histo based on perfect order
				if (t1 && t2 && t3 && t4)
				{
					PlotBrushes[0][0] = C3;
					Trend[0] = 1;
				}	
					
				else if (!t1 && !t2 && !t3 && !t4)
				{
					PlotBrushes[0][0] = C4;
					Trend[0] = -1;

				}
				else 
				{
					Trend[0] = 0;
				}

Attached Thumbnails
Click image for larger version

Name:	why.png
Views:	94
Size:	59.4 KB
ID:	311726  
Started this thread

Can you help answer these questions
from other members on NexusFi?
Quantum physics & Trading dynamics
The Elite Circle
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
Pivot Indicator based on Level2 data
NinjaTrader
Radarscreen
TradeStation
Help re translation of ninjascript to EL
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
74 thanks
HumbleTraders next chapter
51 thanks
Winning attitudes create winning traders
39 thanks
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Topstep experience and review
33 thanks
  #2 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,166 since Jan 2013
Thanks Given: 57,748
Thanks Received: 26,363

Hi @maxuscz,

Please attach copies of the original indicator and of your modified indicator (full source code files.) If you kept the same name for your modified version, please change the filename of the attachment. Then indicate the line numbers of the changes you have made, and explain more fully what is now not working.

Sorry to ask so much of you, but it you don't give people more to go on, they won't understand how to help.

I hope you receive the help you need to resolve this problem.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Thanked by:
  #3 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
Posts: 22 since Dec 2020
Thanks Given: 12
Thanks Received: 6


Hello Bob

I don't know how to behave in this situation
Cose indicators from closed member zone
but forum is open for all

It is brake rules or not... I dont know 8)
It is why Im not attach codes.

I get indicator here

https://nexusfi.com/local_links.php?linkid=2337

If I post it here - it is OK or not?

Started this thread
Thanked by:
  #4 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,166 since Jan 2013
Thanks Given: 57,748
Thanks Received: 26,363


maxuscz View Post
Hello Bob

I don't know how to behave in this situation
Cose indicators from closed member zone
but forum is open for all

It is brake rules or not... I dont know 8)
It is why Im not attach codes.

@maxuscz, You are right, and I should have thought of that. My mistake. I was just thinking about what a programmer would need to look at to try to help, but what you pointed out is more important.

The best thing is to repost your question in the NT free indicator thread, which is Elite-only. This way there will be no exposure of the source code outside of the Elite area. And you may be better able to attract programmer interest in that thread anyway.

The thread is here:



It will be OK to post the indicator code in that thread, in fact it is preferred that you do. You can also specify the lines you have changed, by line number, and the changes you have made.

I will close this thread now, as the discussion should go on in the Elite thread.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Thanked by:

Closed Thread



Last Updated on April 19, 2021


© 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