Disliked{quote} Sorry, that's not a job for me. Please ask someone else. But, maybe this one is already what you are looking for: https://www.mql5.com/en/code/10697Ignored
Kind regards sir
I will code your pivot EAs for no charge 28 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} Sorry, that's not a job for me. Please ask someone else. But, maybe this one is already what you are looking for: https://www.mql5.com/en/code/10697Ignored
Disliked{quote} Hi....jeanlouie...im back again.... BEST TEMPLATE SWITCHER EVER.... Following Indi that you made do not reload after change template. {file} I mean.....when I press the button to change template it will change it but the indicator will disappear so can not change anymore template... hope i explain clearly what I mean... I think is something wrong with this {image} https://www.forexfactory.com/thread/...5#post13060455 Can you please check it out... THANK YOU VERY MUCHIgnored
Disliked{quote} So I gave you the codes! You do the iHighest and iLowest in the EA, and in the EA you also check if there is the signal on the indicator. You need to look for the text objects which are already plotted on the chart, read their time, and you can get the index by that time, and you can read the high or low price of that index. Of course, you can get the text of the object and/or the color.Ignored
QuoteDislikedAnd yes, I did misunderstand, because "symbol" in trading context mean the the name of the instrument. And you were referring to the text label on the chart.
QuoteDislikedIn your code snippet: if ( lowest == "LL" ) signalSell=true; lowest is a double - correct? So, lowest == "LL" makes no sense. You need to search in the loop of 50 candles for an object with the string "LL". Read the time of that object. Get the index of that time. Get the Low[index]; Adn then: if ( lowest == Low[index] ) signalSell=true;
Disliked{quote} Why reinvent the wheel? Or, why try to kick in a door that's already open? This one - looks like mladen's job: {file} And this one even has the symbol and timeframe in the alerts.Ignored
Disliked{quote} There already is "copy". That is the unique id. {image}Ignored
DislikedFor all of you Stoch lovers, here is one with 4 types of crosses. Of course, it will only display one type at a time, even if all 4 are set to true. The type displayed will be shown in the indicator name in the subwindow. {file}Ignored
Disliked{quote} I'd like to code like you, but I'm a noob.It's so easy to read. {quote} Yes, my bad, sorry for that! {quote} So...I made last candles check on high/low. I made a loop on the same candles back to search "HH" , if I got something ">0" , give me the time by ObjectGetInteger and tell me which bar is it "iBarShift" , but I don't get any value. Somewhere something missing? {file}
Ignored
// Look for HH label with the same time ID as highest
name = "statusLabel"+TimeToString(Time[highindex]);
if(ObjectFind(0,name)==0&&ObjectGetString(0,name,OBJPROP_TEXT)=="HH")
{
// set the signals
// don't forget to reset the signal when not needed
Comment("HH " + IntegerToString(highindex));
}
//+------------------------------------------------------------------+
void RemoveLabel(int shift)
{
ObjectDelete("statusLabel"+TimeToString(Time[shift]));
}
//+------------------------------------------------------------------+
[b][/b] Disliked{quote} OK, so I took a closer look at your code, and here is the effects: We need to systematise the Indi with the EA, because we are looking for a text object, so to make things easy, we need to make sure that in the EA we are looking for the correct name. So I made the Indi consistent with what the EA is looking for. When we have identified the highest high and the lowest low in the given candle range, and we have the index, we can now simply look if there is a label by the name "statusLabel"+TimeToString(Time[highindex]) - this name needs to...Ignored
return;
Disliked{quote} Wow! Just put a lil piece of TimeToString code in the indi and we can read the candles time in string format. Clever and easy way! Thank you very much! With that "reset the signal" you mean ?return;Ignored
bool buysignal = false;
bool sellsignal = false; if(buysignal)
{
DoThis();
} Disliked{quote} The EA will place an order, correct? So, if an order is placed successfully, the signal should be reset to false. Take a closer look how I reorganised the EA code. We define the variables in the very begining. There you have the initial states: bool buysignal = false; bool sellsignal = false; So, under the if condition of the ObjectFind() you will set one of those signals to true. Then you can use this signal further: if(buysignal) { DoThis(); } When DoThis(); is successful, you need to reset buysignal=false; Because if you don't reset this...Ignored
Disliked{quote} I started to learn this stuff months ago, so I am newbie, just trying to learn more. I know some basics still missing, but nobody can learn something new without missing things. Btw, to code works on both side. Now time to put things together and let's see what it will cook to me.Ignored
DislikedHello BestTraderEV and my fellow traders, I would like to request your assistance in creating a Bollinger Band indicator with alerts. The Alerts should work as follows. 1. Bullish CSKA - this is when a candle manages to cross and close above the mid BB. 2. Bearish CSKA - this is when a candle manages to cross and close below the mid BB. 3. Bearish Momentum - When a candle manages to cross and close below the lower BB line. 4. Bullish Momentum - When a candle manages to cross and close above the high BB line. Thanks in advance tradersIgnored
Disliked{quote} The indicator is still not working right, it does not delete the old labels when new ones repaint. This makes it unusable for the EA. Need to fix that!Ignored