//+------------------------------------------------------------------+//| UpperRightCornerText.mq5 |//| Copyright 2010, Investeo.pl |//| http://Investeo.pl |//+------------------------------------------------------------------+#property copyright "2010, Investeo.pl"#property link "http://Investeo.pl"#property version "1.00"#property indicator_separate_window#property indicator_plots 1string label_info="label1";
int window=-1;
//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+int OnInit()
{
//--- initialize a label in upper right corner// find indicator's window handleif((ENUM_PROGRAM_TYPE)MQL5InfoInteger(MQL5_PROGRAM_TYPE)==PROGRAM_INDICATOR)
window=ChartWindowFind();
// check if label object does not already exist and create itif(ObjectFind(0,label_info)<0)
{
// Create label in indicator's window ObjectCreate(0,label_info,OBJ_LABEL,window,0,0);
// Set X and Y distance from UPPER RIGHT CORNERObjectSetInteger(0,label_info,OBJPROP_XDISTANCE,200);
ObjectSetInteger(0,label_info,OBJPROP_YDISTANCE,20);
ObjectSetInteger(0,label_info,OBJPROP_CORNER, CORNER_RIGHT_UPPER);
// Set text properties: colour, font and font sizeObjectSetInteger(0,label_info,OBJPROP_COLOR,LightPink);
ObjectSetString(0,label_info,OBJPROP_FONT,"Arial");
ObjectSetInteger(0,label_info,OBJPROP_FONTSIZE,14);
// Set text to displayObjectSetString(0,label_info,OBJPROP_TEXT,"HELLO I am a label");
} elsePrint("label_info already exists");
//---return(0);
}
//+------------------------------------------------------------------+//| Custom indicator iteration function |//+------------------------------------------------------------------+int OnCalculate(constint rates_total,
constint prev_calculated,
constdatetime& time[],
constdouble& open[],
constdouble& high[],
constdouble& low[],
constdouble& close[],
constlong& tick_volume[],
constlong& volume[],
constint& spread[])
{
//---//--- return value of prev_calculated for next callreturn(rates_total);
}
//+------------------------------------------------------------------+void OnDeinit(constint reason)
{
//---if(!ObjectFind(0,label_info)<0)
ObjectDelete(0, label_info);
}
私は、異なるキーストロークを使用することによって変更される一時的なグローバル変数を通じて、インジケータと対話する概念実証のEAを作りました。
角は機能しますが、下の角はタイムラインではなく、インジケータフレームに対する相対的なものであることを忘れてはいけません。
残念ながらビデオのアップロードはこのフォーラムではうまくいかないようです :(
とりあえず、私はそれを上に置く
http://www.youshare.com/Guest/c94bb3e9cfe6a424.flv.html
(フルスクリーンでご覧ください)
ベストレジストです。
こんにちは。
このビデオには音声が添付されていません。
SampleTextIndicatorのコードを掲載していただけないでしょうか。
Regards
ハイ
このビデオには音声が添付されていません。
SampleTextIndicatorのコードを載せていただけませんか?
参考
こんにちは
ビデオには音声トラックは含まれていません。私は別のラップトップにそれを残したので、私は今日の夕方にはコードを投稿します。
このコードはあまりエレガントではないかもしれませんが、適切に動作します。
こんにちは
コードを投稿していただきありがとうございます。
右 上にテキストを表示するように変更していただけませんか?
別ウィンドウですべてのインジケータに使用できるサンプルです。
こんにちは
コードを投稿していただきありがとうございます。
右 上にテキストを表示するように変更していただけませんか?
別ウィンドウですべてのインジケータに使用できるサンプルです。
私は説明不要のコメントでコードを置く
BR,
インベスティオ
簡単なインジケーターの提案をお願いします。
Close > EMA 34 = green histogram or ...line or ...arrow...
Close< EMA 34 = リードヒストグラムまたは...ラインまたは...矢印...
ありがとうございました。
コードを勝手気ままにコメント付きで載せてみました
BR,
インベスティオ
こんにちは、Investeo
ラベルは表示されますが、値は更新されません。私は間違っていたのでしょうか?
以下は私のコードです。
簡単なインジケーターの提案をお願いします。
Close > EMA 34 = green histogram or ...line or ...arrow...
Close< EMA 34 = リードヒストグラムまたは...ラインまたは...矢印...
ありがとうございました。
MACDで試してみて ください。
しかし、「インジケーターのカーブ」には従わず、色の変化を示すだけでよい。
walbさん、ありがとうございます。
はい、しかし、「インジケータの曲線」に従うべきではなく、色の変化を示すだけであるべきです。
ありがとうwalb
MT4用のインジケータは、ロシアの色と呼ばれ、あなたが望む
/go?link=https://www.forexfactory.com/showthread.php?t=173962
あなただけのEMA34とHMAを交換する必要があります。