Comment passer un ordre en respectant 3 conditons ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5089 quote
    frooggs
    Participant
    Average
    // Conditions pour ouvrir une position en vente à découvert
    indicator3 = RSI[14](close)
    c3 = (indicator3 CROSSES OVER 30)
    indicator4 = CCI[4]
    c4 = (indicator4 crosses under -100)
    mme1 = ExponentialAverage[10](close)
    mme2 =ExponentialAverage[90](close)
    c5 =mme1<mme2
    
    IF c5 or c3 or c4 then
    IF not shortonmarket then
    SELLSHORT 1 CONTRACT AT MARKET
    endif
    endif
    
    
    // Stops et objectifs
    SET STOP pTRAILING 50
    SET TARGET pPROFIT 27

    Exemple tout simple juste pour dire que le système ne tient pas compte le fait d’attendre d’être en dessous de moyenne mobile longue pour déclencher un SELL

    Pourtant le manuel de Prorealtime est très explicite !!!

    Avez vous une idée ?

    #5091 quote
    frooggs
    Participant
    Average

    En fait pour plus précis

    Il faudrait qu’à partir du moment ou la MM courte passe en dessous de la MM longue (condition prioritaire), qu’il soit possible de passer un ordre SELL si C3   ou   C4    venaient à confirmer

     

    Merci de votre aide

    #5092 quote
    Nicolas
    Keymaster
    Master

    Tu utilises ici des conditions OU pour lancer ton ordre SELLSHORT, donc 1 de tes 3 conditions seulement doit être vrai pour que l’ordre s’exécute.

    En fait tu devrais avoir :

    IF c5 AND (c3 or c4) then
    #5094 quote
    frooggs
    Participant
    Average

    Super merci

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

Comment passer un ordre en respectant 3 conditons ?


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
frooggs @frooggs Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by frooggs
9 years, 10 months ago.

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