Disliked{quote} your program is right only ... only the dots comes one point below and above and the numbers are below that dot and above that dot is simply good....Ignored
can you fix it?
I will code your pivot EAs for no charge 23 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} your program is right only ... only the dots comes one point below and above and the numbers are below that dot and above that dot is simply good....Ignored
int OnInit() { //--- ObjectCreate(0,"Disable",OBJ_BUTTON,0,0,0); ObjectSetInteger(0,"Disable",OBJPROP_XDISTANCE,25); ObjectSetInteger(0,"Disable",OBJPROP_YDISTANCE,100); ObjectSetInteger(0,"Disable",OBJPROP_XSIZE,100); ObjectSetInteger(0,"Disable",OBJPROP_YSIZE,50); ObjectSetString(0,"Disable",OBJPROP_TEXT,"Disable"); ObjectSetInteger(0,"Disable",OBJPROP_COLOR, White); ObjectSetInteger(0,"Disable",OBJPROP_BGCOLOR, Red); ObjectSetInteger(0,"Disable",OBJPROP_BORDER_COLOR,Red); ObjectSetInteger(0,"Disable",OBJPROP_BORDER_TYPE,BORDER_FLAT); ObjectSetInteger(0,"Disable",OBJPROP_BACK,false); ObjectSetInteger(0,"Disable",OBJPROP_HIDDEN,true); ObjectSetInteger(0,"Disable",OBJPROP_STATE,false); ObjectSetInteger(0,"Disable",OBJPROP_FONTSIZE,12); //--- return(INIT_SUCCEEDED); } void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { if(sparam== "Disable") { ObjectSetInteger(0,"Disable",OBJPROP_STATE,false); } else { // order send code } //--- }
Disliked{quote} i didnt fix.... i felt this is correct only.. just i changed colors... {file} {file}Ignored
Disliked{quote} you are correct. any one here have solid strategy even 55% winning would be fine, i will create ea and share with youIgnored
Dislikedcan any body help me to code help for my EA with button i want to place an enable/disable toggle/push button in chart, so when its enable ea start trade, when disable , no new trade i dont want disable auto trade button so that Ea can run in others pair. int OnInit() { //--- ObjectCreate(0,"Disable",OBJ_BUTTON,0,0,0); ObjectSetInteger(0,"Disable",OBJPROP_XDISTANCE,25); ObjectSetInteger(0,"Disable",OBJPROP_YDISTANCE,100); ObjectSetInteger(0,"Disable",OBJPROP_XSIZE,100); ObjectSetInteger(0,"Disable",OBJPROP_YSIZE,50); ObjectSetString(0,"Disable",OBJPROP_TEXT,"Disable");...Ignored
//+------------------------------------------------------------------+ #property strict #include <ChartObjects\ChartObjectsTxtControls.mqh> //+------------------------------------------------------------------+ class EAbutton : public CChartObjectButton { public: bool Create() { string name = "EA_ACTIVE_BUTTON_"; ::ObjectsDeleteAll(0,name); name+= string(ChartID()); if(!Create(0,name,0,0,0,0,0)) return false; if(!Corner(CORNER_LEFT_LOWER)) return false; if(!Anchor(ANCHOR_LEFT_LOWER)) return false; if(!X_Size(100)) return false; if(!Y_Size(30)) return false; if(!X_Distance(2)) return false; if(!Y_Distance(32)) return false; if(!BackColor(clrOrangeRed)) return false; if(!Color(clrWhite)) return false; if(!Description("Disabled")) return false; return true; } void OnChartEvent(const string sparam) { if(sparam==m_name) { if(!State()) { BackColor(clrOrangeRed); Description("Disabled"); } else { BackColor(clrLimeGreen); Description("Active"); } } } }; //+------------------------------------------------------------------+ EAbutton button; //+------------------------------------------------------------------+ int OnInit() { if(!button.Create()) return INIT_FAILED; return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ void OnTick() { if(!button.State()) return; /*EA logic*/ } //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { button.OnChartEvent(sparam); Comment("Button-state = ",button.State()?"Active":"Disabled"); } //+------------------------------------------------------------------+
Disliked{quote} Check the dimensions of your arrays. Moreover, your code syntax is invalid (missing assignment, and a semicolon to end the add statement) and will not compile correctly. {quote} ex4 files can't be read by programmers. You need to supply the mq4 file if you want the code modified. {quote} If I understand correctly, you're asking for a multi-timeframe MA indicator like the #MTF MA that I've attached. The reason the plot appears 'stepped' is because a H4 MA will change its value only once every sixteen M15 candles (see screenshot). To get a...Ignored
Disliked{quote} Most likely your arrays are out of range. Make sure you use #property strict in your programs because it will throw an exception when this happensIgnored
Disliked{quote} Here's how I would do it. //+------------------------------------------------------------------+ #property strict #include <ChartObjects\ChartObjectsTxtControls.mqh> //+------------------------------------------------------------------+ class EAbutton : public CChartObjectButton { public: bool Create() { string name = "EA_ACTIVE_BUTTON_"; ::ObjectsDeleteAll(0,name); name+= string(ChartID()); if(!Create(0,name,0,0,0,0,0)) return false; if(!Corner(CORNER_LEFT_LOWER)) return false; if(!Anchor(ANCHOR_LEFT_LOWER)) return false; if(!X_Size(100))...Ignored
DislikedHello, I have an EA that I lost... this is the old version. I'm trading hedge method these days and remembered back in the day, before FIFO this EA was amazing. Anyway, a few bugs in this version - would like to see if anyone would be willing to update for everyone. This is an aggressive EA for 1M Charts, Any pair, and timeframe with some complicated logic. Open positions in group example: Next MA Cross Buy Trade1 lot size: 0.01 Sell Trade2 lot size: 0.02 Buy Trade3 lot size: 0.03 Sell Trade4 lot size: 0.04 Buy Trade5 lot size: 0.05 Sell Trade6...Ignored