時間枠に関係なく、チャートに 15 分間隔で 0 秒の垂直線を引くことは可能ですか?
00:15:00 に垂直線を引く必要があるのは次のとおりです。
コンパイルはできますが、MT4 がロックしてしまいます。
// ------------------------------------------------------------- -------------------
//| 15minvline.mq4 |
//|著作権 © 2007、MetaQuotes Software Corp. |
//|
http://www.metaquotes.net| |
// ------------------------------------------------------------- -------------------
#property copyright Copyright © 2007, MetaQuotes Software Corp.
#プロパティ リンク http://www.metaquotes.net
#property indior_chart_window
#property indior_buffers 1
#property indior_color1 C'255,255,255'
double ExtMapBuffer0[];
// ------------------------------------------------------------- -------------------
//|カスタム屋内初期化関数 |
// ------------------------------------------------------------- -------------------
int init()
{
SetIndexBuffer(0,ExtMapBuffer0);
SetIndexStyle(0,DRAW_LINE,STYLE_DOT,1, C'255,255,255');
//---- 屋内
//----
リターン (0);
}
// ------------------------------------------------------------- -------------------
//|カスタムの屋内初期化解除関数 |
// ------------------------------------------------------------- -------------------
int deinit()
{
//----
//----
リターン (0);
}
// ------------------------------------------------------------- -------------------
//|カスタム屋内反復関数 |
// ------------------------------------------------------------- -------------------
int 開始()
{
int counted_bars=IndiorCounted();
if (counted_bars lt; 0) return (-1);
if (counted_bars gt; 0) counted_bars--;
int pos=棒 - 数えられた棒;
int min = 分();
int sec = 秒();
while(posgt;0)
{
もし ((最小 == 15) (秒 == 00))
SetIndexStyle(0,DRAW_LINE,STYLE_DOT,1, C'255,255,255');
}
//----
//----
リターン (0);
}
// ------------------------------------------------------------- -------------------