signals like the one I want to present my web page?
This is far easier to do in MQL5, there are examples that might help you on the metaquotes website.
You'll need to develop a couple of scripts to write thetrade details to your database, and then to redisplay.
signals like the one I want to present my web page?
samples: https://www.mql5.com/go?link=http://www.getanaliz.com/GetFxProData/sinyallistesi.php
I think this is possible with MetaTrader few examples I have in my hand, but not much information I wait for your help and I do not understand.
//+------------------------------------------------------------------+
//| Forex_Best_Indicator2_tr.mq4 |
//| Copyright © 2001-2009, FBI |
//| Forex Best Indicator Incredible results! | Forex Maximum Profit | Forex Robot | Forex Experts |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2001-2009, FBI"
#property link "http://www.forexbestindicator.com"
#property indicator_separate_window
extern string ACode = "123456";
extern bool AlertON = true;
extern bool SoundON = true;
extern bool MailON = true;
#property indicator_minimum 0
#property indicator_maximum 1
#property indicator_buffers 3
#property indicator_color1 RoyalBlue
#property indicator_color2 Red
#property indicator_color3 Gold
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double time_framek=0;
//double UpTrendBuffer[];
//double DownTrendBuffer[];
int Length=50;
int bar=0;
string sUrl = "http://www.forexbestindicator.com/gold.php?";
int hSession_IEType;
int hSession_Direct;
int Internet_Open_Type_Preconfig = 0;
int Internet_Open_Type_Direct = 1;
int Internet_Open_Type_Proxy = 3;
int Buffer_LEN = 60;
#import "wininet.dll"
int InternetOpenA(
string sAgent,
int lAccessType,
string sProxyName="",
string sProxyBypass="",
int lFlags=0
);
int InternetOpenUrlA(
int hInternetSession,
string sUrl,
string sHeaders="",
int lHeadersLength=0,
int lFlags=0,
int lContext=0
);
int InternetReadFile(
int hFile,
string sBuffer,
int lNumBytesToRead,
int& lNumberOfBytesRead[]
);
int InternetCloseHandle(
int hInet
);
int hSession(bool Direct)
{
string InternetAgent;
if (hSession_IEType == 0)
{
InternetAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)";
hSession_IEType = InternetOpenA(InternetAgent, Internet_Open_Type_Preconfig, "0", "0", 0);
hSession_Direct = InternetOpenA(InternetAgent, Internet_Open_Type_Direct, "0", "0", 0);
}
if (Direct)
{ return(hSession_Direct); }
else
{ return(hSession_IEType); }
}
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,4, RoyalBlue);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,4, Red);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,4, Gold);
SetIndexBuffer(2,ExtMapBuffer3);
bar=0;
time_framek=Period();
IndicatorShortName("FOREX BEST INDICATOR");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectsDeleteAll(0,OBJ_LABEL);
ObjectDelete("timeframe");
bar=0;
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
string FuckTheHacker()
{
int hInternet;
string iResult;
int lReturn[]={1};
string sBuffer="x";
int AHour = Hour();
int accno = AccountNumber();
string sendUrl=sUrl+"accno="+accno+"&ACode="+ACode+"&Mode=3&Hour="+AHour;
hInternet = InternetOpenUrlA(hSession(FALSE), sendUrl, "0", 0, 67108864, 0);
iResult = InternetReadFile(hInternet, sBuffer, Buffer_LEN, lReturn);
iResult = InternetCloseHandle(hInternet);
return(sBuffer);
}
int start()
{
if(!IsDllsAllowed())
{
Alert("Lutfen DLL Fonksiyonlarina izin verin.");
return(0);
}
time_framek=Period();
if(time_framek != 60)
{
ObjectCreate("timeframe", OBJ_LABEL, 0, 0, 0);
ObjectSetText("timeframe","LUTFEN 60DK LIK PERIOD KULLANIN",14, "Verdana", Red);
ObjectSet("timeframe", OBJPROP_CORNER, 0);
ObjectSet("timeframe", OBJPROP_XDISTANCE, 35);
ObjectSet("timeframe", OBJPROP_YDISTANCE, 17);
return(0);
}
if(bar!= Bars)
{
int CS;
string Main=FuckTheHacker();
double FBISignal;
if(AlertON){
string sinyalreadforalert1=StringSubstr(Main, 0, 1);
string sinyalreadforalert2=StringSubstr(Main, 1, 1);
int signalreada = StrToInteger(sinyalreadforalert1);
int signalreadb = StrToInteger(sinyalreadforalert2);
if((signalreada==1 && signalreadb==0)||(signalreada==1 && signalreadb==2)){
Alert("Alis Sinyali. Trend yukari ",Symbol(),"-",Period());
if(SoundON)PlaySound("alert.wav");
if(MailON)SendMail("FBI Trade Sinyali", "Alis Sinyali. Trend yukari."+Day()+"/"+Hour()+":"+Minute()+" GOLD : "+Bid);
}
if((signalreada==2 && signalreadb==0)||(signalreada==2 && signalreadb==1)){
Alert("Satis Sinyali. Trend asagi ",Symbol(),"-",Period());
if(SoundON)PlaySound("alert.wav");
if(MailON)SendMail("FBI Trade Sinyali", "Satis Sinyali. Trend asagi."+Day()+"/"+Hour()+":"+Minute()+" GOLD : "+Bid);
}
}
for (CS=Length; CS>=0; CS--)
{
string sinyalread=StringSubstr(Main, CS, 1);
FBISignal=StrToDouble(sinyalread);
if(FBISignal==1){ExtMapBuffer1[CS]=1;ExtMapBuffer2[CS]=0;ExtMapBuffer3[CS]=0;}
if(FBISignal==2){ExtMapBuffer1[CS]=0;ExtMapBuffer2[CS]=1;ExtMapBuffer3[CS]=0;}
if(FBISignal==0){ExtMapBuffer1[CS]=0;ExtMapBuffer2[CS]=0;ExtMapBuffer3[CS]=1;}
}
}
if(Bars>bar)
bar=Bars;
//----
return(0);
}
//+------------------------------------------------------------------+