Help, my indicator disappeared...

Darth Tradicus

Member
VIP
Hey guys,

Been using this indicator for the past couple of days on a RENKO chart, with no issues. But I wanted to take the other night to do some more extensive manual backtesting and reloaded my chart from 15 days to 90 days. In so doing, the indicator no longer loads on the RENKO chart. Also there is no error warning for it in the top left chart corner.

I tried dropping the period back down all the way to 5 days, nothing changed. I tried switching over to candles and the indicator loaded back onto the chart as it should. Then switching back to RENKO it again wouldn't load. Reloaded the indicators into the edit studies menu, nothing happened. Reset workspace to default and then reloaded everything up, still it won't come back. Also, other heikinAshi type indicators seem to be working just fine on RENKO.

I don't know enough about code to tell if there is a problem somewhere, or maybe the code can be more specifically adapted to RENKO?

Code:
#Converted MT4 HeikinAshi_EntryExit Indicator
#MikeLikesAnacottSteel
#8-27-2022
#MT4 indicator source: https://forex-station.com/app.php/attach/file/3349947

input MaMethod1 = AverageType.EXPONENTIAL;
input MaPeriod = 40;
input MaMethod2 = AverageType.EXPONENTIAL;
input MaPeriod2 = 1;

def maOpen = MovingAverage(MaMethod1, Open, MaPeriod);
def maClose = MovingAverage(MaMethod1, Close, MaPeriod);
def maLow = MovingAverage(MaMethod1, Low, MaPeriod);
def maHigh = MovingAverage(MaMethod1, High, MaPeriod);

def haClose=(maOpen+maHigh+maLow+maClose)/4;
def haOpen=(GetValue(haOpen, 1)+GetValue(haClose, 1))/2;
def haHigh=Max(maHigh, Max(haOpen, haClose));
def haLow=Min(maLow, Min(haOpen, haClose));

def ExtMapBuffer7;
def ExtMapBuffer8;

if(haOpen<haClose)
{
ExtMapBuffer7=haLow;
ExtMapBuffer8=haHigh;
}
else
{
ExtMapBuffer7=haHigh;
ExtMapBuffer8=haLow;
}

def ExtMapBuffer5=haOpen;
def ExtMapBuffer6=haClose;

Plot ExtMapBuffer1 = MovingAverage(MaMethod2, ExtMapBuffer7, MaPeriod2);
Plot ExtMapBuffer2 = MovingAverage(MaMethod2, ExtMapBuffer8, MaPeriod2);
Plot ExtMapBuffer3 = MovingAverage(MaMethod2, ExtMapBuffer5, MaPeriod2);
Plot ExtMapBuffer4 = MovingAverage(MaMethod2, ExtMapBuffer6, MaPeriod2);

ExtMapBuffer1.SetDefaultColor(Color.RED);
ExtMapBuffer1.SetPaintingStrategy(PaintingStrategy.LINE);
ExtMapBuffer1.SetLineWeight(1);

ExtMapBuffer2.SetDefaultColor(Color.BLUE);
ExtMapBuffer2.SetPaintingStrategy(PaintingStrategy.LINE);
ExtMapBuffer2.SetLineWeight(1);

ExtMapBuffer3.SetDefaultColor(Color.RED);
ExtMapBuffer3.SetPaintingStrategy(PaintingStrategy.LINE);
ExtMapBuffer3.SetLineWeight(1);

ExtMapBuffer4.SetDefaultColor(Color.BLUE);
ExtMapBuffer4.SetPaintingStrategy(PaintingStrategy.LINE);
ExtMapBuffer4.SetLineWeight(1);

AddCloud(ExtMapBuffer1, ExtMapBuffer2, CreateColor(255,0,102), CreateColor(0, 102, 255));
AddCloud(ExtMapBuffer1, ExtMapBuffer4, CreateColor(255,0,102), CreateColor(0, 102, 255));
AddCloud(ExtMapBuffer2, ExtMapBuffer1, CreateColor(0, 102, 255), CreateColor(255,0,102));
AddCloud(ExtMapBuffer2, ExtMapBuffer3, CreateColor(0, 102, 255), CreateColor(255,0,102));
AddCloud(ExtMapBuffer3, ExtMapBuffer4, CreateColor(255,0,102), CreateColor(0, 102, 255));
 
No problem here

qYBTQwc.png
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

No problem here

qYBTQwc.png
Hey @BenTen , thanks for the reply

Funny thing, looks like what happened is only a part of the indicator is showing up. When the indicator was working, I had unchecked and set to default, the ExtMapBuffers in study settings- and I set it to default for less chart clutter so I would only see the clouds:

https%3A//i.imgur.com/Wq8FOKI.jpg[/img]']
Wq8FOKI.jpg


But then what happened was the clouds disappeared and the entire indicator with it. But I discovered today by accident that if I recheck the ExtMapBuffers in study settings, at least one of the colored averages appears (one blue, neither red), and thats what you're seeing on your chart as well: (I have the indicator loaded 3 times in the pics below):

https%3A//i.imgur.com/vxPgRC0.jpg[/img]']
vxPgRC0.jpg


The following is how the indicator is supposed to look (minus ExtMapBuffers). Its a cloud ribbon that changes colors. It's on a 1min chart below but this is also how it appeared on my RENKO charts before disappearing:

https%3A//i.imgur.com/v46VoAI.jpg[/img]']
v46VoAI.jpg


Its a huge help having at least the ExtMapBuffer avg loading now. Not sure what happened to the clouds... any ideas?
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
510 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top