//+------------------------------------------------------------------+//| Expert new tick handling function |//+------------------------------------------------------------------+voidOnTick(void)
{
staticdatetime limit_time=0; // last trade processing time + timeout//--- don't process if timeoutif(TimeCurrent()>=limit_time)
{
//--- check for dataif(Bars(Symbol(),Period())>2)
{
//--- change limit time by timeout in seconds if processedif(ExtExpert.Processing())
limit_time=TimeCurrent()+ExtTimeOut;
}
}
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+//| Expert new tick handling function |//+------------------------------------------------------------------+voidOnTick(void)
{
staticdatetime limit_time=0,ExtTimeOut=0; // last trade processing time + timeout//--- don't process if timeout
limit_time=iTime(Symbol(),Period(),0);
if(ExtTimeOut==limit_time)
return;
//--- change limit time by timeout in seconds if processedif(ExtExpert.Processing())
ExtTimeOut=limit_time;
}
//+------------------------------------------------------------------+
//+----------------------------------------------------------------------------+//| Автор : Ким Игорь В. aka KimIV, http://www.kimiv.ru |//+----------------------------------------------------------------------------+//| Версия : 07.10.2006 |//| Описание : Возвращает номер бара экстремума ЗигЗага по его номеру. |//+----------------------------------------------------------------------------+//| Параметры: |//| sy - наименование инструмента (NULL или "" - текущий символ) |//| tf - таймфрейм ( 0 - текущий ТФ) |//| ne - номер экстремума ( 0 - последний) |//| dp - ExtDepth |//| dv - ExtDeviation |//| bs - ExtBackstep |//+----------------------------------------------------------------------------+int GetExtremumZZBar(string sy="", int tf=0, int ne=0, int dp=12, int dv=5, int bc=3) {
if (sy=="" || sy=="0") sy=Symbol();
double zz;
int i, k=iBars(sy, tf), ke=0;
for (i=0; i<k; i++) {
zz=iCustom(sy, tf, "ZigZag", dp, dv, bc, 0, i);
if (zz!=0) {
ke++;
if (ke>ne) return(i);
}
}
Print("GetExtremumZZBar(): Экстремум ЗигЗага номер ",ne," не найден");
return(-1);
}
//+----------------------------------------------------------------------------+//| Автор : Ким Игорь В. aka KimIV, http://www.kimiv.ru |//+----------------------------------------------------------------------------+//| Версия : 07.10.2006 |//| Описание : Возвращает экстремум ЗигЗага по его номеру. |//+----------------------------------------------------------------------------+//| Параметры: |//| sy - наименование инструмента (NULL или "" - текущий символ) |//| tf - таймфрейм ( 0 - текущий ТФ) |//| ne - номер экстремума ( 0 - последний) |//| dp - ExtDepth |//| dv - ExtDeviation |//| bs - ExtBackstep |//+----------------------------------------------------------------------------+double GetExtremumZZPrice(string sy="", int tf=0, int ne=0, int dp=12, int dv=5, int bs=3) {
if (sy=="" || sy=="0") sy=Symbol();
double zz;
int i, k=iBars(sy, tf), ke=0;
for (i=1; i<k; i++) {
zz=iCustom(sy, tf, "ZigZag", dp, dv, bs, 0, i);
if (zz!=0) {
ke++;
if (ke>ne) return(zz);
}
}
Print("GetExtremumZZPrice(): Экстремум ЗигЗага номер ",ne," не найден");
return(0);
}
TOTAL : "Back and forth ADX" March April indicator - not successful for some reason.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
以下は、インジケーターそのものです。
以下は、フィルター(MAとRSI)を追加した、より良い結果です。
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
0.10ロット時
以下は、フィルター(MAとRSI)を追加した、より良い結果です。
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
ロット付 0.10
こんばんは!私は、あなたが既製のコードの大きなライブラリを持っていることに気づいた。おそらく、新しいバーを作成する瞬間に、前のバーの始値を 決定するようなコードをお持ちではないでしょうか?ウラジミールさん、ありがとうございます。
こんばんは!既成のコードのライブラリが豊富なことに気づきました。おそらく、新しいバーを作成する瞬間に、前のバーの始値を 決定するようなコードをお持ちではないでしょうか?ウラジミールさん、ありがとうございます。
例えば、Expert Advisorの作業結果は、前のバーの価格です。
例えば、この関数から-Expert Advisorの結果が悪くなります。
何を失敗したのか自分でもよくわからないのですが、Expert Advisorは突きに頼った方が良い結果を出してくれます。
こんばんは!私は独学で、例からコードを取り、科学的な突っ込みの方法で自分のために設定されたタスクを達成します。
たとえば、この関数から-専門家の結果はより悪いです
ここで私自身は自分が何をだましたのか理解できませんが、突くことによって、専門家は結果をよりよく示します。
ここで違いを確認できます-上記の例のみを投稿に置き換えてください
-このEAでは
違いを確認する方法は以下の通りです。上記の例の投稿だけを置き換えてみてください。
- を、このエキスパートに託しました。
ありがとうございました。試してみます!ウラジミールさん、ありがとうございます。
自分自身を書きたいが、プログラミングを理解できない。アドバイスを取ると別のブランチを開くことにしました。アドバイザー用
作業条件
1.自体は手動(購入および販売)すべての取引を取引しない
2.
待機中の注文は、最小+(調整可能)
3. 待機中の注文がトリガーされると --- 1つの注文のレベルで別の保留中の注文が設定される(つまり合計が等しくなるはず)
4. 価格が戻りロックを形成すると --- すべての注文が削除 される。
唯一の違いは、取引の形状である---それは、左側の位置のオープニングと右側の位置のオープニングのように見えます。5ロックの任意の部分を開くと、この部分と同じボリュームに保留を開きます。15 -20ポイント後の動き(調整)、私は買い、買い、その逆を保留開く場合IE。
すべてのように。どんな提案を喜んで。 このような奇跡が光に表示された場合はオープンソースコードでそれに興味を持っているすべての人のために掲載さ れる予定。
最後のZigZag信号を見つけるのに役立つ
最後のアップセル、Dn-buyの場合の条件によって。
うまくいったりいかなかったり...。(全く動作しない場合もあります)
最後のZigZag信号を見つけるのに役立つ
最後のアップセル、Dn-buyの場合の条件によって。
うまくいったりいかなかったり...。(全く動作しない場合もあります)