TotalPrice

Viewing 3 posts - 1 through 3 (of 3 total)
  • #249223

    Bonjour,

    Que représente l’instruction “TotalPrice”?  Elle n’est pas définie dans le Guide de Programmation mais utilisée dans le premier exemple du même guide?

    ONCE PreviousStatus = 0
    IF BarIndex = 0 THEN
    XClose = TotalPrice
    XOpen = (Open + Close) / 2
    ELSE
    XClose = TotalPrice
    XOpen = (XOpen[1] + Xclose[1]) / 2
    ENDIF
    IF XClose >= XOpen THEN
    IF PreviousStatus <> 1 THEN
    BUY 1 SHARES AT MARKET
    PreviousStatus = 1
    ENDIF
    ELSE
    IF PreviousStatus <> -1 THEN
    SELLSHORT 1 SHARES AT MARKET
    PreviousStatus = -1
    ENDIF
    ENDIF

    #249224

    Voir ci-joint

    1 user thanked author for this post.
    #249228

    Merci beaucoup pour votre réponse. J’ai bien trouvé le document expliquant cela ce qui m’aidera dans le futur.

     

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login