Trade perdente, rientrare in inversione

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #159603 quote
    danistutadanistuta
    Participant
    Senior

    In caso di trade perdente volevo rientrare subito con una posizione inversa, come posso scrivere questo codice?

    Grazie mille.

    #159605 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    IF StrategyProfit < StrategyProfit[1] THEN
       IF LongOnMarket[1] THEN
          SELLSHORT 1 Contract AT Market
       ELSIF ShortOnMarket[1] THEN
          BUY 1 Contract AT Market
       ENDIF
    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

Trade perdente, rientrare in inversione


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
danistuta @danistuta Participant
Summary

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

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