creer segment sur SSA de ichimoku
Forums › ProRealTime forum Français › Support ProBuilder › creer segment sur SSA de ichimoku
- This topic has 5 replies, 2 voices, and was last updated 8 years ago by
Nicolas.
Tagged: drawsegment, ichimoku, segment
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
07/03/2016 at 1:42 PM #1013007/04/2016 at 9:33 AM #1016607/04/2016 at 1:40 PM #1017707/04/2016 at 7:38 PM #10204
On a un problème, le fait est que l’on ne peut pas lancer un tracé dans une coordonnée du futur (barindex+26 dans notre cas). Je peux donc en effet créer une droite (ou un segment) vers le bon prix, mais pas vers la bonne coordonnée dans le temps (en x donc). Du coup ça donne ça (ci-joint). Je ne pense pas que cela te sera utile ?
123456789101112131415161718192021222324defparam drawonlastbaronly = truep1 = 9p2 = 26p3 = 52Tenkan = (highest[p1](High) + lowest[p1](Low)) / 2Kijun = (highest[p2](High) + lowest[p2](Low)) / 2SpanA = (TenKan[p2] + Kijun[p2]) / 2SpanB = (highest[p3](High[p2]) + lowest[p3](Low[p2])) / 2x1 = barindex-p2if(spanA[p2]>spanB[p2]) theny1 = spanA[p2]elsey1 = spanB[p2]endifx2 = barindexy2 = (TenKan + Kijun) / 2DRAWline(x1,y1,x2,y2)// COLOURED(R,V,B,a)RETURN SpanA, SpanB, Tenkan, Kijun//, y2 as "y2"07/05/2016 at 6:49 AM #1021107/05/2016 at 8:24 AM #10212 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)