Announcement

Collapse
No announcement yet.

Very newbie stuff

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Very newbie stuff

    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

  • #2
    historic = highest(20, high());

    Comment


    • #3
      Thanks Steve

      Appreciate it

      Comment

      Working...
      X