Dukascopy
 
 
Wiki JStore Search Login

Explosion spread
 Post subject: Explosion spread Post rating: 0   New post Posted: Fri 17 Nov, 2017, 02:15 

User rating: 0
Joined: Mon 21 Nov, 2016, 15:15
Posts: 22
Location: France,
Bonjour,
J'aimerais savoir s'il existe un paramètre pour stopper provisoirement des exécutions d'ordres dans une stratégie lorsque les spreads augmentent soudainement.
Merci,
Olivier


 
 Post subject: Re: Explosion spread Post rating: 0   New post Posted: Fri 17 Nov, 2017, 12:29 
Visual JForex expert at Dukascopy
User avatar

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

Il n'y a pas vraiment de paramètre pret à l'emplois pour ceci mais vous pouvez simplement le développer :
Calculer le spread à certains temps où les risque d'élargissement augmentent (Tick Ask - Tick Bid)
Bloquer le flux si le spread dépasse le seuil souhaité.


 
 Post subject: Explosion spread Post rating: 0   New post Posted: Mon 20 Nov, 2017, 00:00 

User rating: 0
Joined: Mon 21 Nov, 2016, 15:15
Posts: 22
Location: France,
Je vous remercie pour votre retour.
J'ai donc essayé de me servir de vos éléments dans ma strat. Je suis parti de onTick pour calculer sur chaque tick le spread et une fois ce dernier supérieur à 10 pips j'aurais souhaité suspendre provisoirement la strat avant de la réactiver une fois le spread revenu sous les 10 pips. Malheureusement j'ai seulement pu arrêter la strat. Je n'arrive pas à suspendre provisoirement le flux.
Merci pour votre aide !
Bien à vous,
Olivier


 
 Post subject: Re: Explosion spread Post rating: 0   New post Posted: Mon 20 Nov, 2017, 00:02 

User rating: 0
Joined: Mon 21 Nov, 2016, 15:15
Posts: 22
Location: France,
le fichier de ma strat


 
 Post subject: Re: Explosion spread Post rating: 0   New post Posted: Mon 20 Nov, 2017, 13:39 

User rating: 0
Joined: Mon 21 Nov, 2016, 15:15
Posts: 22
Location: France,
Le voilà ;)


Attachments:
SPREAD.vfs [78.24 KiB]
Downloaded 9681 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: Explosion spread Post rating: 0   New post Posted: Mon 20 Nov, 2017, 14:12 
Visual JForex expert at Dukascopy
User avatar

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


Voici un exemple avec des commentaires...


Attachments:
SPREAD_V2.vfs [85.86 KiB]
Downloaded 6059 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: Explosion spread Post rating: 0   New post Posted: Tue 10 Dec, 2019, 20:07 

User rating: 0
Joined: Mon 21 Nov, 2016, 15:15
Posts: 22
Location: France,
Bonjour,
J'aurais plusieurs questions concernant votre exemple SPREAD_V2:
- la suspension du spread, si celui-ci est supérieur à 10 pips, est bien temporaire ?
- cette suspension s'applique-t-elle pour chaque pending orders ? Si nous en sommes à A3 part exemple cette suspension peut-elle avoir lieu ? Le block
"OuvrirLaVanne" "True" étant positionné avant A1 ?
Je vous remercie,
Olivier


 
 Post subject: Re: Explosion spread Post rating: 0   New post Posted: Wed 11 Dec, 2019, 15:57 

User rating: 0
Joined: Mon 21 Nov, 2016, 15:15
Posts: 22
Location: France,
Bonjour,
Je viens d'essayer de tester sur une strat simplifiée l'utilisation de spread_v2 et ça ne fonctionne pas. Je l'ai testé sur EUR/AUD pour un spread supérieur à 1. Normalement l'ordre ne devrait pas apparaître avec un spread supérieur à 1. Pourtant içi, dès le lancement de la strap l'ordre avec ses sl et tp sont sur le graph. Je ne trouve pas de solution..
Voiçi le fichier


Attachments:
testspread_v2.vfs [40.57 KiB]
Downloaded 5395 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.
 

Jump to:  

  © 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