Strategia Azioni Italia Autogrill SPA

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #52087 quote
    Rosario SpinaRosario Spina
    Participant
    Average
    // Definizione dei parametri del codice
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate
    
    // Condizioni per entrare su posizioni long
    indicator1 = Average[10](close)[30]
    indicator2 = Average[52](close)[90]
    c1 = (indicator1 CROSSES OVER indicator2)
    indicator3 = Average[24](close)[60]
    indicator4 = Average[52](close)[90]
    c2 = (indicator3 < indicator4)
    
    IF c1 AND c2 THEN
    BUY 1 SHARES AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    indicator5 = Average[52](close)[90]
    c3 = (close CROSSES UNDER indicator5)
    
    IF c3 THEN
    SELL AT MARKET
    ENDIF
    
    // Condizioni per entrare su posizioni short
    indicator6 = Average[10](close)[30]
    indicator7 = Average[52](close)[90]
    c4 = (indicator6 CROSSES UNDER indicator7)
    indicator8 = Average[24](close)[60]
    indicator9 = Average[52](close)[90]
    c5 = (indicator8 > indicator9)
    
    IF c4 AND c5 THEN
    SELLSHORT 1 SHARES AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni short
    indicator10 = Average[52](close)[90]
    c6 = (close CROSSES OVER indicator10)
    
    IF c6 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    // Stop e target
    SET STOP pLOSS 1
    SET TARGET pPROFIT 1
    cattura-azioni-autogrill-spa-151022244084pcl.png cattura-azioni-autogrill-spa-151022244084pcl.png
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

Strategia Azioni Italia Autogrill SPA


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/11/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...