Announcement

Collapse
No announcement yet.

onAction Between -50 and +50

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

  • onAction Between -50 and +50

    I need to evaluate a specific value that is between -50 and +50 and then return an onAction. What I am having trouble with is evaluating the value between the -50 and +50. I tried using the following code in the second else if below, but it does not appear to work. Any thoughts.

    Regards,
    zMendel

    PHP Code:

        
    if (
            
    vSMI 50
            
    onAction1(TradeTradeB1TradeB2)
        else if (
            
    vSMI < -50
            
    onAction2(TradeTradeB1TradeB2)
        else if (
            
    vSMI <= 50 || >= -50 
            
    onAction3();
            
        return 
    vSMI

  • #2
    You are missing semicolons on two of the onAction statements. I'm not sure that's the problem, but I would try fixing that first.

    Garth
    Garth

    Comment

    Working...
    X