OPR 15 minutes sur graphe 100 ticks
- This topic has 3 replies, 2 voices, and was last updated 2 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
Similar topics:
Forums › ProRealTime forum Français › Support ProBuilder › OPR 15 minutes sur graphe 100 ticks
Avec le code ci-dessous on détecte les plus hauts et plus bas entre ces horaires sur un graphique en ticks et on les affiche:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
defparam drawonlastbaronly=true start = 090000 end = 091500 tc = time>=start and time<end if tc and not tc[1] then i=i+1 $x1[i]=barindex $y1[i]=low $y2[i]=high hh=high ll=low endif if tc then $x2[i]=barindex ll=min(ll,low) hh=max(hh,high) $y1[i]=ll $y2[i]=hh endif if islastbarupdate and isset($x1[2]) then for y = 1 to i do drawrectangle($x1[y],$y1[y],$x2[y],$y2[y]) //plot in history next endif return //hh,ll |
Find exclusive trading pro-tools on 