Dukascopy
 
 
Wiki JStore Search Login

Comparer avec une bougie precedente
 Post subject: Comparer avec une bougie precedente Post rating: 0   New post Posted: Wed 04 Sep, 2013, 12:59 
User avatar

User rating: 0
Joined: Tue 03 Jul, 2012, 06:44
Posts: 11
Location: Burundi, Bujumbura
Bonjour je debute et j'ai un peu de mal a me situer.
J'aimerais savoir comment comparer le cours "live" avec par exemple le plus haut de la bougie precedente.
Avec le block if je ne sais aps definir le plus haut de la bougie precedente ni quel est le cours en live.

Si vous pouvez m'aider merci. :)


 
 Post subject: Re: Comparer avec une bougie precedente Post rating: 0   New post Posted: Wed 04 Sep, 2013, 16:11 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Bonjour

La strategie en annexe va acheter si la bougie precedante est verte, c'est a dire si le prix augment.

Esperant que cela vous aide.


Attachments:
BUY_if_Green.vfs [22.49 KiB]
Downloaded 393 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: Comparer avec une bougie precedente Post rating: 0   New post Posted: Wed 04 Sep, 2013, 16:14 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Cette fois, la stratégie attachée va acheter si le dernier prix constaté est supérieur au prix de clôture de la dernière bougie (que la bougie soit rouge ou verte).


Attachments:
BUY_if_Up.vfs [22.49 KiB]
Downloaded 363 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: Comparer avec une bougie precedente Post rating: 0   New post Posted: Thu 05 Sep, 2013, 08:14 
User avatar

User rating: 0
Joined: Tue 03 Jul, 2012, 06:44
Posts: 11
Location: Burundi, Bujumbura
Bjr et merci pour ces 2 exemples.
Cela m'aide un peu a comprendre la logique et la programmation mais j'ai encore beaucoup de mal a faire un petit programme qui fonctionne comme je l'aimerais.
La strategie buy_if_up ne semble pas declencher de signaux et de prise de position.
L'autre strategie prend de multiples positions (pyramidage) meme si la precedente n'est pas cloturée.

Questions :
- la notion de "last_candle" correspond-t'il a la bougie precedente ou a la bougie courante ?
- Pour avoir le cours bid ou ask courant faut choisir last-tick ?

Je vais attendre les prochains webinaires pour progresser car j'ai vraiment du mal a programmer un truc simple. j'ai compris le principe de Visual Jforex mais la programmation d'un programme simple exploitable m'est tres difficile.

D'ici là, pourriez vous SVP m'ecrire une strategie qui serait le suivant :
- prise de position si on n'est pas deja en position et si on n'a pas deja pris position (position cloturée) sur la periode courante.
- Achat sur le plus haut de la bougie precedente.
- TP = 50 SL = 25

Merci d'avance pour votre sollicitude et compréhension a mon égard.


 
 Post subject: Re: Comparer avec une bougie precedente Post rating: 0   New post Posted: Thu 05 Sep, 2013, 11:09 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Quote:
la notion de "last_candle" correspond-t'il a la bougie precedente ou a la bougie courante ?


Elle correspond a la derniere bougie fermee. La bougie courante n'eatnt pas terminee, on ne peut calculer ni le Low, ni le Close, etc.

Quote:
Pour avoir le cours bid ou ask courant faut choisir last-tick

le dernier tick correspond a l'information la plus recente. Le dernier tick represent le dernier prix disponible.


Quote:
Achat sur le plus haut de la bougie precedente.


Soit on achete au marche, soit on place un ordre conditionel (conditionnee par le prix).

La strategie attachee va ouvrir poster un ordre conditionnel a la fois (si aucune position n'est deja ouverte) avec comme prix cible le MAX de la precedante bougie.


Attachments:
Stra_05_09.vfs [23.62 KiB]
Downloaded 391 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: Comparer avec une bougie precedente Post rating: 0   New post Posted: Thu 05 Sep, 2013, 13:02 
User avatar

User rating: 0
Joined: Tue 03 Jul, 2012, 06:44
Posts: 11
Location: Burundi, Bujumbura
Merci Bcp :)
Je vais regarder votre strategie pour comprendre la façon de travailler et construire une strategie inverse pour voir si j'ai bien tout capté.

encore merci


 

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