Dukascopy
 
 
Wiki JStore Search Login

Awesome bug ou mauvaise utilisation de ma part
 Post subject: Awesome bug ou mauvaise utilisation de ma part Post rating: 0   New post Posted: Thu 04 Sep, 2014, 12:02 
User avatar

User rating: 0
Joined: Thu 02 Jun, 2011, 12:21
Posts: 15
Location: Uruguay, Punta Del Este
Bonjours le support visual, J’ai un problème avec Visual forex, Je vous un
fichier vsf comme modèle. Voici ce que je cherche à obtenir.

Quand l’indicateur aveasome positif contient une valeur positive ou
négative déclencher un ordre de vente

Quand l’indicateur aveasome négatif contient une valeur positive ou
négative déclencher un ordre d’achat

*Le probléme en backtest c’est qu’un ordre de vente et d’achat sont
toujours passé simultanément.*


Remarque Quand l’indicateur aveasome positif contient une valeur positive
ou négative l’indicateur aveasome négatif est Nan et vice versa, en tous
cas dans Jforex
-------------------------------------------------------------------
Sous Jforex je l’ai codé de cette manière et cela fonctionne comme je le
désire

AwesomePositifT4 = indicators.awesome( selectedInstrument,
selectedPeriodT4, OfferSide.BID, IIndicators.AppliedPrice.CLOSE,AweMa1,
MaType.T3, AweMa2, MaType.T3, Filter .WEEKENDS,1, SignalBarTime , 0 )[1]
[0] ;

AwesomeNegatifT4 = indicators.awesome( selectedInstrument,
selectedPeriodT4, OfferSide.BID, IIndicators.AppliedPrice.CLOSE,AweMa1,
MaType.T3, AweMa2, MaType.T3, Filter .WEEKENDS,1, SignalBarTime , 0 )[2]
[0] ;

OrdreVenteVirtuel = 0 ;OrdreAchatVirtuel = 0 ;

if ( AwesomePositifT4 < 0 || AwesomePositifT4 > 0 ) {CloseLong () ;
OrdreVenteVirtuel = 1 ; }

if ( AwesomeNegatifT4 > 0 || AwesomeNegatifT4 < 0 ){CloseCourt () ;
OrdreAchatVirtuel = 1 ; }
------------------------------------------------------------------------
Pour information. Si je le code de cette manière cela ne fonctionne pas
correctement

*if ( AwesomePositifT4 != 0 )* {CloseLong () ; OrdreVenteVirtuel = 1 ; }

*if ( AwesomeNegatifT4 != 0* ){CloseCourt () ; OrdreAchatVirtuel = 1 ;}

Bizarre, mais cela m’est égal.
---------------------------------------------------------------------

Avec mes cordiales Salutation
_________________________________________________________________________________


Attachments:
TestVisualPourDuka.vfs [34.19 KiB]
Downloaded 292 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: Awesome bug ou mauvaise utilisation de ma part Post rating: 0   New post Posted: Thu 04 Sep, 2014, 16:54 
Site Administrator
User avatar

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

Il semble que votre stratégie fonctionne correctement.

Image

Image

Le problème semble venir de l'outil de test historique de Visual JForex.

Nous poursuivons nos investigation dans cette direction.

Vous pouvez tester votre stratégie sur votre plateforme DEMO ou LIVE avec l’outil ad hoc (testeur historique).


Attachments:
Capture1.JPG [46.7 KiB]
Downloaded 475 times
Capture.JPG [184.67 KiB]
Downloaded 434 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: Awesome bug ou mauvaise utilisation de ma part Post rating: 0   New post Posted: Thu 04 Sep, 2014, 19:18 
User avatar

User rating: 0
Joined: Thu 02 Jun, 2011, 12:21
Posts: 15
Location: Uruguay, Punta Del Este
Merci pour votre rapide réponse.
Après quelques essais je confirme avec Jorex c’est OK.
Merci de votre aide avec mes cordiales salutations.
P.S. C’est en voulant convertir une stratégie JFOREX en Visual pour le concours de stratégie que je suis tombé sur ce problème, pas de chance car la stratégie JFOREX donnait des résultats prometteur….


 

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