I am looking to contact Latter-Day-Trader (CHINKIAT) about his LTD- The Strat indicator
It works quite well with one exception. After the first inside-bar is painted all subsequent bars paint as an inside-bar. The only work around is to toggle to another time frame and back again.
I am grateful for any help with this issue
I am not sure how you got that indicator because I don’t see it in my list of indicators that I have shared to the community.
Either way, I loaded a version that I do have and I don’t see the problem as you described. Not sure if it was fixed or I didn’t understand the scenario. Also, I never really traded or studied the STRAT. I just wrote the indicator.
I shared the version that I do have here: Tradovate
Hi, Is there a way to have inside candles colored depending on opening and closing. I’m trying to get inside candles that are bullish aqua blue and inside candles that are bearish magenta and a way to put a border around them. Thank you 
Yes to set the bar color. To paint a border would require more work using the Graphics API. To set the bar color, in the return object of the map() function, just have a property called “candlestick”. The value of that property is another object with one property called color.
First, you detect an inside bar and figure out its color:
map(d, i, history) {
// Your code goes here
// previous bar
const prior = history.prior();
let barColor = "white"; // default color
let isInside = false;
if (prior && prior.high() > d.high() && prior.low() < d.low()) {
// inside bar
isInside = true;
barColor = (d.close() > d.open()) ? "aqua" : "magenta"; // may not be the correct color names
}
Normally, you see something like this at the end of the map() function:
return {
ma: moving, // just a sample property to return
candlestick: { color: barColor}, // sets the color of the bar
}
The problem with the above is that you have to explicitly set the color of the bars at all times since you are always returning it. An alternative way is to conditionally return candlestick when it matches your conditions. You do so by defining a return object and add properties to it.
const rtn = {
ma: moving, // just a sample property to return
};
if (isInside) {
rtn["candlestick"] = { color: barColor};
}
return rtn;
Good luck.
I made a quick video on how to code on up.
1 Like
would you write an indicator for me??
Last time i’m going to copy paste this…lol.
LDT is looong gone. He was damn good, too. So was Sethmo and a couple others. This platform hasn’t had an update in 2 yrs when TV sold out to Ninja Trader. They just let things go…there’s been issues for years, but they don’t really care about this platform anymore it seems. Most of the coding guys, we all went over to Sierra Charts. This platform is a mess. Here’s copy paste below…if anyone else wants to copy paste for otheerrs so they don’t waste their time…fell free.
copy/pasted the below comment from another post I answered .
From earlier:
Don’t bother requesting. This forum and platform was given up on when Tradovate sold to Ninja for their customers. I’ve had an acct with TVate from the begining, and am grandfathered in with a couple things, there hasn’t been an update in 2 years or more, no one from Tradovate/Ninja visits this forum anymore. Brian Weiss has “new position” with Ninja…idk what happen to Greg…TVate’s main coder/IT guy that was always in here. It’s a dead forum. I’m just letting you guys know so you don’t waste your time wishing and hoping. Too bad someone couldn’t pin this post…but if anyone wants to copy/paste when someone posts a new thread, or even start a new thread with this post, feel free. It probably won’t help much, but maybe someone from the company will see it. In fact, the last time I contacted live “help” from the chart browser, they didn’t even know the forum existed. And when they told me they weren’t aware of any problems, I pointed them to this forum where there are complaint after complaint of the same thing…and then I never heard back from them. There were a bunch of really good coders building great indicators that gave up and moved on after awhile. It had promise in the beginning. Perhaps that was their business model, build a decent client base, then sell the Co.?
The platform has just gotten impossible to use, and the fact they no longer are compatible, or connect with Sierra Chart, is an another issue. I suspect because Ninja owns them now and would like you to use that platform. Fact is, for me, when blips or server connections start to cost you money, or spending a half hour everyday trying to get indicators to load, or not there even when you switch timeframes…it’s just time to move on…