NexusFi: Find Your Edge


Home Menu

 





Elder Impulse Paintbar


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one dWbstreet with 1 posts (0 thanks)
    2. looks_two Shaban with 1 posts (0 thanks)
    3. looks_3 Shentoo with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (0 thanks)
    1. trending_up 2,488 views
    2. thumb_up 0 thanks given
    3. group 5 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Elder Impulse Paintbar

  #1 (permalink)
dWbstreet
Daytona Beach, Florida
 
Posts: 1 since Jan 2011
Thanks Given: 0
Thanks Received: 0

Any chance anyone out there would be kind enough to post the code for this. It's just a simple if then statement. I don't understand the syntax of Multicharts.net and there are limited tutorials (none on how to integrate existing studies with paintbars)
I have exhausted my research, and it's not worth $70 I was quoted to have someone copy paste a sequence.

Thanks so much.

This was my code from Thinkorswim:

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.BOOLEAN_POINTS);
Bullish.SetLineWeight(3);
Bullish.hide();
Neutral.SetDefaultColor(Color.BLUE);
Neutral.SetPaintingStrategy(PaintingStrategy.BOOLEAN_POINTS);
Neutral.SetLineWeight(3);
Neutral.hide();
Bearish.SetDefaultColor(Color.DOWNTICK);
Bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_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"));

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

dWbstreet,

the Multicharts.NET programming guide is a good start and for the syntax any beginner C# book or tutorial should teach you what you need to know:

https://www.multicharts.com/downloads/MultiCharts.NET-ProgrammingGuide-v1.1.pdf

The futures.io member @Jura runs the website https://www.tradingcode.net/ which has excellent content for MC.NET. Going through these tutorials should teach you what you need to know to write your indicator - unfortunately it's not just "copy and paste", though.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #3 (permalink)
sixhundread
Vienna and Austria
 
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7



dWbstreet View Post
Any chance anyone out there would be kind enough to post the code for this. It's just a simple if then statement. I don't understand the syntax of Multicharts.net and there are limited tutorials (none on how to integrate existing studies with paintbars)
I have exhausted my research, and it's not worth $70 I was quoted to have someone copy paste a sequence.

Thanks so much.

This was my code from Thinkorswim:

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.BOOLEAN_POINTS);
Bullish.SetLineWeight(3);
Bullish.hide();
Neutral.SetDefaultColor(Color.BLUE);
Neutral.SetPaintingStrategy(PaintingStrategy.BOOLEAN_POINTS);
Neutral.SetLineWeight(3);
Neutral.hide();
Bearish.SetDefaultColor(Color.DOWNTICK);
Bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_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"));



Buon Giorno!
Did you write the code for Multicharts?
If so can i get it? - Thank you!

Reply With Quote
  #4 (permalink)
Shaban
Turin + Italy
 
Posts: 194 since Feb 2020
Thanks Given: 24
Thanks Received: 129

Hi,

I found this formula on the Net, try to see if it works for you:

{Elder impulse system - Paintbar}

input: len(13), FastMA(13),SlowMA(22),MacdMA(9);
vars:color(cyan);

Value1 = (MACD(Close,FastMA,SlowMA));
Value2 = (XAverage(MACD(Close,FastMA,SlowMA),MacdMA));
Value3 = Value1-Value2;
value4 = xaverage(close,len);

if value4 > value4[1] and value3 > value3[1] then color = green
else if value4 < value4[1] and value3 < value3[1] then color = red
else color = cyan;

plotpb(h,l,o,c,"PB", color);

Reply With Quote




Last Updated on January 17, 2022


© 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