logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
jakethedog  
#1 Posted : Thursday, April 13, 2006 8:52:22 PM(UTC)
jakethedog

Rank: Member

Groups: Registered, Registered Users
Joined: 2/27/2006(UTC)
Posts: 20
Location: Adelaide, Australia

Can anyone help me to convert the following oscillator into a range bound oscillator with OB values and OS values at 70 and 30 respectively: (C-Mov(C,22,S))*100 Thanks for yr help.
Jose  
#2 Posted : Thursday, April 13, 2006 9:16:11 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Try this: [code:1:77f76ed08d] { Normalizes indicator to 0~100% boundaries. From: http://www.metastocktools.com } { User inputs } plot:=Input("plot: [1]Indicator, [2]Oscillator",1,2,2); pds:=Input("Indicator periods",1,2600,22); { Indicator example } Ind:=C-Mov(C,pds,S); { Normalize indicator to historical highs/lows } Oscillator:=(Ind-Lowest(Ind)) /Max(Highest(Ind)-Lowest(Ind),.000001)*100; { Plot: Indicator on chart, oscillator in own window } If(plot=1,Ind,70); If(plot=1,Ind,30); If(plot=1,Ind,Oscillator) [/code:1:77f76ed08d] jose '-)
jakethedog  
#3 Posted : Thursday, April 13, 2006 9:30:12 PM(UTC)
jakethedog

Rank: Member

Groups: Registered, Registered Users
Joined: 2/27/2006(UTC)
Posts: 20
Location: Adelaide, Australia

Thanks Jose, Just what I needed. :)
Users browsing this topic
Guest (Hidden)
Forum Jump  
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.