I draw trend lines on an indicator at the botton of my chart, a CCI bottom panel from Woodies CCI CLUB,and after aI draw it, just use segment since I'm connecting 2 points, I unclick and the line disappears. I can draw on the candle portion up above and lines stay but not on CCI panel. Is it that it is an efs downloaded from Woodies club and cant accept such lines or should I just forget it.
Announcement
Collapse
No announcement yet.
trend ines
Collapse
This topic is closed.
X
X
-
tergar2
If the indicator is painting the background then that could be covering the trend lines you are drawing. In that case right click the chart, select Properties and put a check mark in Draw Lines On Top of Price. That should make the trend lines visible again
Alex
-
Draw Lines on Top of Price
Alex,
In my chart window, I have a Moving Average. I see that eSignal defaults to drawing the PRICE candles OVER the Moving Average indicator.
Is there any way to toggle this, so that my moving average is drawn on top of the price candles?
JOHN
Comment
-
John
At this time there is no way to do that. If you would like to submit a suggestion send an email to [email protected]
Alex
Comment
-
The feature, DRAW LINES ON TOP OF PRICE appears to be "broken"!!
I am using version 8.0 build 779.
Unless that means something else.... which it seems to... very confusing.
If you use a line drawing tool, the line is drawn over the price but if a study draws a line, the line is "below" the price.
Either ALL LINES should be drawn over OR studies should have this as part of their properties too.
Last edited by buzzhorton; 07-26-2006, 06:19 AM.
Comment
-
buzzhorton
That setting applies only to Trendlines. All graphic objects drawn by an efs (with the exception of the addLineTool() functions which draw Trendlines) will plot/draw underneath the price bars
As I indicated in my prior reply if you would like to make a suggestion send an email to [email protected]
Alex
Comment
-
Thanks Alex... you gave me an idea!
I modifed my TRO_HLINE study to use addLineTool.
I call the new study TRO_HLINETOOL.
See the magenta line at $36.40 is over the price bars!
One thing though... the line "vanishes" and then returns.
Is there something else I need to know?
Perhaps only update on close of bar?
PHP Code:
/***********************************************
TRO_HLineTool
prompts the user for the price and the color and plots the horizontal line.
Modifying Programmer: Avery T. Horton, Jr. aka *************
Color.white
Color.black
Color.darkgrey
Color.grey
Color.lightgrey
Color.navy
Color.blue
Color.aqua
Color.cyan
Color.teal
Color.darkgreen
Color.green
Color.lime
Color.olive
Color.khaki
Color.brown
Color.purple
Color.red
Color.magenta
Color.maroon
Color.yellow
Color.lightyellow
Color.paleyellow
addLineTool(LineTool.MOB, x, y, name);
addLineTool(LineTool.ELLIPSE, x1, x2, name);
addLineTool(LineTool.HORZ, y, nThickness, Color, name);
addLineTool(LineTool.VERT, x, nThickness, Color, name);
addLineTool(LineTool.REGRESSION, x1, x2, nThickness, Color, name);
addLineTool(LineTool.ARROW, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.SEGMENT, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.RAY, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.EXTENDED, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.CIRCLE, x1, y1, x2, y2, nThickness, Color, name);
nThickness: Line thickness in pixels.
Color: Valid color value.
name: Unique identifier for this line tool.
********************************************/
debugClear();
function preMain() {
setPriceStudy(true);
setStudyTitle("TRO_HLineTool");
setCursorLabelName("HLineTool", 0);
}
askForInput();
var iPrice = new FunctionParameter("iPrice", FunctionParameter.NUMBER);
iPrice.setDefault( 1 );
var iColor = new FunctionParameter("iColor", FunctionParameter.COLOR);
iColor.setDefault( Color.blue );
function main( iPrice , iColor ) {
if(iPrice==null) return;
// addBand( iPrice, PS_SOLID, 1, iColor ,"HorzLine1")
var vBar = getCurrentBarIndex() ;
addLineTool(LineTool.EXTENDED, vBar, iPrice, vBar, iPrice, 1, iColor ,"HorzLine1" );
return formatPriceNumber(iPrice) ;
}
Last edited by buzzhorton; 07-28-2006, 01:05 PM.
Comment
-
buzzhorton
At this time there is an issue with the tagName parameter in addLineTool() which is supposed to be fixed in one of the next releases.
In the mean time an easy way to resolve this issue is to use either removeLineTool() or clearLineTool() before using addLineTool()
Alex
Comment
-
buzzhorton,
Since you are using the same "tag" for the line when you draw it, at every tick it will switch state from being drawn to disapperaing (disappears as it draws over itself).
One possible fix is just to track the state internally to your efs:
Function preMain(){
nDrawn = 0;
}
Function main(){
.
.
.
if (nDawn == 0){
addLineTool(....);
nDrawn++;
}
}
You can then set nDrawn back to zero if you ever do want to get rid of the original line and draw a new one someplace else, or you could add nDraw as a paramter to the "tag" and draw multiple lines.
GarthGarth
Comment
-
Thank You.
I updated the code:
PHP Code:
/*****************************************
TRO_HLineTool
prompts the user for the price and the color and plots the horizontal line.
Modifying Programmer: Avery T. Horton, Jr. aka *************
Color.white
Color.black
Color.darkgrey
Color.grey
Color.lightgrey
Color.navy
Color.blue
Color.aqua
Color.cyan
Color.teal
Color.darkgreen
Color.green
Color.lime
Color.olive
Color.khaki
Color.brown
Color.purple
Color.red
Color.magenta
Color.maroon
Color.yellow
Color.lightyellow
Color.paleyellow
addLineTool(LineTool.MOB, x, y, name);
addLineTool(LineTool.ELLIPSE, x1, x2, name);
addLineTool(LineTool.HORZ, y, nThickness, Color, name);
addLineTool(LineTool.VERT, x, nThickness, Color, name);
addLineTool(LineTool.REGRESSION, x1, x2, nThickness, Color, name);
addLineTool(LineTool.ARROW, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.SEGMENT, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.RAY, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.EXTENDED, x1, y1, x2, y2, nThickness, Color, name);
addLineTool(LineTool.CIRCLE, x1, y1, x2, y2, nThickness, Color, name);
nThickness: Line thickness in pixels.
Color: Valid color value.
name: Unique identifier for this line tool.
***********************************/
debugClear();
function preMain() {
setPriceStudy(true);
setStudyTitle("TRO_HLineTool");
setCursorLabelName("HLineTool", 0);
nDrawn = 0;
}
askForInput();
var iPrice = new FunctionParameter("iPrice", FunctionParameter.NUMBER);
iPrice.setDefault( 1 );
var iColor = new FunctionParameter("iColor", FunctionParameter.COLOR);
iColor.setDefault( Color.blue );
function main( iPrice , iColor ) {
if(iPrice==null) return;
// addBand( iPrice, PS_SOLID, 1, iColor ,"HorzLine1")
var vBar = getCurrentBarIndex() ;
var vTag = vTag + 1 ;
if (nDrawn == 0){
addLineTool(LineTool.EXTENDED, vBar, iPrice, vBar, iPrice, 1, iColor , ""+vTag );
nDrawn++;
}
return formatPriceNumber(iPrice) ;
}
Last edited by buzzhorton; 07-28-2006, 01:05 PM.
Comment
Comment