semplice formula che non funziona

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #107370 quote
    xxxalessandroxxxalessandro
    Participant
    Junior

    Semplice: comprami dopo due barre rosse, ma in realtà , non funziona come mai? (a volte compra dopo una barra verde!)

    grazie x chi mi risponde

    DEFPARAM CumulateOrders = false
    ////////////////////////////////////////////////////////////
    r= co and co3
    //////////////////////////////////////////////////////////////
    co=close[0]<open[0]
    co3=close[1]<open[1]
    ///////////////////////////////////////////////////////////////////////
    IF r THEN
    BUY 10000 cash AT MARKET
    ENDIF
    
    cov=close[1]>open[1] and close[0]>open[0]
    
    IF cov THEN
    SELL AT MARKET
    ENDIF
    
    //INVESTIRE PER TOT GIORNI
    if cov then
    SELL AT MARKET
    endif
    #107373 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    > Per chiarezza dei messaggi sul Forum di Prorealcode, separate le parti del vostro codice usando il pulsante “insert code PRT”  per l’inserimento del testo del codice. <<

    Grazie.

    Inoltre ho spostato l’argomento nel supporto ProOrder perché è una strategia, mentre ProBuilder è per gli indicatori.

    #107374 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La linea 3 spostala alla 7, che valore assumne “r” se le condizioni cui si riferisce vengono dopo?

    A che servono le righe 18-21, sono un duplicato delle 14-16, una volta uscito non può uscire ancora.

    #107383 quote
    xxxalessandroxxxalessandro
    Participant
    Junior

    grazie

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

semplice formula che non funziona


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by xxxalessandroxxxalessandro
7 years ago.

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