Prendre benefice sur chandelier en cours et non suivante

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #149731 quote
    Umbrapro
    Participant
    Junior

    Bonjour comment peut on faire en sorte de prendre un tp (rachat de position) lorsque le prix touche une moyenne mobile et au moment ou il la touche et non attendre la barre suivante (voir image).

     

    Merci

    bar-en-cours.png bar-en-cours.png mm-bar.png mm-bar.png
    #149842 quote
    Nicolas
    Keymaster
    Master

    Si il s’agit d’une vente à découvert (SELLSHORT), alors on peut placer un ordre de fermeture (rachat) conditionnel sur la valeur de la moyenne mobile :

    if shortonmarket then 
     exitshort at average[20] stop
    endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Prendre benefice sur chandelier en cours et non suivante


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Umbrapro @umbrapro Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 11/06/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...