Announcement

Collapse
No announcement yet.

adding pip.

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

  • adding pip.

    Hi , I am trading the forex and i would like to know how to add pips(points) to my stratregy.

    if ( close(-1) > nSlow + "10 pips") {
    nConditionA = 1;
    }
    else if ( close(-1) < nSlow ) {
    nConditionA = -1;

    thanks for your help.

  • #2
    medx
    You need to define a "pip" as a variable
    var pip = 0.0001; (or whatever value you want)
    At that point you can set the conditions as
    if ( close(-1) > nSlow + (10* pip) {
    nConditionA = 1;
    }

    Hope this helps
    Alex

    Comment

    Working...
    X