묻다! - 페이지 97

 

여전히 문제

안녕 모두,

제 EA를 봐주신 Big Be에게 감사드립니다. 내 스토캐스틱 RSI에는 밑줄이 없습니다. 로 시도했을 때 오류가 발생했습니다. 그러나 몇 가지 사실을 알게 되었습니다.

1) 짧은 시간에 Strategy Tester 를 시도하면 더 빨리 작동하는 것 같습니다. H1 이상에 도달하면 정말 느려집니다. 매 틱마다 너무 많은 검사를 해야 하기 때문이라고 생각합니다. 그것에 대해 할 수 있는 일이 있습니까? H4 및 아마도 Daily에 맞게 최적화하고 싶습니다.

2) 실제 크로스 전에 첫 번째 거래가 발생하는 문제가 여전히 있습니다.

3) 내 백테스트를 볼 때 일부 거래를 완전히 놓친 것 같습니다. 내 데이터에 결함이 있거나 일치하지 않기 때문입니까? 나는 New Digital이 히스토리로 이동하여 더블 클릭하여 사용 중인 브로커에 대한 데이터를 얻는 방법을 설명하는 곳을 찾았습니다. 그런 다음 각 시간 프레임을 열고 도달할 때까지 "Page Up"을 누르고 있습니다. 끝이 났지만 소용없었다.

내가 보낸 프로그램의 일부는 3의 한 부분일 뿐입니다. 나는 여전히 다른 3개의 부분을 거기에 추가해야 합니다. 내가 전략 테스터를 더 빠르게 할 수 없다면 그것이 수익성 있는 아이디어인지 결코 알 수 없을 것입니다.

모든 아이디어나 제안이 도움이 될 것입니다.

문안 인사,

푸츠

 

내가 수정한 변동성 품질 지수 EA, Kiko_v2에 대해 내가 한 일을 연구하십시오.

여기에서 게시물 319를 참조하세요.

https://www.mql5.com/en/forum/general

즐거운 시간 보내세요,

빅비

 

Vq

안녕하세요 빅베입니다

아이디어 주셔서 감사합니다. 이번 주말에 일할게..다 잘되면..다음주말쯤이면 부자가 될텐데..하하하

푸츠

 

도와주세요

안녕하세요 Big Be와 모든 프로그래머 여러분,

Big Be, 나는 당신의 변동성 EA를 연구했지만 이제 그것은 결국 내 문제가 아닌 것 같습니다. 나는 백 테스팅 을 위해 IBFX를 사용하고 있었고 문제만 있었습니다. 마침내 포기하고 Alpari를 다운로드했는데 훨씬 잘 작동합니다.

적어도 지금은 내 EA에 대한 백테스트를 수행하는 데 며칠이 걸리지 않습니다. 그래서 나는 처음부터 프로그램을 다시 시작했고 주문을 하지 않았습니다.

이 프로그램은 기본적으로 codersguru의 EMS Fresh Cross이지만 Stochastic RSI와 StochRSI가 50선을 넘을 때 기반으로 하고 싶습니다. 나는 문제를 더 쉽게 분리할 수 있도록 변수를 포함하여 codersguru에 따라 거의 모든 것을 남겼습니다.

나는 기본적으로 내가 프로그램에 적용한 유일한 변경 사항이며 어떤 주문도 받지 않는 iCustom 기능에 문제가 있다고 생각합니다. 누군가가 그것을보고 그들이 내 실수를 찾을 수 있는지 볼 수 있습니까? 나는 이것을 작동시키기 위해 2주 동안 노력했고 그것은 나를 미치게 만들고 있다.

// 앞에 몇 가지 메모를 추가했습니다.

감사해요

푸츠

#property copyright "Putz FX

#property link "http://www.putzfx.com"

//---- input parameters

extern double TakeProfit=130;

extern double StopLoss = 60;

extern double Lots=1;

extern double TrailingStop=30;

extern double TimeFrame= 60;

extern bool ExitOnCross = true;

extern int MagicNumber = 444444;

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

//| expert initialization function |

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

int init()

{

//----

//----

return(0);

}

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

//| expert deinitialization function |

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

int deinit()

{

//----

//----

return(0);

}

int FreshCross ()

{

//This was added in based on what I could figure from Big Be.

if (Volume[0] != 1) return(0);

//what is the difference between using "Null" or "Symbol()" in iCustom as

//neither one works.

double SEma, LEma,SEmaP, LEmaP;

//The following 4 lines have been changed from the original

SEma = iCustom(Symbol(),PERIOD_H1,"Stochastic RSI",28,55,9,0,0);

LEma = 50;

SEmaP = iCustom(Symbol(),PERIOD_H1,"Stochastic RSI",28,55,9,0,1);

LEmaP = 50;

//Don't work in the first load, wait for the first cross!

//some changes were done to the below two lines as he was comparing the

//return value with the Ask or Bid and Close values

if(SEma>LEma && SEmaP < LEmaP) return(1); //up

if(SEma LEmaP) return(2); //down

return (0); //not changed

}

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

