Help Coding A Straight Envelope in ProRealTime Please

This is a discussion on Help Coding A Straight Envelope in ProRealTime Please within the General Trading Chat forums, part of the Reception category; Hello All, Would anyone be able to help me coding a straight envelope in prorealtime please. Essentially, the code I ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Jan 29, 2012, 2:44pm   #1
 
4 Posts
Joined Jan 2008
Help Coding A Straight Envelope in ProRealTime Please

Hello All,

Would anyone be able to help me coding a straight envelope in prorealtime please.

Essentially, the code I have so far is:

Code:
myEma= exponentialaverage[21](close)

upperband = myEma +(myEma * COEFF)
lowerband = myEma -(myEma * COEFF)

return upperband,lowerband
where COEFF (the coefficient) is a user defined variable, which I set to default to 0.05

Now the problem is that 0.05 doesn't work for all stocks - so that I find for some stocks I need to manually adjust COEFF to make the envelope fit the stock properly (i.e. the envelope touches the highest high made in the past 3 months, or lowest low)

Does anyone know how to do this?

Thanks
tradingjamie is offline   Reply With Quote
Old Jan 30, 2012, 4:42am   #2
 
gedward3's Avatar
Joined Jun 2005
Re: Help Coding A Straight Envelope in ProRealTime Please

Quote:
Originally Posted by tradingjamie View Post
Hello All,

Would anyone be able to help me coding a straight envelope in prorealtime please.

Essentially, the code I have so far is:

Code:
myEma= exponentialaverage[21](close)

upperband = myEma +(myEma * COEFF)
lowerband = myEma -(myEma * COEFF)

return upperband,lowerband
where COEFF (the coefficient) is a user defined variable, which I set to default to 0.05

Now the problem is that 0.05 doesn't work for all stocks - so that I find for some stocks I need to manually adjust COEFF to make the envelope fit the stock properly (i.e. the envelope touches the highest high made in the past 3 months, or lowest low)

Does anyone know how to do this?

Thanks
Hi Jamie,

Just log onto the Prorealtime site as they will code this for free for you. I asked them to do a BB Squeeze a while back and they did it no problems. If you need this let me know and i'll dig it out for you

ProRealTime: Financial Technical Analysis Software & Real-Time Market Data

They also have loads of strategies and indicators already coded

ProRealTime: Financial Technical Analysis Software & Real-Time Market Data

Ged
__________________
A WISE MAN LEARNS BY HIS MISTAKES......AN EVEN WISER MAN LEARNS BY OTHER PEOPLES MISTAKES

And as somebody else pointed out to me on T2W.

THE WISEST MAN LEARNS BY HIS AND OTHER PEOPLES MISTAKES...................

Is diarrhoea hereditory or does it just run in your genes
gedward3 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding Indicator Prorealtime brutusdog Trading Software 17 Sep 19, 2012 8:21pm
prorealtime coding saidtomuch Techies Corner 1 Feb 21, 2011 4:05pm
ProRealTime coding help travelfrog Techies Corner 1 Dec 21, 2010 6:24pm
Need Help with ProRealTime Indicator Coding lbz321 Trading Software 0 Oct 9, 2010 2:43am
Envelope guibraga Trading Software 6 Jun 20, 2004 11:50am

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)