Curva guadagni e perdite

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #193349 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Ho trascorso un pò di tempo a spulciare le varie domande sull’argomento nel forum e ho lette le risposte , sempre puntuali e efficaci di Roberto, ma non sono riuscito a capire il metodo che mi si adatta.

    Vorrei capire se è possibile un codice che permette al trading di andare a mercato se la curva sale da un certo periodo e vende se la curva scende a partire dalla data del long.

    Forse è un pò troppo, ma provarci non è peccato.

    Grazie

    #193353 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    // acquista se nelle ultime 100 candele non ci sono state operazioni negative
    //
    If summation[100](StrategyProfit >= StrategyProfit[1]) = 100 then
       Buy 1 contract at Market
    Endif
    //——————————————————
    // uscire se nelle ultime 20 candele l’operazione è sempre stata negativa
    //
    If OnMarket then
       If summation[20](PositionPerf < PositionPerf[1]) = 20 then
          Sell at Market
       Endif
    Endif
Viewing 2 posts - 1 through 2 (of 2 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

Curva guadagni e perdite


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 4 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 05/17/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...