TotalPrice

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #249223 quote
    Dom100
    Participant
    New

    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 quote
    GraHal
    Participant
    Master

    Voir ci-joint

    Iván González thanked this post
    Capture4.jpg Capture4.jpg
    #249228 quote
    Dom100
    Participant
    New

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

    GraHal thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

TotalPrice


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Dom100 @dom100 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Dom100
7 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 07/31/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...