Climb the Ladder? :-)

homeplate2

New member
VIP
I was also trying to write a script which would show the price moving higher. I was using the wizard as a model.

Here is what I came up with so far. I have to go to bed as my Mom is getting pissed. If you can take a look at this and give me an idea as to where I'm going wrong that would be wonderful. Thank you again J007RMC and always thank you very, very much BenTen and mobius and spider, and everyone! For helping.

PS. I was going to call it Climb The Ladder but thought I would ask for suggestions as you all are better at this then I am right now.

Thank you


Code:
Code:
#Wizard input: price
#Wizard text: is at least
#Wizard input: percent
#Wizard text: %
#Wizard input: Choice
#Wizard text: than
#Wizard input: length
#Wizard text: bars ago


input price = close;
input percent = .015;
input Choice = {default greater, less};
input length = 1;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent1 = .025;
input Choice1 = {default greater, less};
input length1 = 3;

def x = 100*(price==price1 / price1[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = .50;
input Choice3 = {default greater, less};
input length = 5;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 1.25;
input Choice4 = {default greater, less};
input length = 7;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 3.00;
input Choice5 = {default greater, less};
input length = 11;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}
input price = close;
input percent = 7.00;
input Choice6 = {default greater, less};
input length = 14;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 10.00;
input Choice7 = {default greater, less};
input length = 16;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 12.00;
input Choice8 = {default greater, less};
input length = 18;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}


input price = close;
input percent = 15.00;
input Choice9 = {default greater, less};
input length = 21;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 18.00;
input Choice10 = {default greater, less};
input length = 22;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}


input price = close;
input percent =20.00;
input Choice11 = {default greater, less};
input length = 25;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}
 
Top