creer segment sur SSA de ichimoku
- This topic has 5 replies, 2 voices, and was last updated 8 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Forums › ProRealTime forum Français › Support ProBuilder › creer segment sur SSA de ichimoku
Tagged: drawsegment, ichimoku, segment
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 ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
defparam drawonlastbaronly = true p1 = 9 p2 = 26 p3 = 52 Tenkan = (highest[p1](High) + lowest[p1](Low)) / 2 Kijun = (highest[p2](High) + lowest[p2](Low)) / 2 SpanA = (TenKan[p2] + Kijun[p2]) / 2 SpanB = (highest[p3](High[p2]) + lowest[p3](Low[p2])) / 2 x1 = barindex-p2 if(spanA[p2]>spanB[p2]) then y1 = spanA[p2] else y1 = spanB[p2] endif x2 = barindex y2 = (TenKan + Kijun) / 2 DRAWline(x1,y1,x2,y2)// COLOURED(R,V,B,a) RETURN SpanA, SpanB, Tenkan, Kijun//, y2 as "y2" |