//| Check Open Position Controls |

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

int CheckOpenTrades()

{

int cnt;

int NumTrades; // Number of buy and sell trades in this symbol

NumTrades = 0;

for(cnt=OrdersTotal()-1;cnt>=0;cnt--)

{

OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES);

if ( OrderSymbol() != Symbol()) continue;

if ( OrderMagicNumber() != MagicNumber) continue;

if(OrderType() == OP_BUY ) NumTrades++;

if(OrderType() == OP_SELL ) NumTrades++;

}

return (NumTrades);

}

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

//| expert start function |

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

int start()

{

//----

int cnt, ticket, total;

double TP;

if(Bars<100)

{

Print("bars less than 100");

return(0);

}

/* if(TakeProfit<10)

{

Print("TakeProfit less than 10");

return(0); // check TakeProfit

}

*/

int isCrossed = 0;

isCrossed = FreshCross ();

total = CheckOpenTrades();

if(total < 1)

{

if(isCrossed == 1)

{

TP = 0;

if (TakeProfit > 0) TP = Ask + TakeProfit * Point;

ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,TP,"EMA_CROSS",MagicNumber,0,Green);

if(ticket>0)

{

if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice());

}

else Print("Error opening BUY order : ",GetLastError());

return(0);

}

if(isCrossed == 2)

{

TP = 0;

if (TakeProfit > 0) TP = Bid - TakeProfit * Point;

ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+StopLoss*Point,TP,"EMA_CROSS",MagicNumber,0,Black);

if(ticket>0)

{

if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("SELL order opened : ",OrderOpenPrice());

}

else Print("Error opening SELL order : ",GetLastError());

return(0);

}

return(0);

}

total = OrdersTotal();

for(cnt=0;cnt<total;cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

//OrderPrint();

if(OrderType()<=OP_SELL && OrderSymbol()==Symbol() && OrderMagicNumber() == MagicNumber)

{

if(OrderType()==OP_BUY) // long position is opened

{

// should it be closed?

/* REMOVED - Trailling stop only close */

if(ExitOnCross && isCrossed == 2)

{

OrderClose(OrderTicket(),OrderLots(),Bid,3,Black); // close position

return(0); // exit

}

/**/

// check for trailing stop

if(TrailingStop>0)

{

if(Bid-OrderOpenPrice()>Point*TrailingStop)

{

if(OrderStopLoss()<Bid-Point*TrailingStop)

{

OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Green);

return(0);

}

}

}

}

else // go to short position

{

// should it be closed?

/* REMOVED - Trailling stop only close */

if(ExitOnCross && isCrossed == 1)

{

OrderClose(OrderTicket(),OrderLots(),Ask,3,Black); // close position

return(0); // exit

}

/* */

// check for trailing stop

if(TrailingStop>0)

{

if((OrderOpenPrice()-Ask)>(Point*TrailingStop))

{

if((OrderStopLoss()>(Ask+Point*TrailingStop)) || (OrderStopLoss()==0))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderTakeProfit(),0,Red);

return(0);

}

}

}

}

}

}

return(0);

}

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

Stochastic RSI가 3개의 입력 매개변수를 사용하는지 확인했습니까?

(내가 본 것은 4가 걸립니다)

 

도움이 되는

안녕 랄프,

당신의 도움을 주셔서 감사합니다. 광산에는 2개의 버퍼가 있지만 4개의 입력 매개변수 가 있습니다. 4개의 매개변수로 시도했지만 작동하지 않았지만 2로 시도하고 주문을 받았습니다. 이제 나머지 작업만 하면 됩니다. 저를 풀어주셔서 감사합니다.

푸츠

 

누비의 멍청한 질문!

게시물이 여기로 옮겨졌습니다: https://www.mql5.com/en/forum

파일:
buy.jpg  7 kb
 

아무도 나를 도와?

안녕 모두

Pivot_Monday_fixed 표시기를 아는 모든 것

이 표시기에 약간의 변경이 필요합니다

나는 피벗 라인과 다른 4개의 라인만 원한다

2 파란색 Pivot +20 및 Pivot + 40

2 빨간색 피벗 - 20 및 피벗 - 40

단 5줄

감사해요

파일:
 

멍청한 질문

누군가 EA의 mq4 파일을 ex4 파일로 변환하는 가장 빠른 방법을 알려줄 수 있습니까?

mt4에서 한 번 실행한 후 전문가 파일에 ex4로 표시된다는 것을 알고 있지만 이것이 유일한 방법입니까?

미리 감사드립니다

 
fxgrm:
누군가 EA의 mq4 파일을 ex4 파일로 변환하는 가장 빠른 방법을 알려줄 수 있습니까?

mt4에서 한 번 실행한 후 전문가 파일에 ex4로 표시된다는 것을 알고 있지만 이것이 유일한 방법입니까?

미리 감사드립니다

MetaEditor에서 .mq4 파일을 연 다음 "Compile"을 클릭하면 .ex4 파일이 생성됩니다.