DIFERENTE TP PARA CORTOS O LARGOS

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50370 quote
    deleted_accountdeleted_account
    Member
    New

    No se si es sitio adecuado pero como podría poner un take profit diferent para cortos que para largos(si se puede)..gracias

    #50710 quote
    NicolasNicolas
    Keymaster
    Legend

    Tema trasladado al foro de trading automática (ProOrder).
    Para establecer un takeprofit diferente y stoploss dependiendo de la dirección de su operación, puede hacerlo de la siguiente manera:

    if longonmarket then 
     set target pprofit 30
     set stop ploss 60
    endif 
    
    if shortonmarket then 
     set target pprofit 50
     set stop ploss 90
    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

DIFERENTE TP PARA CORTOS O LARGOS


ProOrder: Trading Automático y Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 10/24/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...