Disliked{quote} you need to add the suffix ".£" ... so you will put in the code... like this: Symbol()+".£" best ... declare like this: extern string Suffix=".£"; use.... Symbol()+Suffix; God bless you danjuma and God bless everyone!Ignored
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} you need to add the suffix ".£" ... so you will put in the code... like this: Symbol()+".£" best ... declare like this: extern string Suffix=".£"; use.... Symbol()+Suffix; God bless you danjuma and God bless everyone!Ignored
Dislikedhello all member , who know this indicator ?? this indicator can add alert ?? {image}Ignored
DislikedHi generous peoples/coders I would like to have simple code to determine if a vertical line is found on the current candle? if (object_vertical line == current time) then open buy something like that My strategy involves placing vertical lines at future time points, when time = vertical line then initiate a buy or sell action depending on line color let's say. Appreciate very much any help. cheersIgnored
Disliked{quote} Sir am sorry i dont know how to explain this since am not a programmer, i gave a working EA example on mq4 you said you dont have mt4, how can i now upload indicator? the attached image has exten int of EA with hidden and hard stoploss, the original EA has ATR, MA, partial close, trailstop, breakeven,Stoploss but i dont need all that maybe is semi-Auto EA you mean but its not indicator please how better can i explain that this is EA? EA that manage trade with hard stoploss (connect to broker server) virtual stoploss(not connected to broker...Ignored
Disliked{quote} I don't understand... I'm using google translate... explain it to me simply....or otherwise... and I promise to look and see what I can do.... God bless you Motiram and God bless everyone!Ignored
Disliked{quote} my friend dont worry we will help you in any way we can if possible. in order to be able to code this EA in mt5 i need you to explain based on what conditions SL and TP are placed? based on ATR? based on Fibo ratio and x amount of previous candles highs and lows? or based on a fixed number in pips or a percentage of account balance? do you enter a trade manually or trade entry is based on some other conditions? you need to be specific and precise on every detail.Ignored
Disliked{quote} Hello LvMMT, 1-need horizontal line draw from x candle back 2-need horizontal line draw from x days back Thanks and Regards, MotiIgnored
DislikedHi generous peoples/coders I would like to have simple code to determine if a vertical line is found on the current candle? if (object_vertical line == current time) then open buy something like that My strategy involves placing vertical lines at future time points, when time = vertical line then initiate a buy or sell action depending on line color let's say. Appreciate very much any help. cheersIgnored
Disliked{quote} Hi pips4life, just when I thought everything is solved, I discovered this indicator also do the same thing. If you have time over the weekend, could you please help me edit the coding? Thanks thanks. PS: I'm still learning how to do this on my own but my coding skills is still very shallow... if you can add some helpful notes when you edit the file like what you have done previously, I think it will help me with my learning curve. Thank you very much for your time, I do appreciate you very much for teaching me here.{file} -------------...
Ignored
void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam) { if (id==CHARTEVENT_OBJECT_CLICK && ObjectGet(sparam,OBJPROP_TYPE)==OBJ_BUTTON) { if (StringFind(sparam,UniqueID+":symbol:",0)==0) ChartSetSymbolPeriod(0,ObjectGetString(0,sparam,OBJPROP_TEXT),_Period); // if (StringFind(sparam,UniqueID+":time:" ,0)==0) ChartSetSymbolPeriod(0,_Symbol,stringToTimeFrame(ObjectGetString(0,sparam,OBJPROP_TEXT))); if (StringFind(sparam,UniqueID+":back:" ,0)==0) ObjectSet(sparam,OBJPROP_STATE,false); if (StringFind(sparam,UniqueID+":master:" ,0)==0) {hideButtons();visibleButtons= !visibleButtons;} if (UseAsMasterChart) StoreChartPair(); if (sound!="") PlaySound(sound); } }
void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam) { if(id==CHARTEVENT_OBJECT_CLICK) //added { //added { if (StringFind(sparam,UniqueID+":symbol:",0)==0) ChartSetSymbolPeriod(0,ObjectGetString(0,sparam,OBJPROP_TEXT),_Period); // if (StringFind(sparam,UniqueID+":time:" ,0)==0) ChartSetSymbolPeriod(0,_Symbol,stringToTimeFrame(ObjectGetString(0,sparam,OBJPROP_TEXT))); if (StringFind(sparam,UniqueID+":back:" ,0)==0) ObjectSet(sparam,OBJPROP_STATE,false); if (StringFind(sparam,UniqueID+":master:" ,0)==0) {hideButtons();visibleButtons= !visibleButtons;} if (UseAsMasterChart) StoreChartPair(); if (sound!="") PlaySound(sound); } } }
void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam) { if (id==CHARTEVENT_OBJECT_CLICK && ObjectGet(sparam,OBJPROP_TYPE)==OBJ_BUTTON) { if (StringFind(sparam,UniqueID+":symbol:",0)==0) { ChartSetSymbolPeriod(0,ObjectGetString(0,sparam,OBJPROP_TEXT),_Period); ObjectSetInteger(ChartID(), sparam, OBJPROP_STATE, false); // Might as well keep the state as 'false', since 'true' changes the background color in a misleading way. if (UseAsMasterChart) StoreChartPair(); // Only run this when the symbol button changes. if (soundBT!="") PlaySound(soundBT); } // The ":time" button was already commented out because it doesn't create any such button. // if (StringFind(sparam,UniqueID+":time:" ,0)==0) // { ChartSetSymbolPeriod(0,_Symbol,stringToTimeFrame(ObjectGetString(0,sparam,OBJPROP_TEXT))); if (soundBT!="") PlaySound(soundBT);} // // The code does not create any ":back" button, so commenting this out... // That said, what would be the point to have a button that ONLY sets the status to 'false' ?? It seems useless to me. // if (StringFind(sparam,UniqueID+":back:" ,0)==0) {ObjectSet(sparam,OBJPROP_STATE,false); if (soundBT!="") PlaySound(soundBT);} // // Bug. The :master button doesn't work yet, hence enableMaster(false) will skip this. if (enableMaster && StringFind(sparam,UniqueID+":master:" ,0)==0) {hideButtons();visibleButtons= !visibleButtons; if (soundBT!="") PlaySound(soundBT);} } }
Disliked{quote} I'm sorry but I don't have much time these days... you find a lot of indicators ... like what you want ... just search ... God bless you Motiram and God bless everyone!Ignored
Disliked{quote} Seems addressed, you can select different circles ratio sets to use, via the input SelectCircleToUse which is below the PriceCycleNote = "Circles 1 to 6 ONLY" setting, and change the circle ratios sets too, previously only circle set 1 inputs where used as ratios. {file}Ignored
Disliked...require the OBJ_name. I do not have that, they are random names. How can I confirm there is a VLINE on the current candle...if YES , what are the properties of it. Color, line type(solid, dot..etc.)...Ignored
bool check_vline() { int itarget = 0; bool found = false; datetime vline_t = 0; color vline_clr = 0; ENUM_LINE_STYLE vline_s = 0; int vline_w = 0; for(int i=ObjectsTotal()-1; i>=0; i--){ string obj_name = ObjectName(i); if(ObjectType(obj_name)!=OBJ_VLINE)continue; long tvline = ObjectGetInteger(0,obj_name,OBJPROP_TIME); int ivline = iBarShift(_Symbol,_Period,tvline,true); if(ivline==itarget){ found = true; vline_t = (datetime)tvline; vline_clr = (color)ObjectGetInteger(0,obj_name,OBJPROP_COLOR); vline_s = (ENUM_LINE_STYLE)ObjectGetInteger(0,obj_name,OBJPROP_STYLE); vline_w = (int)ObjectGetInteger(0,obj_name,OBJPROP_WIDTH); break; } else{ found = false; vline_t = 0; vline_clr = 0; vline_s = 0; vline_w = 0; } } Print("Is vline on candle "+string(itarget)+"=",found, " || clr=",ColorToString(vline_clr,true), ", style=",EnumToString(vline_s), ", width=",vline_w); return(found); }
Disliked{quote} Hi Frank, Unfortunately, your edits made the problem -- unwanted tick.wav sound when clicking on any button -- very much worse! ... but I applaud your attempt. Now it's worse because the tick sound occurs when absolutely ANY object is clicked on, which will certainly drive you/anyone crazy. Before I dived in to MT4, I already had a decent understanding of programming but not the specifics of MQL4 (pre-build 600 at the time; now post build 600+ which added a LOT more functions and capabilities!). If I had to start over from scratch, even...Ignored
Disliked{quote} thank you Sir, this particular EA is based on, trader take a trade manually and the SL/TP Auto set to manage the trade, and the trader can manually move the virtual SL/TP H-line close to the opened trade if he wants some brokers dont allow close SL to price, this is where the virtual h-line comes in and as h-line you can count SL by candlesIgnored
Disliked{quote} Ok. How many trades per chart are you going to place at the same time? How should the inputs of sl and tp be measured? In pips or in dollars? I can only do it in pips and it will work if you only place one trade in a chartIgnored