Differents SET STOP et SET PPROFIT
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime forum Français › Support ProOrder › Differents SET STOP et SET PPROFIT
Ici, de cette façon, ils sont différents en pourcentage long et court.
|
1 2 3 4 5 6 7 |
buy 1 contract at market set target %profit 1.5 set Stop %loss 1.5 sellshort 1 contract at market set target %profit 1.5 set stop %loss 1.5 |
Pardon Nicolas je ne comprend pas votre réponse.J’ai écrit en fin de mon programme différents stops et profits sur les ordres d’achats et de ventes. Est ce que chacun des différents stop et profits sont bien différenciés dans le programme?
Quand je backtest soit a l’achat soit a la vente les statistiques me conviennent mais quand je backtest avec les deux en même temps la statistique baisse au dessous de la moyenne.J ai juste un profit un peu plus élevé lorsque je suis a la vente.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
//Ordre d'achat IF c5 and c7 THEN BUY n CONTRACT AT MARKET ENDIF //Profits A L'ACHAT SET TARGET PPROFIT 140 SET STOP PLOSS 8 //Ordre de sortie IF c8 THEN SELL AT MARKET ENDIF //Ordre de vente //IF c6 and c8 THEN //SELLSHORT n CONTRACT AT MARKET //ENDIF //IF c7 THEN //EXITSHORT AT MARKET //ENDIF //Profits a la vente //SET TARGET PPROFIT 180 //SET STOP PLOSS 8 |
Il faut associer ces niveaux de profit et de stop une seule fois, lorsqu’on passe l’ordre correspondant, donc inclure les instructions SET TARGET et SET STOP dans le bloc conditionnel qui lance l’ordre :
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
//Ordre d'achat IF c5 and c7 THEN BUY n CONTRACT AT MARKET //Profits A L'ACHAT SET TARGET PPROFIT 140 SET STOP PLOSS 8 ENDIF //Ordre de sortie IF c8 THEN SELL AT MARKET ENDIF //Ordre de vente IF c6 and c8 THEN SELLSHORT n CONTRACT AT MARKET //Profits a la vente SET TARGET PPROFIT 180 SET STOP PLOSS 8 ENDIF IF c7 THEN EXITSHORT AT MARKET ENDIF |
Find exclusive trading pro-tools on