NexusFi: Find Your Edge


Home Menu

 





Ok, So I need an indicator modified. I would like to have th


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,166 since Mar 2010
Thanks Given: 6,339
Thanks Received: 13,415

Ok, So I need an indicator modified. I would like to have the JMANoRepaint indicator modified to include user selectable colors for bars above/below the line.

Can someone help me with this?


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


For user selectable colours you need to add:

 
Code
                            
using System.Xml.Serialization;
 
define a color under variables, for example
 
private Color aboveLine Color.Magenta
 
use 
the color to paint your bar
 
if (BarIsAboveLine)
BarColor aboveLine;
 
and 
then set the properties of your color
 
///<summary>
///</summary>
[Description("Select Bar Color")]
[
Category("Colors")]
[
Gui.Design.DisplayName("Bar Above Line")]
public 
Color AboveLine
{
get { return aboveLine; }
set aboveLine value; }
}
// Serialize Color object
[Browsable(false)]
publicstring AboveLineSerialize
{
get { return NinjaTrader.Gui.Design.SerializableColor.ToStringaboveLine); }
set aboveLine NinjaTrader.Gui.Design.SerializableColor.FromStrin g(value); }

If you cannot do the changes, you would need to expose the code of the indicator, so I can add the few changes as shown above.


Reply With Quote




Last Updated on May 23, 2010


© 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