I am very new at this and would appreciate your help
I am trying to make a very simple breakout algorithm but can't make it work
historic = highest(20, -1); //I am trying to get the highest high of the previous 20 days
current = high(0); //Trying to get the high of the day
if(current > historic){
enterTrade = true;
debugPrintln("Date " + getDay() + "/" + getMonth() + "/" + getYear());
debugPrintln("trade " + current + " - " + historic);
}
So far I am just trying to get the numbers right which I am not
Any help will be greatly appreciated
Thanks
I am trying to make a very simple breakout algorithm but can't make it work
historic = highest(20, -1); //I am trying to get the highest high of the previous 20 days
current = high(0); //Trying to get the high of the day
if(current > historic){
enterTrade = true;
debugPrintln("Date " + getDay() + "/" + getMonth() + "/" + getYear());
debugPrintln("trade " + current + " - " + historic);
}
So far I am just trying to get the numbers right which I am not
Any help will be greatly appreciated
Thanks
Comment