Directional Movement
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Directional Movement
- This topic has 3 replies, 3 voices, and was last updated 8 years ago by Max.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
05/12/2016 at 1:37 PM #688805/16/2016 at 3:33 PM #7184
Ciao Alex,
Forse questo codice ti può essere utile?
12345678910111213141516171819202122p=14plusDM = MAX(HIGH-HIGH[1], 0)minusDM = MAX(LOW[1]-LOW, 0)IF plusDM > minusDM THENminusDM = 0ENDIFIF plusDM < minusDM THENplusDM = 0ENDIFIF plusDM = minusDM THENplusDM = 0minusDM = 0ENDIFplusDI = WILDERAVERAGE[p](plusDM)minusDI = WILDERAVERAGE[p](minusDM)Return plusDI, minusDI05/16/2016 at 4:28 PM #7185ciao, quello che hai postato tu è DM o DI?
grazie
05/17/2016 at 3:05 PM #7218Qui sotto puoi trovare il Directional Movement :
1234567891011121314151617plusDM = MAX(HIGH-HIGH[1], 0)minusDM = MAX(LOW[1]-LOW, 0)IF plusDM > minusDM THENminusDM = 0ENDIFIF plusDM < minusDM THENplusDM = 0ENDIFIF plusDM = minusDM THENplusDM = 0minusDM = 0ENDIFReturn plusDM, minusDI -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)