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 To Be Sorted 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, 8:44am   #1
New Member
 
tradingjamie's Avatar
 
Member Since Jan 2008
Default 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 29, 2012, 10:42pm   #2
Veteran Member
 
gedward3's Avatar
 
Member Since Jun 2005
Default 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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 2:21pm
prorealtime coding saidtomuch Techies Corner 1 Feb 21, 2011 10:05am
ProRealTime coding help travelfrog Techies Corner 1 Dec 21, 2010 12:24pm
Need Help with ProRealTime Indicator Coding lbz321 Trading Software 0 Oct 8, 2010 8:43pm
Envelope guibraga Trading Software 6 Jun 20, 2004 5:50am