Forex Factory (https://www.forexfactory.com/forum.php)
-   Platform Tech (https://www.forexfactory.com/forumdisplay.php?f=69)
-   -   I will code your EAs and Indicators for no charge (https://www.forexfactory.com/showthread.php?t=166758)

gridmaster Jun 25, 2014 4:21am | Post# 5041

remove

fxdaytrader_ Jun 25, 2014 5:48am | Post# 5042

why do not ask at mql5.com/en/job

mattkirby Jun 25, 2014 7:08am | Post# 5043

Hi guys,

I know this is not the right place for my question but mayby someone can help me.....or tell me where else I could put on this question.

It's about coding in ProRealTime (perhaps it's similar to mt4).

How can I call a Price at a certain time and not a certain bar.

For example: normal: Close[5] = the closing Price 5 bars before I Need: Close[yesterday, 9.30]..... but how to code this?????

Would be great if someone could help

fxdaytrader_ Jun 25, 2014 7:12am | Post# 5044

1 Attachment(s)
Thanks a lot for the EA i will test it and tell you if its good the results
yes, if you would like test this one, I have some more filters added, not sure if it makes sense. But for sure you will have more to play around with
it is possible to deactiveat the osma also ...
OsMa EA.ex4

drywater Jun 25, 2014 3:37pm | Post# 5045

1 Attachment(s)
Hi,

Thanks for your generous offer, I'm a new member and as such can't post my own thread - but perhaps you can help.

I've been having problems with the Custom Candle indicator.
The indicator is supposed to display candle stick bars from a different time frame onto the current chart.
For example, I'd like to see the hourly candles on the 5 min chart.

If you take a look at the screen shot, you may notice the main issue. First, the top and bottom of the candles are not finishing, they seem to extend very high and very low. Second, this indicator only works up ot the 1 day chart - it can display 1 day candles on the lower time frames, is there any reason it shouldn't be able to display 1 week and monthly candles?
Also, please note that I am using Oanda meta trader, I'm not sure if that should make a difference.
Thanks for your help!

#property link "mankurt@freemail.ru"
#property copyright " 2006, mankurt"
#property indicator_chart_window
//+------------------------------------------------------------------------------------------------+
extern int TimeFrame=240;
extern color UpCandle=Blue;
extern color DnCandle=Red;
extern color DojiColor=Blue;
extern int Width=2;
extern int CustomCandleTimeShift=2;
extern bool BGCandle=false;
//+------------------------------------------------------------------------------------------------+
int Nbar,OpenBar,timer,i,timerTF,name,MidBar;
double HighPrevBar,LowPrevBar,ClosePrevBar;
double OpenNewBar,HighNewBar,LowNewBar,CloseNewBar;
double HighCurBar,LowCurBar,CloseCurBar;
double priceNewSH,priceNewSL,pricePrevSH,pricePrevSL,priceCurSH,priceCurSL;
string nameNewCandle,namePrevCandle;
string nameNewShadowH,nameNewShadowL,namePrevShadowH,namePrevShadowL;
string NameBar, NameHigh, NameLow;
datetime TimeOpenNewBar,TimeCloseNewBar,TimeClosePrevBar;
datetime timeNewShadow,timePrevShadow;
bool NewBar;
//+------------------------------------------------------------------------------------------------+
int init(){
IndicatorShortName("M"+TimeFrame+" M"+Period());
Nbar=TimeFrame/Period();
timer=Period()*60;
timerTF=TimeFrame*60;
name=0;
TimeOpenNewBar=Time[Bars-1];
OpenNewBar=Open[Bars-1];
NewBar=false;
NameBar="Bar M"+TimeFrame+"-";
NameHigh="High M"+TimeFrame+"-";
NameLow="Low M"+TimeFrame+"-";
return(0);}
//+------------------------------------------------------------------------------------------------+
int deinit(){
for(int DelOBJ=1; DelOBJ<=name; DelOBJ++){
ObjectDelete(NameBar+DelOBJ);
ObjectDelete(NameHigh+DelOBJ);
ObjectDelete(NameLow+DelOBJ);}
Comment("");
return(0);}
//+------------------------------------------------------------------------------------------------+
int start(){
if(TimeFrame>1440)
{Comment("\n"," TimeFrame more than D1 is not supporting!!!");return(0);}
if(Period()>240)
{Comment("\n"," Period more than H4 is not supporting!!!");return(0);}
if(TimeFrame<=Period()||MathMod(TimeFrame,Period())!=0)
{Comment("\n"," TimeFrame should be more or divisible by M",Period());return(0);}
i=Bars-IndicatorCounted();
while(i>0){i--;
while(i>=0) if(Time[i]==TimeOpenNewBar||BarNew(i,TimeFrame)==false)i--;
else{NewBar=true; name++; break;}
if(i<0) i=0;
if(NewBar==true){
//+-----------------------------------------Previos Bar--------------------------------------------+
OpenBar=iBarShift(0,0,TimeOpenNewBar,false);
TimeClosePrevBar=Time[i+1];
ClosePrevBar=Close[i+1];
HighPrevBar=High[Highest(0,0,MODE_HIGH,OpenBar-i,i+1)];
LowPrevBar=Low[Lowest(0,0,MODE_LOW,OpenBar-i,i+1)];
namePrevCandle=NameBar+(name-1);
MidBar=OpenBar-MathRound((OpenBar-i)/2);
timePrevShadow=Time[MidBar];
pricePrevSH=PriceShadow(OpenNewBar,ClosePrevBar,0);
pricePrevSL=PriceShadow(OpenNewBar,ClosePrevBar,1);
namePrevShadowH=NameHigh+(name-1);
namePrevShadowL=NameLow+(name-1);
//+----------------------------------Modifi Previos Bar & Shadow-----------------------------------+
if(ObjectFind(namePrevCandle)==0){
ObjectMove(namePrevCandle,1,TimeClosePrevBar,ClosePrevBar);
PropBar(OpenNewBar,ClosePrevBar,namePrevCandle);
if(OpenBar==i+1) ObjectSet(namePrevCandle,OBJPROP_WIDTH, Width*3);}
if(ObjectFind(namePrevShadowH)==0){
if(pricePrevSH==HighPrevBar) ObjectDelete(namePrevShadowH);
else{ObjectMove(namePrevShadowH,0,timePrevShadow,pricePrevSH);
ObjectMove(namePrevShadowH,1,timePrevShadow,HighPrevBar);
ColorShadow(OpenNewBar,ClosePrevBar,namePrevShadowH);
ObjectSetText(namePrevShadowH,"High="+DoubleToStr(HighPrevBar,Digits),7,"Tahoma");}}
if(ObjectFind(namePrevShadowL)==0){
if(pricePrevSL==LowPrevBar) ObjectDelete(namePrevShadowL);
else{ObjectMove(namePrevShadowL,0,timePrevShadow,pricePrevSL);
ObjectMove(namePrevShadowL,1,timePrevShadow,LowPrevBar);
ColorShadow(OpenNewBar,ClosePrevBar,namePrevShadowL);
ObjectSetText(namePrevShadowL,"Low="+DoubleToStr(LowPrevBar,Digits),7,"Tahoma");}}
//+-------------------------------------------New Bar----------------------------------------------+
OpenNewBar=Open[i];
TimeOpenNewBar=Time[i];
HighNewBar=High[i];
LowNewBar=Low[i];
CloseNewBar=Close[i];
TimeCloseNewBar=Time[i]+timerTF-timer;
nameNewCandle=NameBar+name;
timeNewShadow=Time[i]+MathRound(Nbar/2)*timer;
priceNewSH=PriceShadow(OpenNewBar,CloseNewBar,0);
priceNewSL=PriceShadow(OpenNewBar,CloseNewBar,1);
nameNewShadowH=NameHigh+name;
nameNewShadowL=NameLow+name;
NewBar=false;}
else{
//+------------------------------------------Current Bar-------------------------------------------+
OpenBar=iBarShift(0,0,TimeOpenNewBar,false);
CloseCurBar=Close[i];
HighCurBar=High[Highest(0,0,MODE_HIGH,OpenBar+1,i)];
LowCurBar=Low[Lowest(0,0,MODE_LOW,OpenBar+1,i)];
priceCurSH=PriceShadow(OpenNewBar,CloseCurBar,0);
priceCurSL=PriceShadow(OpenNewBar,CloseCurBar,1);}
//+------------------------------Create New Object & Modifi Current--------------------------------+
if(ObjectFind(nameNewCandle)!=0){
ObjectCreate(nameNewCandle,OBJ_RECTANGLE,0,TimeOpenNewBar,OpenNewBar,TimeCloseNewBar,CloseNewBar);
ObjectSet(nameNewCandle,OBJPROP_STYLE, STYLE_SOLID);
PropBar(OpenNewBar,CloseNewBar,nameNewCandle);}
else{
ObjectMove(nameNewCandle,1,TimeCloseNewBar,CloseCurBar);
PropBar(OpenNewBar,CloseCurBar,nameNewCandle);}
if(ObjectFind(nameNewShadowH)!=0){
ObjectCreate(nameNewShadowH,OBJ_TREND,0,timeNewShadow,priceNewSH,timeNewShadow,HighNewBar);
ObjectSet(nameNewShadowH,OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(nameNewShadowH,OBJPROP_WIDTH, Width);
ObjectSet(nameNewShadowH,OBJPROP_RAY, false);
ColorShadow(OpenNewBar,CloseNewBar,nameNewShadowH);}
else{
ObjectMove(nameNewShadowH,0,timeNewShadow,priceCurSH);
ObjectMove(nameNewShadowH,1,timeNewShadow,HighCurBar);
ColorShadow(OpenNewBar,CloseCurBar,nameNewShadowH);}
if(ObjectFind(nameNewShadowL)!=0){
ObjectCreate(nameNewShadowL,OBJ_TREND,0,timeNewShadow,priceNewSL,timeNewShadow,LowNewBar);
ObjectSet(nameNewShadowL,OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(nameNewShadowL,OBJPROP_WIDTH, Width);
ObjectSet(nameNewShadowL,OBJPROP_RAY, false);
ColorShadow(OpenNewBar,CloseNewBar,nameNewShadowL);}
else{
ObjectMove(nameNewShadowL,0,timeNewShadow,priceCurSL);
ObjectMove(nameNewShadowL,1,timeNewShadow,LowCurBar);
ColorShadow(OpenNewBar,CloseCurBar,nameNewShadowL);}}
//+-------------------------------------Comment OHLC-----------------------------------------------+
Comment(Symbol(),",M",TimeFrame," O=",OpenNewBar,", H=",HighCurBar,
", L=",LowCurBar,", C=",CloseCurBar,"\n");
return(0);}
//+---------------------Main Function "New Bar or Old Bar"-----------------------------------------+
bool BarNew (int j, int tmf)
{int t0=1440*(TimeDayOfWeek(Time[j+CustomCandleTimeShift])-1)+60*TimeHour(Time[j+CustomCandleTimeShift])+TimeMinute(Time[j+CustomCandleTimeShift]),
t1=1440*(TimeDayOfWeek(Time[j+1+CustomCandleTimeShift])-1)+60*TimeHour(Time[j+1+CustomCandleTimeShift])+TimeMinute(Time[j+1+CustomCandleTimeShift]);
if(MathMod(t0,tmf)-MathMod(t1,tmf)==t0-t1)return(false);
else return(true);}
//+---------------------Function "Price Shadow"----------------------------------------------------+
double PriceShadow (double OpnB, double ClsB, int swt)
{double prH, prL;
if(OpnB<ClsB){prH=ClsB; prL=OpnB;}
if(OpnB>ClsB){prH=OpnB; prL=ClsB;}
if(OpnB==ClsB){prH=ClsB; prL=ClsB;}
switch(swt){case 0:return(prH);break;
case 1:return(prL);break;}}
//+---------------------Function "Properti Bars"---------------------------------------------------+
void PropBar (double OpPr, double ClPr, string NmOBJ)
{string Cl=" Close="+DoubleToStr(ClPr,Digits);
string Op=" Open="+DoubleToStr(OpPr,Digits);
if(OpPr==ClPr){ObjectSet(NmOBJ,OBJPROP_BACK, false);
ObjectSet(NmOBJ,OBJPROP_COLOR,DojiColor);
ObjectSetText(NmOBJ,"Doji "+Op+Cl,7,"Tahoma");}
if(OpPr<ClPr){ObjectSet(NmOBJ,OBJPROP_COLOR,UpCandle);
ObjectSet(NmOBJ,OBJPROP_BACK, BGCandle);
ObjectSetText(NmOBJ,"UpBar "+Op+Cl,7,"Tahoma");}
if (OpPr>ClPr){ObjectSet(NmOBJ,OBJPROP_COLOR,DnCandle);
ObjectSet(NmOBJ,OBJPROP_BACK, BGCandle);
ObjectSetText(NmOBJ,"DnBar "+Op+Cl,7,"Tahoma");}
ObjectSet(NmOBJ,OBJPROP_WIDTH, Width);}
//+----------------------Function "Color Shadow"---------------------------------------------------+
void ColorShadow (double OP, double CP, string NOBJ)
{if(OP==CP)ObjectSet(NOBJ,OBJPROP_COLOR,DojiColor);
if(OP<CP)ObjectSet(NOBJ,OBJPROP_COLOR,UpCandle);
if (OP>CP)ObjectSet(NOBJ,OBJPROP_COLOR,DnCandle);}
//+----------------------------------------------END-----------------------------------------------+
Click to Enlarge

Name: Screenshot3.png
Size: 2.7 MB

919gilead Jun 25, 2014 5:14pm | Post# 5046

1 Attachment(s)
Hi Fxdaytrader,

Could you please assist to add an alert to this indicator, so that when all the selected time frames are in agreement, an alert will sound that H1 to D1 are moving in the same direction, as an example.

Thank you for your help.

Cheers

George
Ibuk's Bread'nButter Dashboard.mq4

fxdaytrader_ Jun 25, 2014 6:12pm | Post# 5047

1 Attachment(s)
so that when all the selected time frames are in agreement, an alert will sound that H1 to D1 are moving in the same direction, as an example.
You know that this indicator only shows the distance to an moving average? So what do you understand under "same direction" (see also the systems thread at http://www.forexfactory.com/showthread.php?t=305246 )? if all values are either positive or negative or what?
I can add a symbol-suffix-detection if required also ...

edit: find the mod. alerts - indicator at http://www.forexfactory.com/showthre...68#post7562068 pls.
Click to Enlarge

Name: ibuks.eurusdm15.png
Size: 32 KB

919gilead Jun 25, 2014 7:24pm | Post# 5048

1 Attachment(s)
{quote} You know that this indicator only shows the distance to an moving average? So what do you understand under "same direction" (see also the systems thread at http://www.forexfactory.com/showthread.php?t=305246 )? if all values are either positive or negative or what? I can add a symbol-suffix-detection if required also ... {image}

Thanks for your prompt response Fxdaytrader.

I am not using it as a dashboard for several currency pairs but for the "Current Pair Only." Therefore I want an alert when all the selected time frames are all positive or negative, above or below the specified MA.

Thanks
Click to Enlarge

Name: Ibuk's MA Dashboard.gif
Size: 63 KB

fxdaytrader_ Jun 25, 2014 8:03pm | Post# 5049

I want an alert when all the selected time frames are all positive or negative, above or below the specified MA. Thanks {image}
ah, ok, I will have a look within the next time (depending on my sparetime)

919gilead Jun 25, 2014 8:31pm | Post# 5050

{quote} ah, ok, I will have a look within the next time (depending on my sparetime)
Thank you and please take your time Trading is a long term career, so I can wait too

fxdaytrader_ Jun 25, 2014 8:42pm | Post# 5051

(I cannot sleep, wtf ...)
not 100% sure if it works, but if it does, it should work also if you choose to show more than one pair.
suffix-detection option also added (true per default, for example if symbol name is EURUSDm).

pls. try ...

edit: pls. re-download (the .ex4 only!) at http://www.forexfactory.com/showthre...26#post7562726 I have found a mistake ...

919gilead Jun 25, 2014 10:29pm | Post# 5052

(I cannot sleep, wtf ...) {quote} not 100% sure if it works, but if it does, it should work also if you choose to show more than one pair. suffix-detection option also added (true per default, for example if symbol name is EURUSDm). pls. try ... {file}

Thank you very much Fxdaytrader

NB
Tested and working very fine on both Current Pair Only and Currency Group pairs. Thanks again and God bless

rkkgs Jun 26, 2014 3:20am | Post# 5053

3 Attachment(s)
Dear fxdaytrader..


i want ea

i am upload indicator and image


BUY-SELL:

every GREEN COLOR arrows: BUY (order closed Turquoise COLOR arrow)

every Turquoise COLOR arrows : sell (order closed GREEN COLOR arrow)
Click to Enlarge

Name: INDICATOR IMAGE.jpg
Size: 92 KB
Click to Enlarge

Name: INDICATOR INPUTS.jpg
Size: 133 KB
zwuk MA.ex4

thodie Jun 26, 2014 3:22am | Post# 5054

Dear fxdaytrader.. i want ea i am upload indicator and image BUY-SELL: every GREEN COLOR arrows: BUY (order closed Turquoise COLOR arrow) every Turquoise COLOR arrows : sell (order closed GREEN COLOR arrow) {image} {image} {file}
does it repaint?

fxdaytrader_ Jun 26, 2014 3:52am | Post# 5055

2 Attachment(s)
{quote} Thank you very much Fxdaytrader NB Tested and working very fine on both Current Pair Only and Currency Group pairs. Thanks again and God bless
thank you
I think that was the first time I have added alerts to an multipair-indicator.
I attach the sourcecode also, maybe someone has a use for it (search for 'fxdaytrader' in the code to find my mods).
pls. note that I have added 'xxx.' to the name. Only download it if you need the sourcecode, if you just want to use the indicator pls. download the one at http://www.forexfactory.com/showthre...68#post7562068

edit: ups, I have overlooked that the coder (Squalou) has implemented the suffix-stuff already. Must have been too tired last night when I did the mods.
pls. re-download
xxx.Ibuk's Bread'nButter Dashboard Alerts.mq4
Ibuk's Bread'nButter Dashboard Alerts.ex4

fxdaytrader_ Jun 26, 2014 4:28am | Post# 5056

I have overlooked that the coder (Squalou) has implemented the suffix-stuff already. Must have been too tired last night when I did the mods. pls. re-download {file} {file}
pls re-download at http://www.forexfactory.com/showthre...26#post7562726 ...

fxdaytrader_ Jun 26, 2014 4:38am | Post# 5057

Dear fxdaytrader.. i want ea i am upload indicator and image BUY-SELL: every GREEN COLOR arrows: BUY (order closed Turquoise COLOR arrow) every Turquoise COLOR arrows : sell (order closed GREEN COLOR arrow) {image} {image} {file}
It seems that it draws arrows on crosses of the moving averages.
there are lots of that kind of EA available.
I have no fun to do it, maybe someone else will do it, or ask at mql5.com/en/job pls. ...

thodie Jun 26, 2014 4:56am | Post# 5058

{quote} It seems that it draws arrows on crosses of the moving averages. there are lots of that kind of EA available. I have no fun to do it, maybe someone else will do it, or ask at mql5.com/en/job pls. ...
ill give it a try, but want to now first if it repaint, looks very accurate, interested to see when the arrow is drawn inside the candle

rkkgs Jun 26, 2014 5:17am | Post# 5059

pls share ea


i want arrow buy-sell only (some time same color than again place order want )

100% not repiant


help you fxdaytrader


thank you

advance



{quote} It seems that it draws arrows on crosses of the moving averages. there are lots of that kind of EA available. I have no fun to do it, maybe someone else will do it, or ask at mql5.com/en/job pls. ...

fxdaytrader_ Jun 26, 2014 5:57am | Post# 5060

1 Attachment(s)
pls. use the forumsearch, there are lots of that eas out there ...
edit: attached the osma-ea (bit mod.) from some posts above with the options set so that it should work as ma-crossover ea
OsMa EA.ex4


© Forex Factory