conversione sistema da pro real time a mt4

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #117771 quote
    valflare
    Participant
    New
    defparam cumulateorders = false
    
    // parameters
    HalfLength = 141
    AtrLength = 141
    AtrMultiplier = 2.4
    
    avg = average [1](close)
    
    sum = (HalfLength+1)*avg
    sumw = (HalfLength+1)
    k = HalfLength
    
    for j = 1 to HalfLength do
    k = k-1
    sum = sum+(k*avg[j])
    sumw = sumw+k
    next
    
    myrange = AverageTrueRange[AtrLength](close)*AtrMultiplier
    
    middleband = sum/sumw
    //higherband = buffer1+myrange
    lowerband = middleband-myrange
    
    TradingDay = opendayofweek = 1 or dayofweek = 2 or dayofweek = 3 or dayofweek = 4 or dayofweek = 5
    TradingTime = time = 090000 or time = 130000 or time = 170000
    
    IF TradingDay and TradingTime then
    if average [1] (close) crosses over lowerband then
    buy at market
    endif
    Endif
    
    if average [1] (close) crosses over middleband then
    sell at market
    endif
    
    set stop %loss 3
    set target %profit 3 // as insurance
    DAX-sistema-2-ok.itf
    #117775 quote
    robertogozzi
    Moderator
    Master

    >> Per chiarezza dei messaggi sul Forum di Prorealcode, separate le parti del vostro codice usando il pulsante per l’inserimento del testo del codice. <<
    Grazie 🙂

    #117776 quote
    robertogozzi
    Moderator
    Master

    Questo forum si occupa solo della piattaforma ProRealTime e conversioni verso di essa.

    Per altre conversioni richiedere i servizi a pagamento al link https://www.prorealcode.com/trading-programming-services/

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

conversione sistema da pro real time a mt4


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
valflare @valflare Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzi
6 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/24/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...