NexusFi: Find Your Edge


Home Menu

 





Vars implemetation to gbMACDx5 indicator


Discussion in NinjaTrader

Updated
    1. trending_up 1,877 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: 7

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:	196
Size:	59.4 KB
ID:	311726  
Started this thread

Can you help answer these questions
from other members on NexusFi?
Bitcoin’s 2022 low, 2025 high and 2026 low so far arou …
Cryptocurrency
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
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
  #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,175 since Jan 2013
Thanks Given: 58,026
Thanks Received: 26,426

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: 7


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,175 since Jan 2013
Thanks Given: 58,026
Thanks Received: 26,426


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


© 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