MQL4函数哥 发表于 2020-5-4 09:30:26

WindowPriceMax( )【窗口篇-MQL4函数】

double WindowPriceMax( void index)
返回当前图表指定子窗口的最大垂直标度的值(0为主菜单图表,指标子窗口的开始数字为1 )。 如果子窗口没有指定,最大价格标度的值返回图表窗口。
参见 WindowPriceMin(), WindowFirstVisibleBar(), WindowBarsPerChart()

参数:
index   -   图表子窗口索引 (0 -主图表窗口)。

示例:
double   top=WindowPriceMax();
double   bottom=WindowPriceMin();
datetime left=Time;
int      right_bound=WindowFirstVisibleBar()-WindowBarsPerChart();
if(right_bound<0) right_bound=0;
datetime right=Time+Period()*60;
//----
ObjectCreate("Padding_rect",OBJ_RECTANGLE,0,left,top,right,bottom);
ObjectSet("Padding_rect",OBJPROP_BACK,true);
ObjectSet("Padding_rect",OBJPROP_COLOR,Blue);
WindowRedraw();


joshua 发表于 2020-5-25 16:53:43

感谢分享

twb818 发表于 2021-9-15 08:10:59

感谢分享

yimu77 发表于 2021-12-8 20:44:26

谢谢分享

zhq320 发表于 2021-12-9 13:32:11

感谢分享

kozeng 发表于 2021-12-9 13:48:21

感谢分享

手艺人 发表于 2022-1-9 19:44:13

谢谢分享

nanaliu 发表于 2022-3-28 18:24:35

看看。。感谢分享。。。。

ahxuchao 发表于 2022-3-28 18:42:35

路过 看看

277699692 发表于 2022-3-31 16:42:09

顶一个...........
页: [1]
查看完整版本: WindowPriceMax( )【窗口篇-MQL4函数】