Erreur ou pas dans ma définition d'un plus haut ?
Forums › ProRealTime forum Français › Support ProOrder › Erreur ou pas dans ma définition d'un plus haut ?
- This topic has 14 replies, 3 voices, and was last updated 4 years ago by Nicolas.
-
-
05/01/2020 at 10:36 PM #129326Erreur durant l'exécution123456789101112131415161718Periods = 5boxHigh = high[3]>=highest[Periods](high)[4] and high[3]>high[2] and high[3]>high[1] and high[3]>highif boxHigh thentopbox = high[3]botbox = lowest[4](low)endif// Conditions pour ouvrir une position acheteuseif not LongOnMarket and close crosses over topbox thenBUY 1 CONTRACTS AT MARKETendif// Conditions pour fermer une position acheteuseif LongOnMarket and close crosses under botbox thenSELL AT MARKETendif
J’ai une erreur durant l’exécution de mon back test mais je ne vois pas où.
Quelq’un a-t-il une idée ?
Merci d’avance
05/02/2020 at 12:33 PM #12938805/02/2020 at 12:58 PM #129395Merci pour ton aide @fifi743,
mais l’erreur ne vient pas de là apparemment car j’ai toujours la même erreur.
Une idée c’est que sur les premières bougies mes deux courbes sont à zéro.
Est-ce que l’erreur peut provenir de ça ?
05/02/2020 at 1:03 PM #129398J’ai donc changer mon programme par ça,
version 21234567891011121314151617181920Periods = 5once topbox = undefinedonce botbox = undefinedboxHigh = high[3]>=highest[Periods](high)[4] and high[3]>high[2] and high[3]>high[1] and high[3]>highif boxHigh thentopbox = high[3]botbox = lowest[4](low)endif// Conditions pour ouvrir une position acheteuseif not LongOnMarket and close crosses over topbox thenBUY 1 CONTRACT AT MARKETendif// Conditions pour fermer une position acheteuseif LongOnMarket and close crosses under botbox thenSELL AT MARKETendifMais pas de changement toujours une erreur
05/02/2020 at 1:10 PM #12940005/02/2020 at 1:11 PM #12940205/02/2020 at 2:13 PM #129416Oui @Nicolas mais je ne savais pas quoi mettre désolé.
Sinon je suis sur PRT v11 et @fifi743, chez moi cela ne fonctionne pas c’est bizarre.
Et bien suite à ton message @fifi743 j’ai testé avec un autre dans la bibliothèque et j’ai toujours l’erreur.
Le problème est donc ailleurs mais où, ça c’est une bonne question.
05/02/2020 at 2:25 PM #129419Je suis sous PRT trading V11 pour être exact sous IG.
Sinon je viens de réinstallé et toujours une erreur.
05/02/2020 at 2:47 PM #12942205/02/2020 at 2:56 PM #129426@fifi743 Déjà un grand merci pour la petite erreur.
05/02/2020 at 3:53 PM #12943405/02/2020 at 5:41 PM #129466non ce n’est pas ça.
l’erreur n’est pas de programmation apparemment puisque j’ai une erreur sur d’autres backtest valides.
05/04/2020 at 8:25 AM #129708CONTRACT peut être écrit avec ou sans S à la fin, pour info.
J’ai testé sous v11, sur différentes unités de temps et instruments, je n’ai pas eu de problème.
S’agit-il d’une version gratuite “fin de journée” ?
Il faudrait essayer avec cette version (j’ai enlevé les instruction “undefined”, plus spécifique à ProBuilder et pas au trading automatique)
123456789101112131415161718Periods = 5boxHigh = high[3]>=highest[Periods](high)[4] and high[3]>high[2] and high[3]>high[1] and high[3]>highif boxHigh thentopbox = high[3]botbox = lowest[4](low)endif// Conditions pour ouvrir une position acheteuseif not LongOnMarket and close crosses over topbox and topbox>0 thenBUY 1 CONTRACT AT MARKETendif// Conditions pour fermer une position acheteuseif LongOnMarket and close crosses under botbox and botbox>0 thenSELL AT MARKETendif05/07/2020 at 10:07 AM #130405J’ai ouvert un ticket et apparemment le problème est connu et en cours de résolution.
Merci pour ton aide @nicolas
Franck
05/07/2020 at 10:08 AM #130406 -
AuthorPosts
Find exclusive trading pro-tools on