Curva guadagni e perdite

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

    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
    robertogozzi
    Moderator
    Master

    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.

Curva guadagni e perdite


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 8 months ago.

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