dax 50 strategia

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #230428 quote
    Francesco RossiFrancesco Rossi
    Participant
    New

    Dax 1 secondo box 5 * pipsize

    indicato per esempio start level 18215 con trend up (1) .quindi short 18210 . il mercato è salito a 18220 e mi aspettavo che andasse corto a 18215 ,ma ha proseguito andando short sempre a 18210

    #230499 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non fa l’aggiornamento perché il prezzo NON supera MAI il livello precedente quando è a mercato.

    Aggiungi al tuo codice queste due righe e vedrai dove sono i livelli iniziali +- box:

    graphonprice StartLevel + Box coloured("Blue")
    graphonprice StartLevel - Box coloured("Red")
    #230502 quote
    Francesco RossiFrancesco Rossi
    Participant
    New

    mi scusi ,è sicuramente colpa mia perchè non capisco ,ma la prego mi spieghi

    se indico start level 18200, box 10 ,trend up(1) e il mercato sale a 18230 e poi ritraccia a 18220 il sistema mi aspetto che capisca che vada short a questo livello, ma ciò non avviene ,perchè?

    la ringrazio per la pazienza

    #230586 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Adesso è chiaro, avevo capito che il livello variasse solo quando era a mercato.

    Eccolo modificato:

    // Impedisce al sistema di tradare in giorni specifici della settimana
    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    ONCE trend = 1 // 1=UP, -1=DOWN
    ONCE StartLevel = 18215
    ONCE Box = 5*pipsize
    if not onmarket then
    IF Trend = 1 THEN //UP
    IF close <= (StartLevel - Box) THEN
    SELLSHORT 0.5 CONTRACT AT MARKET
    ENDIF
    ELSIF Trend = -1 THEN //DOWN
    IF close >= (StartLevel + Box) THEN
    BUY 0.5 CONTRACT AT MARKET
    ENDIF
    ENDIF
    ENDIF
    // trailing start
    IF Trend = -1 THEN
    IF close <= (StartLevel - 5*PipSize) THEN
    StartLevel = StartLevel - 5*PipSize
    ENDIF
    ELSIF Trend = 1 THEN
    IF close >= (StartLevel + 5*PipSize) THEN
    StartLevel = StartLevel + 5*PipSize
    ENDIF
    ENDIF
    // Stop e target
    SET STOP pLOSS 5
    SET TARGET pPROFIT 5
    //
    graphonprice StartLevel + Box coloured("Blue")
    graphonprice StartLevel - Box coloured("Red")
    #230610 quote
    Francesco RossiFrancesco Rossi
    Participant
    New

    la ringrazio ! domani mattina lo provo

Viewing 5 posts - 16 through 20 (of 20 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

dax 50 strategia


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 19 replies,
has 2 voices, and was last updated by Francesco RossiFrancesco Rossi
2 years, 5 months ago.

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