Bonjour Nicolas,
Pouvez vous m’éclaircir sur ce sujet svp
J’utilise l’indicateur HULL avec 2 timeframes différents (5 Minutes (Défaut) et 30 minutes)
Mon programme achète même lorsque mon HULL 30 minutes est Rouge (et non Vert comme veut le programme)
Not ( My30MnHULL > My30MnHULL[1] )
D’où vient ce problème ?
defparam cumulateorders=false
Once MyHullPeriod = 20
TimeFrame(30 Minutes)
//-----OHLC-----
My30MnOpen = Open
My30MnHigh = High
My30MnLow = Low
My30MnClose = Close
//-----OHLC-----
TimeFrame(Default)
//-----OHLC-----
MyOpen = Open
MyHigh = High
MyLow = Low
MyClose = Close
//-----OHLC-----
//----- HULL (30 Minutes) -----
My30MnInner = 2*weightedaverage[Round(MyHullPeriod/2)](My30MnClose)-weightedaverage[MyHullPeriod](My30MnClose)
My30MnHULL = weightedaverage[Round(sqrt(MyHullPeriod))](My30MnInner)
//Uptrend Bullish
If My30MnHULL > My30MnHULL[1] then
My30MnHULLisGreen = 1
Else
My30MnHULLisGreen = 0
Endif
//----- HULL (Default) -----
MyInner = 2*weightedaverage[Round(MyHullPeriod/2)](Close)-weightedaverage[MyHullPeriod](Close)
MyHULL = weightedaverage[Round(sqrt(MyHullPeriod))](MyInner)
//Uptrend Bullish
If MyHULL > MyHULL[1] then
MyHULLisGreen = 1
Else
MyHULLisGreen = 0
Endif
If My30MnHULLisGreen then
If MyClose > MyHULL then
Buy 1 LOT AT Market
Endif
Endif
If Not MyHULLisGreen then
Sell At Market
Endif
Bonjour, code ci-dessus édité par la modération pour le mettre au format correct. Si ce n’était pas une omission mais une absence de bouton “insert PRT code” dans la barre d’outil, voici comment le faire revenir jusqu’à l’arrivée de la nouvelle version du site ProRealCode, qui devrait résoudre ce problème:
Merci de compléter la requête via capture écran montrant un exemple de cas d’achat malgré Hull 30 minutes rouge, avec ajoutée une fenêtre “graph my30mnhullisgreen”, qui incitera davantage les autres membres à se pencher sur la question.
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)