stop reverse

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #155726 quote
    emanuele81emanuele81
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    emanuele81emanuele81
    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.
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

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 emanuele81emanuele81
5 years, 9 months ago.

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