Disliked{quote} Have you tried CLR_NONE ?? I think EMPTY might also work, but the above is much more explicit.Ignored
![](https://resources.faireconomy.media/images/emojis/64/1f60a.png?v=15.1)
I will code your pivot EAs for no charge 24 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} Have you tried CLR_NONE ?? I think EMPTY might also work, but the above is much more explicit.Ignored
Disliked{quote} As a work around, I have many times simply, just used the chart background colour in the settings.Ignored
Disliked{quote} Hi please where can i get the stoch5m/lwma indicator in the screenshot can you share here.ThanksIgnored
DislikedHey Guys, I've got this "MA crossover alert" indicator that used to work but now, likely due to MT4 updates, it has a couple compiling errors. If any of you fine gentlemen would like to fix it up I would appreciate it. Or if you're aware of a cleaner coded crossover alert that would be fine with me as well. Here's the file and thanks for your time. {file}Ignored
DislikedCan anyone tell me pls how to make a color into "none" in the code? I know how to change colors in the code but 'None' doesn't work as a replacement for the color that has already been coded. What's the trick?Ignored
DislikedHey Guys, I've got this "MA crossover alert" indicator that used to work but now, likely due to MT4 updates, it has a couple compiling errors. If any of you fine gentlemen would like to fix it up I would appreciate it. Or if you're aware of a cleaner coded crossover alert that would be fine with me as well. Here's the file and thanks for your time. {file}Ignored
DislikedHey Guys, I've got this "MA crossover alert" indicator that used to work but now, likely due to MT4 updates, it has a couple compiling errors. If any of you fine gentlemen would like to fix it up I would appreciate it. Or if you're aware of a cleaner coded crossover alert that would be fine with me as well. Here's the file and thanks for your time. {file}Ignored
Disliked{quote} Декомпилирован и дважды переименован -скорее всего, какой-то wpr
Ignored
Disliked{quote} Hi please where can i get the stoch5m/lwma indicator in the screenshot can you share here.ThanksIgnored
Disliked{quote} Just search web with "MT4 Read CSV" and you will hit a lot of examples. one of hit I got was https://www.mql5.com/en/forum/255091 where you can find complete solution on how to read and process csv. Regarding OBJ_VLINE and OBJ_TREND, it is well documented in mql5 site with sample code also. here is a code block you can use for OBJ_TREND: void DrawLine(string name, datetime Time1, datetime Time2, double Price1, double Price2,color lcolor, int lwidth,ENUM_LINE_STYLE linestyle) { ObjectDelete(name); ObjectCreate(name,OBJ_TREND,0,Time1,0,Time2,0);...Ignored
Disliked{quote}если вы действительно серьезны и любопытны и думаете, что единственный способ не может жить...
Ignored
DislikedHi Beerun this is a part code of buyorder() is it necessary to add sleep function, before ordersend ? OpenPrice=NormalizeDouble(MarketInfo(Symbol(),MODE_ASK),(int)MarketInfo(_Symbol,5)); // For more accuracy Sleep (10); RefreshRates(); buyticket = OrderSend ( Symbol(), OP_BUY,LotSize,OpenPrice,slippage,0,0," Main Buy" ,MagicNumber,0,clrAliceBlue); thanks vivekIgnored
#property copyright "© 2005-2007 RickD" #property link "www.e2e-fx.net" #define major 1 #define minor 0 #import "user32.dll" int SendMessageW(int hWnd,int Msg,int wParam,int lParam); int FindWindowW(int lpClassName,string lpWindowName); #import "kernel32.dll" int GlobalAddAtomW(string str); int GlobalDeleteAtom(int atom); int GlobalGetAtomNameW(int atom,int &buf[],int size); #import #define FormClass NULL #define WND_NAME "MT4.DDE.2" #define WM_USER 0x0400 #define WM_CHECKITEM 0x0401 #define WM_ADDITEM 0x0402 #define WM_SETITEM 0x0403 double MA[]; // array for the indicator iMA int MA_handle; // handle of the indicator iMA //----------------------------------------------------------------------------- void OnInit() { EventSetTimer(1); //--- creation of the indicator iMA MA_handle=iMA(NULL,0,21,0,MODE_EMA,PRICE_CLOSE); return; } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnTick() { // } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnTimer() { //--- filling an array MA[] with current values of iMA //--- Copying 100 elements CopyBuffer(MA_handle,0,0,100,MA); ArraySetAsSeries(MA,true); // Check & Add Item DDE if(!CheckItem("A","B")) { if(!AddItem("A","B")) return; } if(!CheckItem("EQUITY","Value")) AddItem("EQUITY","Value"); if(!CheckItem("TIME","Value")) AddItem("TIME","Value"); if(!CheckItem("BALANCE","Value")) AddItem("BALANCE","Value"); if(!CheckItem("KAR","Value")) AddItem("KAR","Value"); if(!CheckItem("MARGIN","Value")) AddItem("MARGIN","Value"); if(!CheckItem("MFREE","Value")) AddItem("MFREE","Value"); // Set Item Value DDE SetItem("EQUITY","Value",(double)AccountInfoDouble(ACCOUNT_EQUITY)); SetItem("TIME","Value",(string)TimeCurrent()); SetItem("BALANCE","Value",(double)AccountInfoDouble(ACCOUNT_BALANCE)); SetItem("KAR","Value",(double)AccountInfoDouble(ACCOUNT_PROFIT)); SetItem("MARGIN","Value",(double)AccountInfoDouble(ACCOUNT_MARGIN)); SetItem("MFREE","Value",(double)AccountInfoDouble(ACCOUNT_MARGIN_FREE)); SetItem("A","B","EMA(21): "+DoubleToString(MA[0],6)); } void OnDeinit(const int reason) { EventKillTimer(); } //------------------------------------------------------------------------------- bool CheckItem(string topic,string item) { int hWnd=FindWindowW(FormClass,WND_NAME); if(hWnd==0) { Alert("Cannot find "+WND_NAME+" window!"); return(false); } int _item=GlobalAddAtomW(topic+"!"+item); if(_item==0) { Alert("Cannot create "+topic+"!"+item+" atom!"); return(false); } int ret=SendMessageW(hWnd,WM_CHECKITEM,_item,0); GlobalDeleteAtom(_item); bool res=HIWORD(ret); if(res) return(true); int atm = LOWORD(ret); if(atm != 0) { int buf[255]; int cnt=GlobalGetAtomNameW(atm,buf,255*4); GlobalDeleteAtom(atm); string str=MakeStr(buf,cnt); Alert("[CheckItem] "+str); } return(false); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool AddItem(string topic,string item) { int hWnd=FindWindowW(FormClass,WND_NAME); if(hWnd==0) { Alert("Cannot find "+WND_NAME+" window!"); return(false); } int _item=GlobalAddAtomW(topic+"!"+item); if(_item==0) { Alert("Cannot create "+topic+"!"+item+" atom!"); return(false); } int ret=SendMessageW(hWnd,WM_ADDITEM,_item,0); GlobalDeleteAtom(_item); bool res=HIWORD(ret); if(res) return(true); int atm = LOWORD(ret); if(atm != 0) { int buf[255]; int cnt=GlobalGetAtomNameW(atm,buf,255*4); GlobalDeleteAtom(atm); string str=MakeStr(buf,cnt); Alert("[AddItem] "+str); } return(false); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool SetItem(string topic,string item,string val) { int hWnd=FindWindowW(FormClass,WND_NAME); if(hWnd==0) { Alert("Cannot find "+WND_NAME+" window!"); return(false); } int _item= GlobalAddAtomW(topic+"!"+item); if(_item == 0) { Alert("Cannot create "+topic+"!"+item+" atom!"); return(false); } int _val= GlobalAddAtomW(val); if(_val == 0) { Alert("Cannot create "+val+" atom!"); GlobalDeleteAtom(_item); return(false); } int ret=SendMessageW(hWnd,WM_SETITEM,_item,_val); GlobalDeleteAtom(_val); GlobalDeleteAtom(_item); bool res=HIWORD(ret); if(res) return(true); int atm = LOWORD(ret); if(atm != 0) { int buf[255]; int cnt=GlobalGetAtomNameW(atm,buf,255*4); GlobalDeleteAtom(atm); string str=MakeStr(buf,cnt); Alert("[SetItem] "+str); } return(false); } //----------------------------------------------------------------------------- int LOWORD(int val) { return((val>>16) &0xFFFF); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int HIWORD(int val) { return(val &0xFFFF); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ string MakeStr(int &buf[],int cnt) { string str=""; int ch=-1; for(int i=0; i<cnt; i++) { if(i%4 == 0) ch = buf[i/4] & 0xFF; if(i%4 == 1) ch = (buf[i/4] >> 8) & 0xFF; if(i%4 == 2) ch = (buf[i/4] >> 16) & 0xFF; if(i%4 == 3) ch = (buf[i/4] >> 24) & 0xFF; str=str+CharToString((uchar)ch); } return(str); } //+------------------------------------------------------------------+