Announcement

Collapse
No announcement yet.

Stochastic question

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

  • Stochastic question

    I want to customize 2 stochastics... on my indicator.. but then i do a return new Array (dThisMA, dThisMA3); only one of the lines gets customized.

    Thought, if i do return dThisMA and return dThisMA3 one at each time the code seams to be correct. Can u help me figure out that is happening?

    Best regards
    Attached Files

  • #2
    garaujo
    As far as I can see dThisMA4 is always less than dThisMA3 consequently the condition if(dThisMA4 < dThisMA3) is always evaluating to true and coloring the plot of dThisMA3 in green.
    To verify this add the statement debugPrintln(dThisMA4+" "+dThisMA3); in the line just above the conditions that check dThisMA3 and dThisMA4.
    Alex

    Comment

    Working...
    X