macd 52 timefame W

Forums ProRealTime forum Italiano Supporto ProOrder macd 52 timefame W

Viewing 2 posts - 1 through 2 (of 2 total)
  • #238134

    TIMEFRAME(weekly )

    myhistoq=MACD[24,52,18](close)
    myaverageq =Average[y](myhistoq)
    conditionlong1 =0
    conditioncrossl=0
    if myhistoq>myaverageq THEN
    conditionlong1=1
    endif

    if myhistoq crosses over myaverageq and myhistoq<0 THEN
    conditioncrossl=1
    endif

    TIMEFRAME(daily)
    mysegnale= CALL “Il Mio macd 52 BASE(3)”[x]
    mymyindicator = CALL “stoc. up/down”[14, 3, 3](close)
    if ipotesi =1 THEN
    if mysegnale =-1 and conditionlong1=1 then
    buy 1000 cash AT MARKET
    ENDIF
    ENDIF
    IF ipotesi =2 THEN
    if mymyindicator =1 and conditionlong1=1 then
    buy 1000 cash AT MARKET
    ENDIF
    ENDIF
    if ipotesi =3 then
    if (close CROSSES OVER Average[21](close) and conditionlong1=1 )then
    buy 1000 cash AT MARKET
    ENDIF
    endif
    if ipotesi=4 THEN
    if mysegnale =1 then
    buy 1000 cash AT MARKET
    ENDIF
    endif
    if ipotesi =5 THEN
    if conditioncrossl=1 then
    buy 1000 cash AT MARKET
    ENDIF
    ENDIF
    if ipotesi =6 THEN
    if mysegnale =1 and conditionlong1=1 then
    buy 1000 cash AT MARKET
    ENDIF
    endif
    if trailingstop=1 then

    if NOT ONMARKET then
    myexit=0
    endif
    if LONGONMARKET and open>close then
    myexit=max(myexit,low-(low/100)*perc)
    endif
    ENDIF
    if close crosses under myexit then
    sell at market
    endif

    GRAPHONPRICE myexit
    GRAPH conditionlong1 COLOURED(“grenn”)

    SET STOP %LOSS 5

    non capisco perche mi appare la scritta “si è verificato un errore durante l esecuzione del tuo back test ecc….”

    #238210

    Per favore allega il file ITF, così è completo di variabili ed indicatori.

     

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login