![]() |
J B Volatility Profit taker |
Post Reply ![]() |
Page <1 234 |
Author | |
maximo ![]() BullCharts Guru ![]() ![]() Joined: 02 Sep 2006 Location: Australia Posts: 232 |
![]() ![]() ![]() ![]() |
No the signals are not the same. SuperTrend allows for 3 different kinds of averages to be used SMA,WMA,EMA and 3 different base levels Close, Weighted Close, Median price and also an average of all 3 together. Which one CMC chose to use is anyones guess.. and they wont give me the code!
|
|
![]() |
|
jhubbard ![]() Newbie ![]() ![]() Joined: 17 Sep 2009 Location: Sydney Posts: 10 |
![]() ![]() ![]() ![]() |
Hi Maximo,
Thanks for these indicators, they are great. In fact, they seem almost too good to be true! Are you sure that they don't "repaint" at all? Cheers, Jeremy. |
|
![]() |
|
maximo ![]() BullCharts Guru ![]() ![]() Joined: 02 Sep 2006 Location: Australia Posts: 232 |
![]() ![]() ![]() ![]() |
G'day Jeremy,
I've updated the code, more accurate and simplified, no repaint.
[Description ="SuperTrend - Max"][target =price]Mult:= Input("ATR Multiplier",3,1);Nb:= Input("Nb Periods",8,1);method:= inputma("Method",Wilders);price:= Input("1=Median, 2=Close",1,1);TruRan:= ma(ATR(1),Nb,method)*Mult;HiLimit:= if(price=1,(H+L)/2-TruRan,C-TruRan);LoLimit:= if(price=1,(H+L)/2+TruRan,C+TruRan);LB:= If(HiLimit>=PREV and HiLimit<C,HiLimit,If(C<PREV,HiLimit-0.1,PREV));UB:= If(LoLimit<PREV and LoLimit>C,LoLimit,If(C>PREV,LoLimit+0.1,PREV));Trend:= if(UB>ref(UB,-1),1,if(LB<ref(LB,-1),-1,prev));[drawundefined =gap][Color =lime green]if (Trend=1 and hist(Trend,1)=-1,LB,if(Trend=-1,UB,undefined));[Color =red]if (Trend=-1 ,UB,if(hist(Trend,1)=1 ,LB,undefined));[Color =lime green]if (Trend=1 or Trend=0,LB,undefined);{ Paint bars} Flag:= input("PaintBars On=1, Off=0",0,0,1);[linestyle =pricecolor; color=rgb(98,217,98)]If (Trend=1 and Flag=1,1,if(Flag=0 and C>O,1,undefined));[color =rgb(226,118,118)] {red}If (Trend=-1 and Flag=1,1,if(Flag=0 and C<=O,1,undefined));Edited by maximo - 09 Feb 2011 at 2:04am |
|
![]() |
|
jhubbard ![]() Newbie ![]() ![]() Joined: 17 Sep 2009 Location: Sydney Posts: 10 |
![]() ![]() ![]() ![]() |
Thanks Maximo, much appreciated. I'm doing some backtesting at the moment - will let you know if I find anything worth while!
Cheers, Jeremy. |
|
![]() |
|
stevo ![]() Newbie ![]() Joined: 28 May 2019 Location: melbourne Posts: 4 |
![]() ![]() ![]() ![]() |
Hi Ferret, Hope your still here as the post I’m referring to is 14
years old. The JB Entry indicator / Ferret Indicator is terrific. Is it possible to add a line of code so that it only shows
on the chart for 20 bars after the RSI has been lower than 30? Just trying to clean up the chart by removing the line where
it’s not wanted. If Ferrets not around I hope someone else could help. Cheers Ian |
|
![]() |
|
Pokitren ![]() Newbie ![]() ![]() Joined: 01 Feb 2022 Location: Sydney Posts: 3 |
![]() ![]() ![]() ![]() |
Yeah) Hardly anyone will answer after 14 years. I'm interested in the question, too, though.
Edited by Pokitren - 02 Feb 2022 at 7:44pm |
|
![]() |
|
rbbrain ![]() BullCharts Staff ![]() ![]() Joined: 22 Jul 2006 Location: Melbourne Posts: 169 |
![]() ![]() ![]() ![]() |
Hi Maximo,
Our BullCharts User Group is using a "private" Google Drive to store user group presentations and Custom Indicators and scans. I am hoping that you are happy for me to include your SuperTrend code in the Google Drive for other users to find easily? Cheers
Robert B |
|
Convenor - Australian BullCharts User Group Brainy's Share Market Toolbox and BullCharts Tips [/CENTER |
|
![]() |
|
maximo ![]() BullCharts Guru ![]() ![]() Joined: 02 Sep 2006 Location: Australia Posts: 232 |
![]() ![]() ![]() ![]() |
Yes, that's fine Robert. |
|
![]() |
Post Reply ![]() |
Page <1 234 |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |