Supertrend  [SOLVED]

Questions about MultiCharts and user contributed studies.
filippo.milano
Posts: 42
Joined: 02 Jan 2015

Supertrend

Postby filippo.milano » 22 Jan 2015

Hi,
I can't see Supertrend in the study. Please, do someone have the code for powerlanguage and powerlanguage.NET?

Many thanks in advance!

Filippo

User avatar
Alex MultiCharts
Posts: 194
Joined: 09 Aug 2013
Has thanked: 43 times
Been thanked: 76 times

Re: Supertrend  [SOLVED]

Postby Alex MultiCharts » 22 Jan 2015

Hello Filippo,

Super Trend indicator is not in the list of pre-built studies in MultiCharts.

However, you can find Super Trend for .NET version here: viewtopic.php?f=19&t=47088&p=107760&hil ... nd#p107760 and Super Trend PowerLanguage version is attached.
Attachments
SuperTrend.pla
(6.13 KiB) Downloaded 722 times

filippo.milano
Posts: 42
Joined: 02 Jan 2015

Re: Supertrend

Postby filippo.milano » 22 Jan 2015

Hi Alex,
many thanks for your quick answer!
I tried to add the indicator in Multicharts, but while Supertrend indicator is working, the Supertrend is not working. The compiling returns some errors.

Please, may you help me?

Thanks a lot!

Filippo

User avatar
Alex MultiCharts
Posts: 194
Joined: 09 Aug 2013
Has thanked: 43 times
Been thanked: 76 times

Re: Supertrend

Postby Alex MultiCharts » 22 Jan 2015

Sorry, I am not sure I understand what exactly is not compiling?

DTorSwing
Posts: 62
Joined: 13 Jan 2015
Has thanked: 15 times
Been thanked: 2 times

Re: Supertrend

Postby DTorSwing » 22 Jan 2015

Hi,
I can't see Supertrend in the study. Please, do someone have the code for powerlanguage and powerlanguage.NET?

Many thanks in advance!

Filippo
I also noticed MC doesnt have SuperTrend indicator but found the one for NT and someone will have to convert

User avatar
Alex MultiCharts
Posts: 194
Joined: 09 Aug 2013
Has thanked: 43 times
Been thanked: 76 times

Re: Supertrend

Postby Alex MultiCharts » 22 Jan 2015

Hello DTorSwing,

Please be more precise, what is wrong with the indicators I have sent in my post above?

DTorSwing
Posts: 62
Joined: 13 Jan 2015
Has thanked: 15 times
Been thanked: 2 times

Re: Supertrend

Postby DTorSwing » 22 Jan 2015

Hello DTorSwing,

Please be more precise, what is wrong with the indicators I have sent in my post above?
sorry, I rechecked your post and attachment above. I will check that later tonight

filippo.milano
Posts: 42
Joined: 02 Jan 2015

Re: Supertrend

Postby filippo.milano » 22 Jan 2015

Hi Alex,
sorry for my english.
As you can see in the attached files, graphs seem slightly different . Your looks more rounded , smooth for having set the same values .

Thanks

Filippo
Attachments
fotoS.gif
Foto MC
fotoS.gif (18.57 KiB) Viewed 2559 times

filippo.milano
Posts: 42
Joined: 02 Jan 2015

Re: Supertrend

Postby filippo.milano » 22 Jan 2015

Foto 2
Attachments
fotoS2.gif
Foto
fotoS2.gif (53.48 KiB) Viewed 2517 times

DTorSwing
Posts: 62
Joined: 13 Jan 2015
Has thanked: 15 times
Been thanked: 2 times

Re: Supertrend

Postby DTorSwing » 22 Jan 2015

Foto 2
can it color the BG when trend changes

User avatar
JoshM
Posts: 2099
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1526 times
Been thanked: 1502 times
Contact:

Re: Supertrend

Postby JoshM » 23 Jan 2015

can it color the BG when trend changes
That's not possible in MultiCharts.

