你好
在FF上找到此指示器在蜡烛中间绘制一个点,但是当我更改时间帧时,我在图表上绘制的其他对象从图表中消失。
我如何更改indi,以便无论时间范围内的对象都保留在图表上?
只有当我在图表上有这个指标我才有这个问题。
插入的代码// --------------------------------------------- --------------------- /|伦敦纽约open.mq4 |/|版权所有©2011,tigpips |/| [email protected] |/ ----------------------------------------------- ------------------- #property copyright版权所有©2011,tigpips #property link [email protected] #property indior_chart_window #property indior_buffers 1 #property indior_color1 Red #property indior_width1 0 extern bool UseBarCount = true; extern int BarCount = 5000; double dotBuffer#91;#93 ;;/ ----------------------------------------------- ------------------- /|自定义指标初始化功能|/ ----------------------------------------------- ------------------- int init(){//----绘图设置SetIndexArrow(0,108);/---- SetIndexStyle(0,DRAW_ARROW,STYLE_DOT); SetIndexBuffer(0,dotBuffer); SetIndexLabel(0,Mean Candle Dot);/---- return(0); }/ ---------------------------------------------- -------------------- /|自定义指标取消初始化功能|/ ----------------------------------------------- ------------------- int deinit(){return(0); }/ ---------------------------------------------- -------------------- /|自定义指标迭代功能|/ ----------------------------------------------- ------------------- int start(){int iBarsToCalc; if(UseBarCount == true){iBarsToCalc = BarCount; } else {iBarsToCalc = Bars - IndiorCounted(); } if(iBarsToCalc lt; Bars)iBarsToCalc ; for(int i = iBarsToCalc-1; igt; = 0; i--){dotBuffer#91; i#93; =(高#91;我#93; 低#91;我#93;)/2; } return(0); }/ ---------------------------------------------- --------------------
先谢谢你!