Media Mobile 50 con spostamento indietro a 2 periodi

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #13627 quote
    MaxMax
    Participant
    Average

    Qui di seguito una domanda inviata a ProRealTime :

    Buongiorno
    sto cercando di programmare un sistema automatico che prevede l’utilizzo di una media mobile semplice a 2 periodi con spostamento indietro di 2 periodi sul grafico, manon riesco a programmare il codice dello spostamento della media. avrei bisogno del Vs. aiuto.

    un esempio di risposta :

    // parametri//
    MM50 = average[50](close)
    MM2 = average[2](close[2])    
    
    // Condizioni per entrare su posizioni long
    IF NOT longOnMarket AND close > MM50 and close < MM2  THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    // Stop e target: Inserisci qui i tuoi stop di protezione e profit target
    SET STOP PLOSS 50
    set target pprofit 50
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

Media Mobile 50 con spostamento indietro a 2 periodi


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Max @max Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/23/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...