Ottimizzare funzione tempo

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #175144 quote
    MauroProMauroPro
    Participant
    Veteran

    Quindi basta che non prendo in considerazione i dati da 206500 a 209500 e da 216500 a 219500?

    #175148 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Esatto, davi ignorarli.

    #175336 quote
    MauroProMauroPro
    Participant
    Veteran

    Ciao Roberto, ho provato la sostituzione di DEFPARAM FLAT BEFORE-AFTER con il codice TIME che hai riportato sopra e funziona (nella riga 2 hai inavvertitamente scritto sellshort al posto di exitshort).

    Ti volevo chiedere invece una cosa al volo: provando un TS su USDJPY ho visto che mi ritorna il profito/loss in yen. C’è qualche codice per trasformare gli yen in euro? Grazie

    #175342 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Scusa, non mi ero proprio accorto di quella svista. Ora modifico quella riga. Grazie.

    Non si può fare con istruzioni specifiche di ProRealTine.

    Puoi farlo tu manualmente mettendo il cambio di EurJpy e dividendo STRATEGYPROFIT:

    Once EurJpy = 129.30
    Euros       = STRATEGYPROFIT / EurJpy

    Non l’ho provato, ma dovrebbe funzionare.

    Ovviamente per avere una maggiore accuratezza dovrai aggiornare il cambio con una certa frequenza, almeno fino a quando PRT non consentirà di operare su più strumenti (se lo farà). In quel caso avresti il cambio in tempo reale.

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

Ottimizzare funzione tempo


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
MauroPro @mauropro Participant
Summary

This topic contains 18 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
5 years, 1 month ago.

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