miltonc4
Posts: 150
Joined: 14 Apr 2006
Has thanked: 1 time
Been thanked: 3 times

Re: Supertrend

Postby miltonc4 » 23 Jan 2015

Hi Filippo
Email Chris at >info@abctradinggroup.com< as he has programmed for me (for a very reasonable fee) many instances which requires coloring background,If it can be done then he will be more than capable of programming it
Best Regards
Milton

User avatar
Alex MultiCharts
Posts: 194
Joined: 09 Aug 2013
Has thanked: 43 times
Been thanked: 76 times

Re: Supertrend

Postby Alex MultiCharts » 23 Jan 2015

Hi Alex,
sorry for my english.
As you can see in the attached files, graphs seem slightly different . Your looks more rounded , smooth for having set the same values .
Hello Filippo,

Please open the scripts of the indicators that I have sent and the script of the indicator you are comparing with and execute the changes you want.

User avatar
MAtricks
Posts: 789
Joined: 09 Apr 2012
Has thanked: 286 times
Been thanked: 279 times

Re: Supertrend

Postby MAtricks » 23 Jan 2015

can it color the BG when trend changes
That's not possible in MultiCharts.
Technically no, but visually it is possible. Not at all ideal though. The old trick of plotting a thick histogram as the background and replotting the candles with another indicator would visually do the trick, but it would be ugly, clunky, and slow down your platform. :)

(Not directed as Josh in any way. He already knows this)

sptrader
Posts: 710
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 468 times
Been thanked: 261 times
Contact:

Re: Supertrend

Postby sptrader » 23 Jan 2015

Coloring the background with transparent colors (filing in colors between averages etc), is a feature that is needed in MC. It has been suggested many times..Coloring the background different colors for each session,for example, is a great use for this feature...
NT and others have had this feature for years...

javamarket
Posts: 55
Joined: 10 Jul 2014
Has thanked: 10 times
Been thanked: 18 times

Re: Supertrend

Postby javamarket » 17 Feb 2015

@Fillippo

I have a version of SuperTrend available here that may be closer to what you are looking for.
It has the flat areas when price is retracing toward the indicator.

https://github.com/mtompkins/openAlgo/t ... SuperTrend

User avatar
bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

Re: Supertrend

Postby bensat » 20 Mar 2015

That's not possible in MultiCharts.
and
Technically no, but visually it is possible. Not at all ideal though. The old trick of plotting a thick histogram as the background and replotting the candles with another indicator would visually do the trick, but it would be ugly, clunky, and slow down your platform. :)
(Not directed as Josh in any way. He already knows this)
BS ... both. Just try following easy and very memory insignificant setup. Nothing gets ugly, clunky and slows down the setup.

Code: Select all

input : PosColor(green), NegColor(red);

var : var1_upvalue(999999),
var2_dnvalue(-999999),
var3_color(0);


if c >= averagefc(c, 21) then
begin
var3_color = PosColor;
end
else
var3_color = NegColor;


Plot1 (var1_upvalue, "top", var3_color);
Plot2 (var2_dnvalue, "bot", var3_color);
Insert this indicator into your chart, change the plottypes to "Bar High" and "Bar Low" and change the thickness to level 5 or higher. Change the indicator to be shown in Subgraph 1 and "Same as Instrument" in scaling. Right klick the indicator in the chart and change "Visual Order" to " Send to Back". Edit the instrument plot thickness just for 1 level and that is it. No need to re-plot candles or bars and paying other programmer for such an easy thing.

Have a nice weekend.

Image

User avatar
MAtricks
Posts: 789
Joined: 09 Apr 2012
Has thanked: 286 times
Been thanked: 279 times

Re: Supertrend

Postby MAtricks » 20 Mar 2015

Hence the "ugly" comment :)

As I said before, this isn't something one would use

User avatar
bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

Re: Supertrend

Postby bensat » 24 Mar 2015

Beauty is rarely functional .... ;)


Return to “MultiCharts”