【MT4/5】Meta Trader初心者専用55【EA素人】 [無断転載禁止]©2ch.net
レス数が1000を超えています。これ以上書き込みはできません。
>>992
ちょっと間違ってたので訂正します。たぶんこれでいけるかと。
double iMA_Custom(string symbol, int timeframe, int maperiod, int mashift, int mamethod, int price, int shift)
{
double ret = 0;
if(IsTesting())
{
int collection = 1;
if(mamethod == MODE_EMA || mamethod == MODE_SMMA) collection = 16;
if(Bars(symbol, timeframe) - shift < maperiod * collection) return(0);
double ocBuf[];
ArrayResize(ocBuf, maperiod * collection);
if(price == PRICE_OPEN && CopyOpen(symbol, timeframe, shift + mashift, maperiod * collection, ocBuf) < 0) return(0);
if(price == PRICE_HIGH && CopyHigh(symbol, timeframe, shift + mashift, maperiod * collection, ocBuf) < 0) return(0);
if(price == PRICE_LOW && CopyLow(symbol, timeframe, shift + mashift, maperiod * collection, ocBuf) < 0) return(0);
if(price == PRICE_CLOSE && CopyClose(symbol, timeframe, shift, maperiod * collection, ocBuf) < 0) return(0);
ret = iMAOnArray(ocBuf, 0, ArrayRange(ocBuf, 0) - maperiod * (collection - 1), 0, mamethod, 0);
ArrayFree(ocBuf);
}else{
ret = iMA(symbol,timeframe,maperiod,mashift,mamethod,price,shift);
}
return(ret);
} うああ、PRICE_CLOSEのとこ訂正しわすれてた。↓でお願いします。
if(price == PRICE_CLOSE && CopyClose(symbol, timeframe, shift + mashift, maperiod * collection, ocBuf) < 0) return(0); >>997
5つ全部だよ。
バックテストしてみればどれだけすごいかわかる。 >>998
通貨指定と勝率、plラインが典型的なあれでワロタ。ただのアフィ目的は消えてくれるかな? >>999
デモ口座で稼働してコピーツールで取引口座で売買するんだよ。
ibに関しては自分でいい所見つけてくれw このスレッドは1000を超えました。
新しいスレッドを立ててください。
life time: 208日 16時間 54分 59秒 レス数が1000を超えています。これ以上書き込みはできません。