Forums › ProRealTime forum Français › Support ProOrder › Transformer un stop pLoss en Stop Profit › Reply To: Transformer un stop pLoss en Stop Profit
10/01/2018 at 3:17 PM
#81683
Merci pour ton retour Nicolas.
Du coup, ça donnerai ça? J’ai bon?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
timeframe(4 hours,updateonclose) indicator1 = CALL "Signal"(close) c1 = (indicator1 = 1) IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN BUY 1 CONTRACT AT MARKET ENDIF // Conditions pour ouvrir une position en vente à découvert indicator3 = CALL "Signal"(close) c2 = (indicator3 = -1) IF c2 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN SELLSHORT 1 CONTRACT AT MARKET ENDIF timeframe(1 minute,updateonclose) indicator1 = CALL "Signal"(close) c1 = (indicator1 = 1) IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN BUY 1 CONTRACT AT MARKET ENDIF // Conditions pour ouvrir une position en vente à découvert indicator3 = CALL "Signal"(close) c2 = (indicator3 = -1) IF c2 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN SELLSHORT 1 CONTRACT AT MARKET ENDIF SET stop ploss 35 set target pprofit 100 |