BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullCharts discussion
  New Posts New Posts RSS Feed: J B Volatility Profit taker
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

J B Volatility Profit taker

 Post Reply Post Reply Page  123 4>
Author
Message Reverse Sort Order / View First Unread Post
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Topic: J B Volatility Profit taker
    Posted: 27 Aug 2022 at 3:32pm

Yes, that's fine Robert.


Back to Top
rbbrain View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 22 Jul 2006
Location: Melbourne
Posts: 169
Post Options Post Options   Quote rbbrain Quote  Post ReplyReply Direct Link To This Post Posted: 25 Aug 2022 at 5:13pm
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
Robert Brain (Brainy)
Convenor - Australian BullCharts User Group
Brainy's Share Market Toolbox and BullCharts Tips
[/CENTER
Back to Top
Pokitren View Drop Down
Newbie
Newbie
Avatar

Joined: 01 Feb 2022
Location: Sydney
Posts: 3
Post Options Post Options   Quote Pokitren Quote  Post ReplyReply Direct Link To This Post Posted: 02 Feb 2022 at 7:43pm
Originally posted by stevo

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



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
Back to Top
stevo View Drop Down
Newbie
Newbie


Joined: 28 May 2019
Location: melbourne
Posts: 4
Post Options Post Options   Quote stevo Quote  Post ReplyReply Direct Link To This Post Posted: 10 Oct 2021 at 12:54am

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

Back to Top
jhubbard View Drop Down
Newbie
Newbie
Avatar

Joined: 17 Sep 2009
Location: Sydney
Posts: 10
Post Options Post Options   Quote jhubbard Quote  Post ReplyReply Direct Link To This Post Posted: 09 Feb 2011 at 1:10pm
Thanks Maximo, much appreciated.  I'm doing some backtesting at the moment - will let you know if I find anything worth while!

Cheers,
Jeremy.
Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 07 Feb 2011 at 11:16pm
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
Back to Top
jhubbard View Drop Down
Newbie
Newbie
Avatar

Joined: 17 Sep 2009
Location: Sydney
Posts: 10
Post Options Post Options   Quote jhubbard Quote  Post ReplyReply Direct Link To This Post Posted: 07 Feb 2011 at 11:10am
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.
Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 14 Jun 2008 at 4:08pm
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! 
Back to Top
loop4ever View Drop Down
Newbie
Newbie


Joined: 13 Jun 2008
Posts: 1
Post Options Post Options   Quote loop4ever Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jun 2008 at 9:46pm

Maximo, is the TrendStop code you posted give the exact same signal as the CMC MarketMaker SuperTrend indicator?

 

Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 10 Apr 2008 at 12:18am

Hiya Brentjedi

I modified it a bit to show the direction of the following bar using a marker, though you may want to apply it to the chart and change it to a line.   Looks like the Barssince Function will do the job of pinpointing how ever many bars after the signal you want to indicate with a line or marker.  Many good signals from it  and I hope your backtesting is going well.

n := input("Enter the ROC length", 14, 7, 52);

method := inputroc("Enter the ROC method",PERCENT);

x := roc(C,n,PERCENT);

x;

[linestyle=marker; marker=type2; name=x]

condition:=if(hist(x<10,1) AND x>10,1,0);

condition;

[linestyle=marker; marker=long; name=""]

if(hist(barssince(condition),0)=true and H>hist(H,1),1,0);

[linestyle=marker; marker=short; name=""]

if(hist(barssince(condition),0)=true and L<hist(L,1),1,0);

 

 



Edited by maximo
Back to Top
 Post Reply Post Reply Page  123 4>

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz