eSignal INDICATOR UPDATES:
TRO_CANDLECOLOR2
TRO_SM_CONTROL_PMSM6
I added the iHistory input switch to TRO_CANDLECOLOR2 and TRO_SM_CONTROL_PMSM6 so they load faster.
The default is FALSE so the indicators will load as fast as possible.
If iHistory is set to TRUE then the indicators will calculate all the history for the indicator.
EFS attached.
NOTE: TRO_CANDLECOLOR2 updated again 4/2/2007
eSignal INDICATOR UPDATES
Moderator: moderators
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15561
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3035
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
eSignal INDICATOR UPDATES
- Attachments
-
- TRO_SM_CandleColor2.EFS
- (20.4 KiB) Downloaded 727 times
-
- TRO_SM_CONTROL_PMSM6.EFS
- (49.32 KiB) Downloaded 722 times
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15561
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3035
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
- Patch
- rank: 500+ posts
- Posts: 941
- Joined: Sat Jan 06, 2007 6:13 pm
- Reputation: 0
- Location: Virginia
- Real name: Jeff
- Gender:
- Contact:
TRO and EVERYONE
IT IS GOOD TO BE BACK ON THE NET WITH KRESLIK.
JEFF
In VA
Patch the Pirate
In the Pirate's Cove
IT IS GOOD TO BE BACK ON THE NET WITH KRESLIK.
JEFF
In VA
Patch the Pirate
In the Pirate's Cove
ENOUGH being a Yalie for me Back to the Sea. "What i can lose, i can win" "YES YOU CAN" - dragon33 -"Pick one method and one pair and stick with them until you master it. "The choice is yours - success or failure." TRO
I believe there maybe a logic flaw in most of the trend counters:
if( cBarState ==BARSTATE_NEWBAR) {
if( tTrendB == tTrendB1 ) { xTrendB = xTrendB + 1 ; } // TREND COUNT CODE
else { xTrendB = 1 ; } // TREND COUNT CODE
tTrendB1 = tTrendB ; // TREND COUNT CODE
}
This looks at the chart for a new bar, then counts the last trend counter.
When the interval is less then the chart not counts happen.
When the interval is greater then the chart the trend is counted repeatedly.
if( cBarState ==BARSTATE_NEWBAR) {
if( tTrendB == tTrendB1 ) { xTrendB = xTrendB + 1 ; } // TREND COUNT CODE
else { xTrendB = 1 ; } // TREND COUNT CODE
tTrendB1 = tTrendB ; // TREND COUNT CODE
}
This looks at the chart for a new bar, then counts the last trend counter.
When the interval is less then the chart not counts happen.
When the interval is greater then the chart the trend is counted repeatedly.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15561
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3035
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
NP. I have not come up with a fix for that yet, but I did have a couple others that I added.
=============================
function fPctInRange( uPrice, uHigh, uLow ) {
//Sometimes fPctInRange returns bad data when uHigh and uLow match at the start of bars.
oPct = (uPrice - uLow) / (uHigh -uLow) * 100;
if ( oPct > 100 ) { oPct = 100; }
if (oPct < 0 ) { oPct = 0; }
if ( isNaN( oPct ) ) { oPct = 0; }
oPct = (Math.round(oPct * 100)) * .01 ; //Rounds to 2 decimal precision
// oPct = ( oPct - 50 ) * 2 ; // scale -100 to + 100
return ( oPct.toFixed(0) ) ;
}
=======================
Rewrote the script to use a for loop and case statements.
Mostly trying to work up my java/efs script skills.
Lots of interesting ideas and insights in the scripts and site.
Thanks.
=============================
function fPctInRange( uPrice, uHigh, uLow ) {
//Sometimes fPctInRange returns bad data when uHigh and uLow match at the start of bars.
oPct = (uPrice - uLow) / (uHigh -uLow) * 100;
if ( oPct > 100 ) { oPct = 100; }
if (oPct < 0 ) { oPct = 0; }
if ( isNaN( oPct ) ) { oPct = 0; }
oPct = (Math.round(oPct * 100)) * .01 ; //Rounds to 2 decimal precision
// oPct = ( oPct - 50 ) * 2 ; // scale -100 to + 100
return ( oPct.toFixed(0) ) ;
}
=======================
Rewrote the script to use a for loop and case statements.
Mostly trying to work up my java/efs script skills.
Lots of interesting ideas and insights in the scripts and site.
Thanks.
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15561
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3035
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
Click here
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.
Please do NOT PM me with trading or coding questions, post them in a thread.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.