Differenti Stop/Gain per posizioni Long e Short

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

    Ciao a tutti,
    In un algoritmo è possibile inserire differenti Stop e Gain a seconda che la posizione aperta sia Long o Short?
    Grazie

    #159096 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Si, certo:

    IF CondizioniLong  THEN
       BUY 1 Contract at Market
       SET TARGET pPROFIT 100
       SET STOP   pLOSS   30
    ENDIF
    IF CondizioniShort THEN
       SELLSHORT 1 Contract at Market
       SET TARGET pPROFIT 130
       SET STOP   pLOSS   40
    ENDIF
    #159097 quote
    MICHMICH
    Participant
    Junior

    Ok!
    Grazie.

    #159637 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Buongiorno, post trasferito dal forum francese al forum italiano, per favore pubblica solo nella lingua del forum in cui stai postando, grazie.

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

Differenti Stop/Gain per posizioni Long e Short


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
MICH @mich Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by JC_BywanJC_Bywan
5 years, 8 months ago.

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