macd 52 timefame W

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #238134 quote
    Antonio GarbinesiAntonio Garbinesi
    Participant
    Average

    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 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

Viewing 2 posts - 1 through 2 (of 2 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

macd 52 timefame W


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
1 year, 11 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 09/27/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...