Page 1 of 1

ATTN: TRO

Posted: Sat Feb 17, 2007 10:12 am
by Tyler19
I am looking at one of your indicators named :

dots~lines.efs

What is this indicator plotting?

Thanks,
Tp

Posted: Sun Feb 18, 2007 5:52 am
by TheRumpledOne
My indicators usually start with TRO_ so please post the code so I can look and see what it's doing.

Posted: Sun Feb 18, 2007 10:35 am
by Tyler19
//{{EFSWizard_Declarations

var vEMA4 = new MAStudy(4, 0, "Close", MAStudy.EXPONENTIAL);
var vEMA20 = new MAStudy(20, 0, "Close", MAStudy.EXPONENTIAL);
var vPriceOsc3_10 = new OscStudy(3, 10, "Close", false);
var vEMA9 = new MAStudy(9, 0, "Close", MAStudy.EXPONENTIAL);
var vEMA36 = new MAStudy(36, 0, "Close", MAStudy.EXPONENTIAL);
var vLastAlert = -1;



function preMain() {
setPriceStudy(true);
setStudyTitle("dots~line");
}


function main() {
if (vEMA4.getValue(MAStudy.MA) >= vEMA20.getValue(MAStudy.MA) &&
vPriceOsc3_10.getValue(OscStudy.OSC) < 0)
onAction1()
else if (
vEMA4.getValue(MAStudy.MA) <= vEMA20.getValue(MAStudy.MA) &&
vPriceOsc3_10.getValue(OscStudy.OSC) > 0)
onAction2();


if (vEMA4.getValue(MAStudy.MA) >= vEMA20.getValue(MAStudy.MA)) onAction3()
else if (vEMA4.getValue(MAStudy.MA) <= vEMA20.getValue(MAStudy.MA)) onAction4();


if (vEMA9.getValue(MAStudy.MA) >= vEMA36.getValue(MAStudy.MA)) onAction5()
else if (vEMA9.getValue(MAStudy.MA) <= vEMA36.getValue(MAStudy.MA)) onAction6();
return null;
}







function postMain() {
}
function onAction1(){
drawShapeRelative(0, 30, Shape.CIRCLE, "", Color.RGB(0,255,255), Shape.RELATIVETOBOTTOM);
vLastAlert = 1;}

function onAction2() {
drawShapeRelative(0, 30, Shape.CIRCLE, "", Color.RGB(0,255,255), Shape.RELATIVETOBOTTOM);
vLastAlert = 2;}


function onAction3() {
drawShapeRelative(0, 20, Shape.CIRCLE, "", Color.RGB(0,255,0), Shape.RELATIVETOBOTTOM);
vLastAlert = 1;}

function onAction4() {
drawShapeRelative(0, 20, Shape.CIRCLE, "", Color.RGB(255,0,0), Shape.RELATIVETOBOTTOM);
vLastAlert = 2;}

function onAction5(){
drawShapeRelative(0, 10, Shape.SQUARE, "", Color.RGB(0,255,0), Shape.RELATIVETOBOTTOM);
vLastAlert = 1;}
function onAction6() {
drawShapeRelative(0, 10, Shape.SQUARE, "", Color.RGB(255,0,0), Shape.RELATIVETOBOTTOM);
vLastAlert = 2;}

Posted: Mon Feb 19, 2007 6:58 am
by TheRumpledOne
That's not one of mine... that's for sure!

Has something to do with EMA(4) CROSSING EMA(20) and the PRICE OSCILLATOR.