Creare condizione TS profit factor

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #163600 quote
    MauroProMauroPro
    Participant
    Veteran

    Ciao Roberto, vorrei provare a costruire un filtro di performance decay più semplice che non rischi di bloccarsi. Ho bisogno di sapere preliminarmente come scrivere due punti base.

    1 che formula uso per sapere il profitto monetario dei singoli trades passati\chiusi? (in modo che poi ci posso fare delle operazioni) Es. voglio sapere quanto ha guadagnato/perso singolarmente il quinto trade fa (poi controllo con graph). Si usa strategyProfit?

    2 per sapere, di un certo numero di trades passati, quanti sono stati positivi e quanti negativi, ho provato a scrivere questa formula ma non funziona, probabilmente non si riferisce ai trades chiusi soltanto (la puoi riscrivere corretta)?

    [sempre che non sia più semplice  inventare dei contatori flag da inserire dopo le uscite]

    period=20
    win= positionPerf>0
    lose= positionPerf<0

    opsGain=summation[period](win)                   //numero di operazioni in gain dell’ultimo periodo
    opsLoss=summation[period](lose)

    #163604 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    1 – Si, fai la differenza tra StrategyProfit corrente e quella precedente che è StrategyProfit[1]

    2 – No, devi fare come ho fatto io per il calcolo del profit factor,  devi usare i vettori (array) dove salvare, alla chiusura di ogni operazione i valori in profitto e perdita.

Viewing 2 posts - 16 through 17 (of 17 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

Creare condizione TS profit factor


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
MauroPro @mauropro Participant
Summary

This topic contains 16 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 7 months ago.

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