trailing stop non funzionante

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232919 quote
    Antonio GarbinesiAntonio Garbinesi
    Participant
    Average

    if LONGONMARKET and open>close then//candela rossa

    myexit=max(myexit,low -(low/100*perc))
    endif
    if close crosses under myexit then
    sell at market
    endif

    non capisco perche a volte myexit non si aggiorna e resta piatto invece che crescere ,quando ad aesempio il low di oggi è maggiore di quello di ieri

    Screenshot-2024-05-22-115731.png Screenshot-2024-05-22-115731.png
    #232941 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Da quanto posso provare a capire dalla foto penso sia perché quando  myexit non viene superato (perché il calcolo è più basso) resta invariato essendoci max().

    #232973 quote
    Antonio GarbinesiAntonio Garbinesi
    Participant
    Average

    grazie Roberto hai ragione ,non avevo tenuto presente che comunque fin tanto che non ho un low piu alto del low dove si è generato l ultimo myexit questo non viene aggiornato

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

trailing stop non funzionante


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Antonio GarbinesiAntonio Garbinesi
2 years, 4 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 05/22/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...