Multichannel Elder Impluse paintbar

This is a discussion on Multichannel Elder Impluse paintbar within the Trading Software forums, part of the Commercial category; Any chance someone out there would be kind enough to show us how to integrate this into Multicharts.net Thanks so ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Jan 25, 2017, 12:45pm   #1
 
1 Posts
Joined Jan 2017
Multichannel Elder Impluse paintbar

Any chance someone out there would be kind enough to show us how to integrate this into Multicharts.net

Thanks so much

input length = 13;
input paintBars = yes;

def EMA = ExpAverage(close, length);
def MACD = ExpAverage(close, 12) - ExpAverage(close, 26);
def MACDHist = MACD - ExpAverage(MACD, 9);
def GreenPrice = EMA > EMA[1] and MACDHist > MACDHist[1];
def RedPrice = EMA < EMA[1] and MACDHist < MACDHist[1];

plot Bullish = GreenPrice;
plot Neutral = !GreenPrice and !RedPrice;
plot Bearish = RedPrice;

Bullish.SetDefaultColor(Color.UPTICK);
Bullish.SetPaintingStrategy(PaintingStrategy.BOOLE AN_POINTS);
Bullish.SetLineWeight(3);
Bullish.hide();
Neutral.SetDefaultColor(Color.BLUE);
Neutral.SetPaintingStrategy(PaintingStrategy.BOOLE AN_POINTS);
Neutral.SetLineWeight(3);
Neutral.hide();
Bearish.SetDefaultColor(Color.DOWNTICK);
Bearish.SetPaintingStrategy(PaintingStrategy.BOOLE AN_POINTS);
Bearish.SetLineWeight(3);
Bearish.hide();

DefineGlobalColor("Bullish", Color.UPTICK);
DefineGlobalColor("Neutral", Color.BLUE);
DefineGlobalColor("Bearish", Color.DOWNTICK);
AssignPriceColor(if !paintBars then Color.CURRENT else if GreenPrice then globalColor("Bullish") else if RedPrice then globalColor("Bearish") else globalColor("Neutral"));
dWbstreet is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dr Elder Pat494 The Foyer 7 Mar 1, 2011 4:28pm
QuoteTracker paintbar formulas disbar First Steps 7 Aug 13, 2010 12:47pm
Upbar and downbar paintbar pimind First Steps 0 Oct 3, 2008 6:22pm
Elder-ray Joules MM1 Spread Betting & CFDs 0 Mar 12, 2007 1:33am
Alexander Elder SBM First Steps 15 May 24, 2004 6:24pm

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)