Screener de divergencias entre el precio y el MACD

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #13896 quote
    RafaelN
    Moderator
    Senior

     

    Aquí os dejo una solicitud recibida por ProRealTime, se trata de un screener de divergencias entre el precio y el MACD

    Hi,

    I would like to get a proscreener that detects divergencies between the prize and the macd indicator.
    If it is possible not only in day trading if not in 3 hour, 2 hours, 1 hour….. I mean in different temporal moments

    Thank you so much

    Y aquí una proposición de respuesta:

    res=0
    DivergencePeriod=20
    
    myMACDSignal=MACD[12,26,9](close)
    
    if close < lowest[DivergencePeriod](close[1]) and myMACDSignal > lowest[DivergencePeriod](myMACDSignal[1]) then
    res=1
    endif
    
    if  close > highest[DivergencePeriod](close[1]) and myMACDSignal < highest[DivergencePeriod](myMACDSignal[1]) then
    res=-1
    endif
    
    screener[res=1 or res=-1]
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Screener de divergencias entre el precio y el MACD


ProScreener: Buscadores de Mercado y Rastreo

New Reply
Author
author-avatar
RafaelN @rafaeln Moderator
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProScreener: Buscadores de Mercado y Rastreo
Language: Spanish
Started: 09/29/2016
Status: Active
Attachments: No files
Logo Logo
Loading...