stop reverse

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #155726 quote
    emanuele81
    Participant
    Senior

    Buonasera è possibile inserire uno stop reverse solo su operazioni che sono in perdita?

    Se si qualcuno mi può dire come scrivere il codice?

    grazie

    #155736 quote
    robertogozzi
    Moderator
    Master

    Eccolo (non provato):

    If MyLongConditions and ((not OnMarket) or (ShortOnMarket and (PositionPerf < 0))) Then
       Buy at Market
    Endif
    If MyShortConditions and ((not OnMarket) or (LongOnMarket and (PositionPerf < 0))) Then
       Sellshort at Market
    Endif
    #155740 quote
    emanuele81
    Participant
    Senior

    grazie ora lo provo

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

stop reverse


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
emanuele81 @emanuele81 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by emanuele81
5 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/30/2020
Status: Active
Attachments: No files
Logo Logo
Loading...