ユニバーサルMAクロスEA - ページ 90

 

追加フィルター

mladenさん、こんにちは。

添付の「BuySel Alert」インジケータを「第3移動平均線」の代わりに使ってみました。

x "がBUYと表示された場合、買い方向にしか動きません。

x "が "SELL "の時は、"SELL "のみになります。

と表示されるのですが、うまくいきません。

検証をお願い

します。

下記は「Buysel Alert」インジケータ です。

#プロパティ indicator_chart_window

#プロパティ indicator_buffers 1

#プロパティ indicator_color1 白

#property indicator_width1 10

//---- 入力パラメータ

extern int barn=300;

extern int Length=30;// 19でした。

double prev;

double last;

double alertBar;

extern int SoundAlertMode = 1;

extern int Soundonly = 1;

extern bool targets = false;

//---- バッファ

double ExtMapBuffer1[];

//double ExtMapBuffer2[];

//+------------------------------------------------------------------+

//| カスタムインジケータ 初期化関数

//+------------------------------------------------------------------+

int init()

{

//---- インジケータ

SetIndexEmptyValue(0,0.0);

SetIndexDrawBegin(0, barn);

SetIndexStyle(0,DRAW_ARROW)を設定します。

SetIndexArrow(0,251);

SetIndexBuffer(0,ExtMapBuffer1)を設定します。

IndicatorShortName("DIN")。

そこで、"iMA() "の代わりに "iCustom() "を使っています。

//第三移動平均線

//+------------------------------------------------------------------+

if(UseThirdMA==true)

{

ThirdMAValue = iCustom(NULL,0, "BuySel Alert",0,0);

if(UseCounterTrend==false)

{

if(BuyCondition==true && SlowMACurrent>ThirdMAValue) BuyCondition = true; else BuyCondition = false;

if(SellCondition==true && SlowMACurrent<ThirdMAValue) SellCondition = true; else SellCondition = false;

}

さもなくば

{

if((BuyCondition==true && FastMACurrent<ThirdMAValue) ||| (SellCondition==true && FastMACurrent<ThirdMAValue))

(SellCondition==true && FastMACurrent>ThirdMAValue))CounterTrend = true; else CounterTrend = false;

ありがとうございます。

ファイル:
 

ねぇ。

StopAndReverseとExitOnCrossにあまり違いがないように思うのですが、私の勘違いでしょうか?

 

ユニバーサルマクロスEAでトレーリングプロフィールを設定する方法。

 

こんにちは、皆さん。

最後のUniversalMAcrossで、x時間後にclose_losing_positionを追加することは可能ですか?

私は、sertenの設定で閉じない取引を持ち続けています:stoplosが追加されていません。

私はUseCounterTrendをtrueにしてこの問題があります。

そして、3番目のMAをtrueで使用します。

良いセットファイルを共有しましょう

 

良いセットファイルを教えてください。

私が抱えている問題はCT_stopにあるようです。

すべてのポジションに同じストップ、TP、トレーリングルールを与えることは可能でしょうか?

私は良いセットファイルを持っていますが、ビューポジションがクローズされずにDDの原因となります。

もし、ポジションが通常のSLでクローズされるなら、結果はとても良いものです。

ファイル:
chart.gif  40 kb
 
star821:
mladenさん、こんにちは。

添付の「BuySel Alert」インジケータを「第三移動平均線」の代わりに使ってみました。

x "が "BUY "の時は、"BUY "のみになる。

x "が "SELL "の時は、"SELL "のみになる。

と表示されるのですが、うまくいきません。

検証をお願い

します。

下記は「Buysel Alert」インジケータ です。

#プロパティ indicator_chart_window

#プロパティ indicator_buffers 1

#プロパティ indicator_color1 白

#property indicator_width1 10

//---- 入力パラメータ

extern int barn=300;

extern int Length=30;// 19でした。

double prev;

double last;

double alertBar;

extern int SoundAlertMode = 1;

extern int Soundonly = 1;

extern bool targets = false;

//---- バッファ

double ExtMapBuffer1[];

//double ExtMapBuffer2[];

//+------------------------------------------------------------------+

//| カスタムインジケータ初期化関数

//+------------------------------------------------------------------+

int init()

{

//---- インジケータ

SetIndexEmptyValue(0,0.0);

SetIndexDrawBegin(0, barn);

SetIndexStyle(0,DRAW_ARROW)を設定します。

SetIndexArrow(0,251);

SetIndexBuffer(0,ExtMapBuffer1)を設定します。

IndicatorShortName("DIN")。

そこで、"iMA() "の代わりに "iCustom() "を使っています。

//第三移動平均線

//+------------------------------------------------------------------+

if(UseThirdMA==true)

{

ThirdMAValue = iCustom(NULL,0, "BuySel Alert",0,0);

if(UseCounterTrend==false)

{

if(BuyCondition==true && SlowMACurrent>ThirdMAValue) BuyCondition = true; else BuyCondition = false;

if(SellCondition==true && SlowMACurrent<ThirdMAValue) SellCondition = true; else SellCondition = false;

}

さもなくば

{

if((BuyCondition==true && FastMACurrent<ThirdMAValue) ||| (SellCondition==true && FastMACurrent<ThirdMAValue))

(SellCondition==true && FastMACurrent>ThirdMAValue))CounterTrend = true; else CounterTrend = false;

ありがとうございました。

スター821

BuySell alertは、バッファの値が0であることが多く、0以外の値であっても通常の移動 平均と比較することはできません。この2つの指標は同じ系列には属さないので、比較することはできません。

 

Noted and Thank you mladen.

 

hi; mladen お世話になりました、改善されたeaです。

ポールック

 

EDIT: 私もです。

投稿を忘れてしまい、投稿するものを手に入れたのですが、このEAにはなかったのです。

ありがとうございます。

 

今、テストしているので、結果を報告します。