I am looking at one of your indicators named :
dots~lines.efs
What is this indicator plotting?
Thanks,
Tp
ATTN: TRO
Moderator: moderators
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: 15564
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
- Tyler19
- rank: <50 posts
- Posts: 39
- Joined: Mon Feb 05, 2007 5:24 pm
- Reputation: 0
- Location: Burke, VA
- Gender:
- Contact:
//{{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;}
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;}
- TheRumpledOne
- rank: 10000+ posts
- Posts: 15564
- Joined: Sun May 14, 2006 9:31 pm
- Reputation: 3036
- Location: Oregon
- Real name: Avery T. Horton, Jr.
- Gender:
- Contact:
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.