trailing stop non funzionante

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232919 quote
    Antonio 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

    #232941 quote
    robertogozzi
    Moderator
    Master

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

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 Garbinesi
1 year, 8 months ago.

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