Trade perdente, rientrare in inversione

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

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

    Grazie mille.

    #159605 quote
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
5 years ago.

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