stop loss ad orario

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

    Buonasera, vorrei inserire uno stop loss ad orario, cerco di spiegare meglio, se si apre un’operazione prima delle 10 e dopo le 10 è in guadagno di 20 pip allosra lo stop loss si piazza a 0 guadagno altimenti resta a 50 pip di perdita,

    come posso fare? grazie

    #188244 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    IF Not OnMarket THEN
       Flag     = 0
       Profitto = 0
    ENDIF
    IF Time = 100000 AND OnMarket THEN
       Flag = 1
    ENDIF
    Profitto = max(Profitto,PositionPerf * PositionPrice / PipSize)
    IF Flag = 1 AND  Profitto >= 20*PipSize THEN
       SELL      AT TradePrice STOP
       EXITSHORT AT TradePrice STOP
    ENDIF
    #188246 quote
    emanuele81emanuele81
    Participant
    Senior

    grazie Roberto

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 loss ad orario


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
4 years, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 02/14/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...