Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition problem

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

    Condition problem

    SOLVED

    Hi all,
    I'm having a problem with a condition and I not able to solve it

    example

    VariableB = Momentum(EMA((20)), 1)[0]; // it returns a double positive or negative

    if (VariableB < -0.1) // the condition does not work
    ....

    if (VariableB > -0.1) // the condition does not work
    ....

    I dont know where is the problem, seems the conditions does not accept decimal or negative values.
    Could you help me?

    Thank you

    Last edited by superg3; 05-15-2019, 12:33 AM.

    #2
    Hello superg3,

    Thanks for your post.

    It says solved at the top of your post.

    If you still need assistance, please post again.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    89 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    74 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    72 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    60 views
    0 likes
    Last Post CarlTrading  
    Working...
    X