Syntaxe commande prix

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #82276 quote
    Sniper53
    Participant
    New

    Bonjour,
    Veillez SVP me donner le syntaxe de la variable fixe prix.

    J’ai trouvé la variable AT MARKET mais je voulais comparer le prix du marché à une variable que j ai défini a l’avance.

    Comme par exemple:

    IF prix marché = MA VARIABLE  THEN
    BUY 10 SHARES AT MARKET

    prix marché est la commande que je veux savoir

    Merci d avance
    Saad

    #82283 quote
    Nicolas
    Keymaster
    Master

    Puisque le code est lu au Close de chaque bougie, il faut simplement utiliser Close. Donc selon ton exemple :

    IF Close = MAVARIABLE  THEN
     BUY 10 SHARES AT MARKET
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Syntaxe commande prix


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Sniper53 @sniper53 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 5 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 10/08/2018
Status: Active
Attachments: No files
Logo Logo
Loading...