Bonjour,
Etant un novice dans la programmation de stratégie automatique je rencontre quelques interrogations et difficultés par la même occasion..
Je pense avoir limitée le nombre de passages d’ordres avec le code:
DEFPARAM CumulateOrders = False
If CountOfPosition < 1 THEN
Buy 1 shares at market
Mais il me semble qui a toujours autant d’odre en simultané ..
SI quelqu’un peut m’éclairer sur la viabilité de mon backtest ce serait super merci beaucoup
// Définition des paramètres du code
DEFPARAM CumulateOrders = false // Cumul des positions désactivé
// Empêche le système de placer de nouveaux ordres sur les jours de la semaine spécifiés
daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
// Conditions pour ouvrir une position acheteuse
indicator1 = ExponentialAverage[50](close)
c1 = (close > indicator1)
indicator2 = ExponentialAverage[200](close)
c2 = (close > indicator2)
indicator3 = DonchianChannelCenter[20]
c3 = (close > indicator3)
indicator4 = DonchianChannelCenter[150]
c4 = (close > indicator4)
indicator5 = DonchianChannelCenter[300]
c5 = (close > indicator5)
IF (c1 AND c2 AND c3 AND c4 AND c5) AND not daysForbiddenEntry THEN
BUY 1 SHARES AT MARKET
ENDIF
// Stops et objectifs
SET STOP %TRAILING 0.15
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR.
For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com
If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.
Get Assistance
Assistance Type
Your Need
Proposed Solutions
Do you like cookies? 🍪 We use cookies to ensure you get the best experience on our website.
(Learn more)