Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD crossing Avg. at certain level

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

    MACD crossing Avg. at certain level

    Hi,

    Within a strategy, attempting to get a default MACD, crossing at...no higher / or lower than a certain level. For instance,
    if (CrossAbove( MACD(12, 26, 9) , MACD(12, 26, 9).Avg, 3 ))...." no lower than -0.0005 "
    ( for a long trade ).

    Have tried a few combinations, but no success. Any help appreciated.

    Lincor

    #2
    lincor, I'm not sure what variants you tried, but something below should get you going -

    Code:
    if (CrossAbove(MACD(12, 26, 9), MACD(12, 26, 9).Avg, 3) && MACD(12, 26, 9)[0] > -0.005)
        // do your stuff

    Comment


      #3
      Thanks Bertrand, appreciate your input.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      127 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      105 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      85 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      105 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      85 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X