You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Help with coding
experienced coder can you advice me for a solution
I am using this code to find fractal support resistance breakout:
/////////////////////////////
double RES=0.0,fractalu=0.0;
bool frbrres;
for (int ct=0;ct<bars;ct++) {
fractalu=iFractals(NULL,0,MODE_UPPER,ct);
if (fractalu>0.0) {
RES=fractalu;
break;
}
}
if (Bid>RES)frbrres =true; else frbrres =false;
double SUP=0.0,fractals=0.0;
bool frbrsup;
for (int cts=0;cts<bars;cts++) {
fractals=iFractals(NULL,0,MODE_LOWER,cts);
if (fractals>0.0) {
SUP=fractals;
break;
}
}
if (Bid<SUP) frbrsup=true;else frbrsup =false;
//////////////////////////////////////////////////////////////////
so the problem is next:
when i don't include fractal breakout code
ie. ( if (othercondition ) do this.....
i get signal right on current candle and that is what i want, but when i use the code like this
if (othercondition && frbrsup==true) do this.....
then i get signal when candle close and that is to late
I have try all combination what cross my mind but no success so please help!
Ignore, i find the issue!
Great indicator need to me made ea....plz any programer esp code gurus...thanks a lo
Dear All forex friends,
I am very new to programming / language etc.. BUT I had a VERY GREAT INDICATOR WHICH I WANT TO MAKE IT INTO EA .
REQUEST ANY PROGRAMER OR FOREX FRIEND TO HELP ME INTHIS.. THE INDICATOR IS ATTACHED HERE.. WHEN IT GIVE ARROW IT SHOULD BUY IN EA AND WHEN DOWN ARROW IT SHOULD SELL ALONG WITH STOP PROFIT, STOP LOSS, TRAILLING STOP OPTIONS PLEASEEEEEEEEEEEEEEEEEEE FRIENDSSSSSS....GREAT RESULTS WITH THIS INDICATOR TO EA
HOPE THE KNOWLEDGABLE PROGRAMER OR PERSON WILL HELP ME IN THIS TO MAKE INDICATOR INTO EA PLEASE.....THANKS IN ADVANCE TO THOSE WHO MAKE EA TO ME FROM THIS INDICATOR ..... GREAT RESULTS...WATING TO HEAR FOR HELP FRIENDS....THANKSSSSSS
EXPERTARTS
//+------------------------------------------------------------------+
//| trendsignal.mq4
//| //+------------------------------------------------------------------+
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 DodgerBlue
#property indicator_color2 Magenta
//---- input parameters
extern int RISK=3;
extern int CountBars=350;
extern int Alert_Delay_In_Seconds=0;
extern bool Enablemail = true;
extern string subjectUp="Buy signal";
extern string subjectDown="Sell signal";
extern string textUp="Long ";
extern string textDown="Short ";
int SSP=9;
int PrevAlertTime=0;
//---- buffers
double val1[];
double val2[];
double alertBar;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- indicator line
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(0,val1);
SetIndexBuffer(1,val2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| SilverTrend_Signal |
//+------------------------------------------------------------------+
int start()
{
if (CountBars>=Bars) CountBars=Bars;
SetIndexDrawBegin(0,Bars-CountBars+SSP);
SetIndexDrawBegin(1,Bars-CountBars+SSP);
int i,shift,counted_bars=IndicatorCounted();
int i1,i2,K;
double Range,AvgRange,smin,smax,SsMax,SsMin,price;
bool uptrend,old;
//----
if(Bars<=SSP+1) return(0);
//---- initial zero
if(counted_bars<SSP+1)
{
for(i=1;i<=SSP;i++) val1[CountBars-i]=0.0;
for(i=1;i<=SSP;i++) val2[CountBars-i]=0.0;
}
//----
K=33-RISK;
for (shift = CountBars-SSP; shift>=0; shift--)
{
Range=0;
AvgRange=0;
for (i1=shift; i1<=shift+SSP; i1++)
{AvgRange=AvgRange+MathAbs(High-Low);
}
Range=AvgRange/(SSP+1);
SsMax=High[shift]; SsMin=Low[shift];
for (i2=shift;i2<=shift+SSP-1;i2++)
{
price=High;
if(SsMax<price) SsMax=price;
price=Low;
if(SsMin>=price) SsMin=price;
}
smin = SsMin+(SsMax-SsMin)*K/100;
smax = SsMax-(SsMax-SsMin)*K/100;
val1[shift]=0;
val2[shift]=0;
if (Close[shift]<smin)
{
uptrend = false;
}
if (Close[shift]>smax)
{
uptrend = true;
}
if (uptrend!=old && uptrend==true)
{
val1[shift]=Low[shift]-Range*0.5;
if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))
{
Alert("Trendsignal ",Period()," ",Symbol()," BUY");alertBar = Bars;
if(Enablemail == true) {SendMail(subjectDown+" "+ Symbol(),textDown+" "+ Close[1]+" "+ Symbol()); }
PrevAlertTime = CurTime();
}
}
if (uptrend!=old && uptrend==false)
{
val2[shift]=High[shift]+Range*0.5;
if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))
{
Alert("Trendsignal ",Period()," ",Symbol()," SELL");alertBar = Bars;
if(Enablemail == true) {SendMail(subjectUp +" "+ Symbol(),textUp+" "+ Close[1]+" " + Symbol());}
PrevAlertTime = CurTime();
}
}
Comment(shift);
old=uptrend;
}
return(0);
}
//+------------------------------------------------------------------+PLEASEEEE REPLY FOREX FRIENDS WITH EA OF INDICATOR WHEN ARROW BUY-SELL EA ..GREAT RESUTLS YOU CAN SEE WITH THIS EA OF TRAILING STOP.. PLESAAASEE AS I AM NEW TO PROGRAMING ......THANKS
Great Indicator 2 EA- Please help to make it EA - as new in programming.. GREAAT INDI
Dear All forex friends,
I am very new to programming / language etc.. BUT I had a VERY GREAT INDICATOR WHICH I WANT TO MAKE IT INTO EA .
REQUEST ANY PROGRAMER OR FOREX FRIEND TO HELP ME INTHIS.. THE INDICATOR IS ATTACHED HERE.. WHEN IT GIVE ARROW IT SHOULD BUY IN EA AND WHEN DOWN ARROW IT SHOULD SELL ALONG WITH STOP PROFIT, STOP LOSS, TRAILLING STOP OPTIONS PLEASEEEEEEEEEEEEEEEEEEE FRIENDSSSSSS
HOPE THE KNOWLEDGABLE PROGRAMER OR PERSON WILL HELP ME IN THIS TO MAKE INDICATOR INTO EA PLEASE.....THANKS IN ADVANCE TO THOSE WHO MAKE EA TO ME FROM THIS INDICATOR ..... GREAT RESULTS...WATING TO HEAR FOR HELP FRIENDS....THANKSSSSSS
EXPERTARTS
//+------------------------------------------------------------------+
//| trendsignal.mq4
//| //+------------------------------------------------------------------+
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 DodgerBlue
#property indicator_color2 Magenta
//---- input parameters
extern int RISK=3;
extern int CountBars=350;
extern int Alert_Delay_In_Seconds=0;
extern bool Enablemail = true;
extern string subjectUp="Buy signal";
extern string subjectDown="Sell signal";
extern string textUp="Long ";
extern string textDown="Short ";
int SSP=9;
int PrevAlertTime=0;
//---- buffers
double val1[];
double val2[];
double alertBar;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- indicator line
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(0,val1);
SetIndexBuffer(1,val2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| SilverTrend_Signal |
//+------------------------------------------------------------------+
int start()
{
if (CountBars>=Bars) CountBars=Bars;
SetIndexDrawBegin(0,Bars-CountBars+SSP);
SetIndexDrawBegin(1,Bars-CountBars+SSP);
int i,shift,counted_bars=IndicatorCounted();
int i1,i2,K;
double Range,AvgRange,smin,smax,SsMax,SsMin,price;
bool uptrend,old;
//----
if(Bars<=SSP+1) return(0);
//---- initial zero
if(counted_bars<SSP+1)
{
for(i=1;i<=SSP;i++) val1[CountBars-i]=0.0;
for(i=1;i<=SSP;i++) val2[CountBars-i]=0.0;
}
//----
K=33-RISK;
for (shift = CountBars-SSP; shift>=0; shift--)
{
Range=0;
AvgRange=0;
for (i1=shift; i1<=shift+SSP; i1++)
{AvgRange=AvgRange+MathAbs(High-Low);
}
Range=AvgRange/(SSP+1);
SsMax=High[shift]; SsMin=Low[shift];
for (i2=shift;i2<=shift+SSP-1;i2++)
{
price=High;
if(SsMax<price) SsMax=price;
price=Low;
if(SsMin>=price) SsMin=price;
}
smin = SsMin+(SsMax-SsMin)*K/100;
smax = SsMax-(SsMax-SsMin)*K/100;
val1[shift]=0;
val2[shift]=0;
if (Close[shift]<smin)
{
uptrend = false;
}
if (Close[shift]>smax)
{
uptrend = true;
}
if (uptrend!=old && uptrend==true)
{
val1[shift]=Low[shift]-Range*0.5;
if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))
{
Alert("Trendsignal ",Period()," ",Symbol()," BUY");alertBar = Bars;
if(Enablemail == true) {SendMail(subjectDown+" "+ Symbol(),textDown+" "+ Close[1]+" "+ Symbol()); }
PrevAlertTime = CurTime();
}
}
if (uptrend!=old && uptrend==false)
{
val2[shift]=High[shift]+Range*0.5;
if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))
{
Alert("Trendsignal ",Period()," ",Symbol()," SELL");alertBar = Bars;
if(Enablemail == true) {SendMail(subjectUp +" "+ Symbol(),textUp+" "+ Close[1]+" " + Symbol());}
PrevAlertTime = CurTime();
}
}
Comment(shift);
old=uptrend;
}
return(0);
}
//+------------------------------------------------------------------+PLEASEEEE REPLY FOREX FRIENDS WITH EA OF INDICATOR WHEN ARROW BUY-SELL EA ..GREAT RESUTLS YOU CAN SEE WITH THIS EA OF TRAILING STOP.. PLESAAASEE AS I AM NEW TO PROGRAMING ......THANKS
Need a programmer
Hi I need a helpful person who is willing to write me an EA, the EA is based on fractal breakouts. I'll give out the full information if I can find someone who will help me. Thanks.
Profitable Indicator Needs Converting to EA
I dont know if this is the right place to post or not but i thought i would ask and if anyone is interested in this system enough to make an EA for it then i would appreciate it very much.
Its a basic arrow system which works on H1 charts, no lower!
It does not repaint however wait till the candle has closed before entering
Buy @ Up Arrow
Close and Sell @ Next Down Arrow
Reverse for selling.
I'm not sure what the stop loss would be but if im honest i have never used a stop loss when using this system.
trendsignal_1.mq4
...
I sloped it on the 1h chart and...there was way too many loosers...may be in a very long run it may become profitable...with trending markets...but...I doubt it...
Maybe you're right, a bit to inconsistent for an ea
...
may be avoiding flat will improve stats...plus martingale
Yep, Martingale would help, that would also possibly mean being able to use on a lower time frame maybe
Please help with some code!
Hi all
My first post!
I have spent the day trying to find this online or even seeing if I can put chunks of code together myself in MT4 to get this to work but I just don't know how to programme on MT4 full stop!
Could someone please help and give me the code/EA if they have it?
I just need a basic EA where the stoploss moves to breakeven if 2 moving averages crossover, that's all! Obviously this is only for the symbol/chart the EA is attached to, not all open positions across other pairs!!
It doesn't matter what MA values are used because obviously I can change that in the code, but beyond that I cannot do anything in MT4 programming!
Please help someone!!
Thanks muchly for your time