-
কি ভাবে ea বানাবেন ।
আমারা যারা ফরেক্স মার্কেট এ কাজ করে আনকে এ বায় এবং সেল সিগ্নাল বজতে পারিনা তাদের জন্য এয় এম কিউ এল কোডিং এয় কোডিং ট্যাক্স তাকে কপি করে সেভ করতে হবে এম কিউ এল ফরমেট এ
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Blue
//---- buffers
double ExtUpFractalsBuffer[];
double ExtDownFractalsBuffer[];
// Номер бара, по которому будет искаться сигнал
#define SIGNAL_BAR 2
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicator buffers mapping
SetIndexBuffer(0, ExtUpFractalsBuffer);
SetIndexBuffer(1, ExtDownFractalsBuffer);
//---- drawing settings
SetIndexStyle(0, DRAW_ARROW);
SetIndexArrow(0, 119);
SetIndexStyle(1, DRAW_ARROW);
SetIndexArrow(1, 119);
//----
SetIndexEmptyValue(0, 0.0);
SetIndexEmptyValue(1, 0.0);
//---- name for DataWindow
SetIndexLabel(0, "sFractal Up");
SetIndexLabel(1, "sFractal Down");
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int i, nCountedBars;
bool bFound;
double dCurrent;
nCountedBars = IndicatorCounted();
//---- last counted bar will be recounted
if(nCountedBars <= 2)
i = Bars - nCountedBars - 3;
if(nCountedBars > 2)
{
nCountedBars--;
i = Bars - nCountedBars - 1;
}
//----Up and Down Fractals
while(i >= 2)
{
//----Fractals up
bFound = false;
dCurrent = High[i];
if(dCurrent > High[i+1] && dCurrent > High[i+2] && dCurrent > High[i-1] &&
dCurrent > High[i-2])
{
bFound = true;
ExtUpFractalsBuffer[i] = dCurrent;
}
//----6 bars Fractal
if(!bFound && (Bars - i - 1) >= 3)
{
if(dCurrent == High[i+1] && dCurrent > High[i+2] && dCurrent > High[i+3] &&
dCurrent > High[i-1] && dCurrent > High[i-2])
{
bFound = true;
ExtUpFractalsBuffer[i] = dCurrent;
}
}
//----7 bars Fractal
if(!bFound && (Bars - i - 1) >= 4)
{
if(dCurrent >= High[i+1] && dCurrent == High[i+2] && dCurrent > High[i+3] &&
dCurrent > High[i+4] && dCurrent > High[i-1] && dCurrent > High[i-2])
{
bFound = true;
ExtUpFractalsBuffer[i] = dCurrent;
}
}
//----8 bars Fractal
if(!bFound && (Bars - i - 1) >= 5)
{
if(dCurrent >= High[i+1] && dCurrent == High[i+2] && dCurrent == High[i+3] &&
dCurrent > High[i+4] && dCurrent > High[i+5] && dCurrent > High[i-1] &&
dCurrent > High[i-2])
{
bFound = true;
ExtUpFractalsBuffer[i] = dCurrent;
}
}
//----9 bars Fractal
if(!bFound && (Bars - i - 1) >= 6)
{
if(dCurrent >= High[i+1] && dCurrent == High[i+2] && dCurrent >= High[i+3] &&
dCurrent == High[i+4] && dCurrent > High[i+5] && dCurrent > High[i+6] &&
dCurrent > High[i-1] && dCurrent > High[i-2])
{
bFound = true;
ExtUpFractalsBuffer[i] = dCurrent;
}
}
//----Fractals down
bFound = false;
dCurrent = Low[i];
if(dCurrent < Low[i+1] && dCurrent < Low[i+2] && dCurrent < Low[i-1] &&
dCurrent < Low[i-2])
{
bFound = true;
ExtDownFractalsBuffer[i] = dCurrent;
}
//----6 bars Fractal
if(!bFound && (Bars - i - 1) >= 3)
{
if(dCurrent == Low[i+1] && dCurrent < Low[i+2] && dCurrent < Low[i+3] &&
dCurrent < Low[i-1] && dCurrent < Low[i-2])
{
bFound = true;
ExtDownFractalsBuffer[i] = dCurrent;
}
}
//----7 bars Fractal
if(!bFound && (Bars - i - 1) >= 4)
{
if(dCurrent <= Low[i+1] && dCurrent == Low[i+2] && dCurrent < Low[i+3] &&
dCurrent < Low[i+4] &&
dCurrent < Low[i-1] && dCurrent < Low[i-2])
{
bFound = true;
ExtDownFractalsBuffer[i] = dCurrent;
}
}
//----8 bars Fractal
if(!bFound && (Bars - i - 1) >= 5)
{
if(dCurrent <= Low[i+1] && dCurrent == Low[i+2] && dCurrent==Low[i+3] &&
dCurrent < Low[i+4] && dCurrent < Low[i+5] && dCurrent < Low[i-1] &&
dCurrent < Low[i-2])
{
bFound = true;
ExtDownFractalsBuffer[i] = dCurrent;
}
}
//----9 bars Fractal
if(!bFound && (Bars - i- 1) >= 6)
{
if(dCurrent <= Low[i+1] && dCurrent == Low[i+2] && dCurrent <= Low[i+3] &&
dCurrent == Low[i+4] && dCurrent < Low[i+5] && dCurrent < Low[i+6] &&
dCurrent < Low[i-1] && dCurrent < Low[i-2])
{
bFound = true;
ExtDownFractalsBuffer[i] = dCurrent;
}
}
i--;
}
// Статические переменные, в которых хранятся время последнего бара и направление
// последнего сигнала
static int PrevSignal = 0, PrevTime = 0;
// Если баром для анализа выбран не 0-й, нам нет смысла проверять сигнал несколько раз.
// Если не начался новый бар, выходим.
if(SIGNAL_BAR > 0 && Time[0] <= PrevTime)
return(0);
// Отмечаем, что этот бар проверен
PrevTime = Time[0];
// Если предыдущий сигнал был СЕЛЛ или это первый запуск (PrevSignal=0)
if(PrevSignal <= 0)
{
if(ExtDownFractalsBuffer[SIGNAL_BAR] > 0)
{
PrevSignal = 1;
Alert("sFractals (", Symbol(), ", ", Period(), ") - BUY!!!");
}
}
if(PrevSignal >= 0)
{
if(ExtUpFractalsBuffer[SIGNAL_BAR] > 0)
{
PrevSignal = -1;
Alert("sFractals (", Symbol(), ", ", Period(), ") - SELL!!!");
}
}
//----
return(0);
}
//+------------------------------------------------------------------+
-
এয় এম কিউ এল কোডিং ট্যাক্স দিয়ে কি আয় এবং ব্যয় সিগন্যাল বুঝা যায়? খুব ভাল তো।
-
হা এয় এম কিউ এল কোডিং ট্যাক্স দিয়ে আপনি বায় অ্যান্ড সেল সিগ্নাল পাবেন তবে আপনাকে বায় অ্যান্ড সেল করতে হবে ।
-
ভাই এটা তো খুবই জটিল মনে হচ্ছে। প্রেক্টিক্যালি যদি করা জেত, তাহলে অনেক সহজ হত।
-
আমি এখনো নিজেই ট্রেড করছি তাই আমি আমার নিজের কোশল আরো অভিজ্ঞ করে তুলতে এখনো এক্সপার্ট এ্যাডভাইসর্স ব্যাবহার করিনি।তাই আমি আপনার কাছে জানতে চাই এক্সপার্ট এ্যাডভাইসর্স ব্যাবহার করাটা কি আমাদের জন্য ভালো হবে।
-
আমি প্রায় আড়াই বছর ধরে ইনেস্টাফরেক্স ব্রোকারে সাথে কাজ করছিকিন্তু আমার যানা মতে এশিয়ার কয়েকটি পুরুষ্কার ও পেয়েছে ইনেস্টাফরেক্স।তবে মাঝে মাঝে আমি অনেক ভালো কাজ করতে পারি কিন্তু কিছু কিছু সময় এই ব্রোকারের কিছু প্রব্লেম ফেস করতে হয় কিন্তু আমি মনে করি এটা আমাদের ভালোর জন্য করতে হয়।কারন আমরা যদি সব কিছু খুভ সহজে পেয়ে যাই তাহলে সেটা আমাদের মনে থাকবে না তাই আমি মনে করি আমার যানা মতে এশিয়ার সেরা ব্রোকার ইনেস্টাফরেক্স .
-
ভাই বাই সেল ইন্ডিকেটর তো দিলেন যদি ব্যবহার পদ্ধতি দিতেন তবে খুবই ভালো হতো। কারন নতুন হিসাবে আমাদের এই ইন্ডিকেটর ব্যবহার করাটা একটু কঠিন হবে তো তাই বলছিলাম। আমি এই ব্যবসায় নতুন আপনারা যদি সহযোগীতা করেন তাহলে অবশ্যই আমরা ভালো করতে পারব। তাই আপনি যদি আমাদের উদ্দেশ্যে এই ইন্ডিকেটর এর ব্যবহার পদ্ধতি বিশ্লেষন করে দেন তাহলে খুব ভালো হয়।
-
চমৎকার এই পোষ্টের জন্য ধন্যবাদ।যদিও আমি ea বা robot কোনটার উপর আস্থা রাখতে পারিনা।তবুও বলতে পারি যারা ea বা robot নিয়ে কাজ করতে চান,তাদের কাজে আসবে।আপনার কাছে যদি ইন্ডিকেটর বানানোর কোন স্ক্রিপ্ট থাকে,তাহলে শেয়ার করলে উপকৃত হব।
-
আপনি যে কোড টা দিয়ে সেন সেটা ভালই লাগল।। তবে এটা কিভাবে ইন্সটল করব , কি ভাবে করব জানিনা ।। কারন আমি আগে কখন ইএ নিয়া কাজ করিনাই ।। তাই ঠিক বুজসিনা কি করবো ।। আপনি একটু সাহায্য করলে উপকৃত হব ।। এন্ডিকেটর থাকলে নিজের এনালাইসিস এর ওপর কনফিডেন্স পাবো ভাল ...।
-
অনেক ধান্নবাদ আপনাকে আমি নুতুন তাই সব কিছু নুতন করে দেকছি।তাই আপনাদের সবাইকে ধন্নবাদ।