CHIUSURA POSIZIONE SE DOPO N BARRE SE NON FA TOT PUNTI

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

    Salve sono nuovo del forum e mi sto avvicinando da qualche mese alla programmazione di prt, Quindi mi scuso in anticipo se non dovessi rispettare qualche regola o aprire argomenti già affrontati ma non riesco a trovare quello che mi serve.

    Io vorrei dire al mio sistema che se dopo l’apertura,  long o short durante la prima barra di un tf 30M non va in guadagno di 35 punti di chiudere la posizione a barra in corso (che poi sarebbe all’apertura della successiva).

    grazie in anticipo a tutti

    #165643 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    If (BarIndex - TradeIndex) = 1 then
       If (PositionPerf * PositionPrice) < 35 then
          Exitshort at Market
          Sell      at Market
       Endif
    Endif
    #165646 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Scusami, 35 va scritto così:

    (35 * PipSize)
    #165647 quote
    bufu8611bufu8611
    Participant
    Junior

    grazie mille funziona

    robertogozzi thanked this post
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

CHIUSURA POSIZIONE SE DOPO N BARRE SE NON FA TOT PUNTI


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
bufu8611 @bufu8611 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by bufu8611bufu8611
5 years, 6 months ago.

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