mladen: ¿Ha comprobado el indicador desde el primer puesto de esta banda de rodadura?
こんにちは
Si ya lo estaba buscando, pero lo que necesito es lo que muestro en la imagen, no sé si sería posible modificar algunos para ser capaz de utilizarlo en el momento necesario
Si ya lo estaba buscando, pero lo que necesito es lo que muestro en la imagen, no sé si sería posible modificar algunos para ser capaz de utilizarlo en el momento necesario
//+------------------------------------------------------------------+//| soubra2003.mq4 |//| Copyright 2016-2018, soubra2003 |//| https://www.mql5.com/en/users/soubra2003 |//+------------------------------------------------------------------+#property copyright"Copyright 2016-2018, Soubra2003"#property link"https://www.mql5.com/en/users/soubra2003/seller"#property version"1.00"#property strictinputENUM_TIMEFRAMES TF=PERIOD_CURRENT; // Time frame /*input*/string InpName="Fibo"; // Line name/*extern*/double InpPrice=0.01; // Line priceinputcolor InpColor=clrRed; // Line colorinputENUM_LINE_STYLE InpStyle=STYLE_DASH; // Line styleinputint InpWidth=1; // Line width/*input*/bool InpBack=false; // Background line/*input*/bool InpSelection=true; // Highlight to move/*input*/bool InpHidden=true; // Hidden in the object list/*input*/long InpZOrder=0; // Priority for mouse click//---//int DigitFactor;double open,high,low,close,candlesize;
//+------------------------------------------------------------------+//| Expert initialization function//+------------------------------------------------------------------+intOnInit()
{
for(int i=0;i<6;i++)
{
HLineCreate(0,InpName+(string)i,0,InpPrice,InpColor,InpStyle,InpWidth,InpBack,InpSelection,InpHidden,InpZOrder);
HLineMove(0,InpName+(string)i,InpPrice);
}
//if(Digits==3) DigitFactor=100;//else if(Digits==5) DigitFactor=10000;//---return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+//| Expert tick function//+------------------------------------------------------------------+voidOnTick()
{
open = iOpen(NULL,TF,1);
high = iHigh(NULL,TF,1);
low = iLow(NULL,TF,1);
close = iClose(NULL,TF,1);
//
candlesize = high-low;
if(candlesize < 0) candlesize=candlesize*(-1);
candlesize = NormalizeDouble(candlesize,Digits);
//---
HLineMove(0,InpName+(string)0,low);
HLineMove(0,InpName+(string)5,high);
//if(close > open) //UP
{
HLineMove(0,InpName+(string)1,high-candlesize*0.236);
HLineMove(0,InpName+(string)2,high-candlesize*0.382);
HLineMove(0,InpName+(string)3,high-candlesize*0.50);
HLineMove(0,InpName+(string)4,high-candlesize*0.618);
}
elseif(close < open) //DOWN
{
HLineMove(0,InpName+(string)1,low+candlesize*0.236);
HLineMove(0,InpName+(string)2,low+candlesize*0.382);
HLineMove(0,InpName+(string)3,low+candlesize*0.50);
HLineMove(0,InpName+(string)4,low+candlesize*0.618);
}
}
//+------------------------------------------------------------------+//| Expert deinitialization function//+------------------------------------------------------------------+voidOnDeinit(constint reason)
{
for(int i=0;i<6;i++)
ObjectDelete(ChartID(),InpName+(string)i);
//---Print("Bye.");
}
//+------------------------------------------------------------------+//| Create the horizontal line |//+------------------------------------------------------------------+bool HLineCreate(constlong chart_ID=0, // chart's ID conststring name="HLine", // line name constint sub_window=0, // subwindow index double price=0, // line price constcolor clr=clrRed, // line color constENUM_LINE_STYLE style=STYLE_SOLID, // line style constint width=1, // line width constbool back=false, // in the background constbool selection=true, // highlight to move constbool hidden=true, // hidden in the object list constlong z_order=0) // priority for mouse click
{
//--- if the price is not set, set it at the current Bid price level if(!price)
price=SymbolInfoDouble(Symbol(),SYMBOL_BID);
//--- reset the error value ResetLastError();
//--- create a horizontal line if(!ObjectCreate(chart_ID,name,OBJ_HLINE,sub_window,0,price))
{
Print(__FUNCTION__,
": failed to create a horizontal line! Error code = ",GetLastError());
return(false);
}
//--- set line color ObjectSetInteger(chart_ID,name,OBJPROP_COLOR,clr);
//--- set line display style ObjectSetInteger(chart_ID,name,OBJPROP_STYLE,style);
//--- set line width ObjectSetInteger(chart_ID,name,OBJPROP_WIDTH,width);
//--- display in the foreground (false) or background (true) ObjectSetInteger(chart_ID,name,OBJPROP_BACK,back);
//--- enable (true) or disable (false) the mode of moving the line by mouse //--- when creating a graphical object using ObjectCreate function, the object cannot be //--- highlighted and moved by default. Inside this method, selection parameter //--- is true by default making it possible to highlight and move the object ObjectSetInteger(chart_ID,name,OBJPROP_SELECTABLE,selection);
ObjectSetInteger(chart_ID,name,OBJPROP_SELECTED,selection);
//--- hide (true) or display (false) graphical object name in the object list ObjectSetInteger(chart_ID,name,OBJPROP_HIDDEN,hidden);
//--- set the priority for receiving the event of a mouse click in the chart ObjectSetInteger(chart_ID,name,OBJPROP_ZORDER,z_order);
//--- successful execution return(true);
}
//+------------------------------------------------------------------+//| Move horizontal line |//+------------------------------------------------------------------+bool HLineMove(constlong chart_ID=0, // chart's ID conststring name="HLine", // line name double price=0) // line price
{
//--- if the line price is not set, move it to the current Bid price level if(!price)
price=SymbolInfoDouble(Symbol(),SYMBOL_BID);
//--- reset the error value ResetLastError();
//--- move a horizontal line if(!ObjectMove(chart_ID,name,0,0,price))
{
Print(__FUNCTION__,
": failed to move the horizontal line! Error code = ",GetLastError());
return(false);
}
//--- successful execution return(true);
}
//+------------------------------------------------------------------+//Bye
こんにちは、Mladenです。
以下の内容を含むインジケーターを教えてください。
1) 取引開始時に2本の水平線を 引く。
2) 最初のXX本のローソクの高値と安値のライン
3) マルチタイムフレーム
4) ラインを越えた時に、音、ポップアップ、プッシュ、メールによるアラート。
ありがとうございます。
こんにちは、Mladenです。
以下の内容を含むインジケーターを教えてください。
1) 取引開始時に2本の水平線を引く。
2) 最初のXX本のローソクの高値と安値を示す線。
3) マルチタイムフレーム
4) ラインを越えた時に、音、ポップアップ、プッシュ、メールによるアラート。
ありがとうございました。
Jea
そのようなインジケータは持っていません。ロンドンブレイクアウトボックス」とかいうのを試してみてはいかがでしょうか(私の勘違いでなければ)。
ジー
そのようなインジケータは持っていません。ロンドンブレイクアウトボックス」とかいうのを試してみてはいかがでしょうか(私の勘違いでなければ)。
なるほど、ありがとうございます。ボックスよりも横線のほうがいいかもしれませんね。
そして、Minimumでは同じですが、以下のようになります。
添付画像
そして、Minimumでは同じですが、以下のようになります。
添付画像
¿Ha comprobado el indicador desde el primer puesto de esta banda de rodadura?
Si ya lo estaba buscando, pero lo que necesito es lo que muestro en la imagen, no sé si sería posible modificar algunos para ser capaz de utilizarlo en el momento necesario
私はすでに探していたが、私が必要とするものは、画像に表示されているものである場合、私はそれが必要なときにそれを使用できるようにいくつかを変更することが可能であろうかどうかは分からない
感謝
Si ya lo estaba buscando, pero lo que necesito es lo que muestro en la imagen, no sé si sería posible modificar algunos para ser capaz de utilizarlo en el momento necesario
私はすでに探していたが、私が必要とするものは、画像に表示されているものである場合、私はそれが必要なときにそれを使用できるようにいくつかを変更することが可能であろうかどうかは分からない
感謝
で複数のブレイクアウトを接続できるように、プログラムコードの行の名前を変更しました。
プログラムコードの名前を変更し、1つ以上のブレイクアウトを接続できるようにしました。
ご参考になれば幸いです。