Dukascopy
 
 
Wiki JStore Search Login

Modification variable chaque fois que je gagne 100chf
 Post subject: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Sun 23 Aug, 2015, 20:24 
User avatar

User rating: 0
Joined: Tue 25 Nov, 2014, 17:45
Posts: 11
Bonjour,
J'ai une variable "Montant", je voudrais que chaque fois que je gagne 100CHF elle doit retourner a 0.005.
Exemple: je part avec un capital de 500:
- quand je gagne 100 (Equity 5100) je voudrais que la variable "Montant" retourne à 0.005.
- quand je gagne 100 (Equity 5200) je voudrais que la variable "Montant" retourne à 0.005.
- quand je gagne 100 (Equity 5300) je voudrais que la variable "Montant" retourne à 0.005.
- Etc......

En annexe le VFS que ne marche pas!
Est-ce que quelqu'un peut m'aider?

Cordialment,
Luca


Attachments:
B_0005_stop5300.vfs [20.4 KiB]
Downloaded 402 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Mon 24 Aug, 2015, 18:44 
User avatar

User rating: 0
Joined: Tue 25 Nov, 2014, 17:45
Posts: 11
Personne m'aide???
peut-etre que c'est plus facile si j'annexe ma strategie complete.

Je voudrait que chaque fois que je gagne 100CHF ma variable "Montant" retourne à "0.005"

Merci pour vos reponces
Cordialment,
Luca


Attachments:
strategieB_0005_stop5300.vfs [37.34 KiB]
Downloaded 400 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Thu 27 Aug, 2015, 15:29 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Bonjour,

Dans ta stratégie j'ai noté que le TP est mis à 32 pips sur un montant de départ à 5000 ce qui théoriquement veut dire qu'un profit de 100 ne sera jamais atteint vue que toute position sera fermé à un profit bien moins que ça (si profit y est). Donc à hauteur d'un TP de 32 pips, il faudrait que ton montant passe à 31250 (au lieu de 5000) pour réaliser un profit de 100CHF ou bien mettre un TP à 200pips sur la base d'un montant à 5000
Ceci dit, ton idée est faisable en utilisant:
Soit le trade event: en rajoutant une condition que si une position est fermée et que son profit en USD est plus de 100 --> Assign 0.005 à "Montant"
Soit en identifiant tes positions par des variables dédiées et vérifier leur P&L (pareil que la condition en haut) tu pourrait utiliser la methode "Oncandle" pour ça.

Globalement, il faudrait repenser ton idée par rapport à la première remarque ci-dessus.


 
 Post subject: Re: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Thu 27 Aug, 2015, 17:11 
User avatar

User rating: 0
Joined: Tue 25 Nov, 2014, 17:45
Posts: 11
Merci amine_chourou,

dans la strategie que j'ai mis en annexe tu peut noter que chaque fois que je gagne la variable Montant multiplie par 0.9 et quand je perde mutiplie par 1.1.
Donc ma variable change a chaque TRADE. Peut-etre que la variable Montant arrive meme a 500000 (je metterai un limit a 200000).
Donc je ne peut pas limiter le profit au dernier TRADE, je doit surveiller l'Equity (mais je ne sais pas comme faire...).

Je pense que serai plus facile dire que:
- quand la strategie demarre il faut noter l'EQUITY (exemple 5000), quand l'Equity arrive a EQUITY+100 (5100) , il faut arreter et redemarrer la strategie en automatique.
- quand la strategie redemarre il detecte l'EQUITY (5100), quand l'Equity arrive a EQUITY+100 (5200) , il faut arreter et redemarrer la strategie en automatique.
- etc....

J'ai un compte live et je voudrai verser un capital initial de 30000 chf.


 
 Post subject: Re: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Fri 28 Aug, 2015, 17:11 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Salut,

Dans ce cas, il suffit de rajouter un block qui vérifie le P&L en chiffres et d'assigner le montant de 5000 à la variable "Montant" une fois que l'objectif est atteint.
Ci-joint une version non testée, à toi d'apporter les ajustements nécessaire pour le fonctionnement que tu souhaites.


Attachments:
strategieB_0005_stop5300_V2.vfs [37.38 KiB]
Downloaded 386 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Sat 29 Aug, 2015, 12:21 
User avatar

User rating: 0
Joined: Tue 25 Nov, 2014, 17:45
Posts: 11
salut,

cette solution je l'avait déjà testée, mais n'est pas la bonne, tu assigne Montant 0.005 chaque fois que le profit du Dernier Trade est superieur a 100 CHF.
Mois je voudrais que chaque fois que l'Equity augment de 100 CHF ma stratégie redémarre avec un Montant 0.005.

Tu vois la différence?

Désolé si je n'arrive pas a être plus claire...


 
 Post subject: Re: Modification variable chaque fois que je gagne 100chf Post rating: 0   New post Posted: Sun 30 Aug, 2015, 13:21 
User avatar

User rating: 0
Joined: Tue 25 Nov, 2014, 17:45
Posts: 11
J'ai lu les anciennes forum en english (avec pas mal de problemes de comprension... :P ) , mais j'ai trouvé la solution!!!
Merci
Luca


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com