• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:59am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:59am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Coding robots and indicators in C# for no charge (cTrader API) 181 replies

Oanda MT4 - Indicators and EAs not showing 1 reply

EAs and indicators relating to moutaki... 22 replies

InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply

Need help to code EAs for MT4 and MT5 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

I will code your EAs and Indicators for no charge

  • Last Post
  •  
  • 1 837838Page 839840841 2220
  • 1 Page 839 2220
  •  
  • Post #16,761
  • Quote
  • Dec 10, 2016 10:53pm Dec 10, 2016 10:53pm
  •  gbudy
  • | Joined Aug 2011 | Status: Member | 60 Posts
With Fibs, even better.
Attached File
File Type: ex4 FractalsMod_OK_Plus.ex4   12 KB | 331 downloads
  • Post #16,762
  • Quote
  • Dec 10, 2016 10:56pm Dec 10, 2016 10:56pm
  •  gbudy
  • | Joined Aug 2011 | Status: Member | 60 Posts
See pics.
Attached Image (click to enlarge)
Click to Enlarge

Name: Capture.JPG
Size: 90 KB
2
  • Post #16,763
  • Quote
  • Dec 10, 2016 11:00pm Dec 10, 2016 11:00pm
  •  ramzam
  • Joined Nov 2015 | Status: Member | 2,878 Posts
so many new ideas .... really happy
Success is a Journey Not a Destination....... kind regards ramzam
1
  • Post #16,764
  • Quote
  • Dec 11, 2016 1:04am Dec 11, 2016 1:04am
  •  Erebus
  • Joined Jul 2011 | Status: Member | 5,720 Posts
Quoting palpite
Disliked
{quote} Test this {image} {file}
Ignored
That's really nice, thanks for posting

It's like Support & Resistance (Barry) indicator with the added options of number of bars either side of the Fractal point

And the Shift function, not sure why to use that

The two most powerful warriors are patience and time. Leo Tolstoy
1
  • Post #16,765
  • Quote
  • Dec 11, 2016 4:58am Dec 11, 2016 4:58am
  •  fxnow
  • | Joined Apr 2015 | Status: Member | 132 Posts
Quoting MhFx7
Disliked
{quote} Please use the code button when you insert a code. {image} You wrote open, close instead of Open, Close. I'm sorry but I think you should first learn the MQL4 basics. Start with the simple Open/Close Variables for example. PS: You can PM me if you have some questions.
Ignored
I tried to read about programming basics this weekend,but i couldn't understand anything.It's like a martian language for me .
  • Post #16,766
  • Quote
  • Edited at 5:28am Dec 11, 2016 5:11am | Edited at 5:28am
  •  ghibellino
  • | Joined Jan 2015 | Status: Member | 44 Posts
hi everyone
I ask your help to encode two custom indicators, if this is possible, which combine, in the first indicator, the MACD and ADX, while the second indicator, RSI and Money flow index.
The result I'm looking for is the same as that seen in the screenshots

Attached Image (click to enlarge)
Click to Enlarge

Name: macd adx copia.jpg
Size: 333 KB

for the first indicator

the parameters are:
MACD 5,13,2, and should only be visible signal line, with three levels, 0.0009, 0, and -0.0009 and ADX indicator 14 periods, with a level 40, and see only the ADX line, not the + DI and -DI,

Attached Image (click to enlarge)
Click to Enlarge

Name: rsi_mfi.jpg
Size: 409 KB


for the second indicator:
RSI 14 periods, with two levels, 70 and 30 and for Money flow index of 14 periods with levels 80 and 20.
I'm trying to encode them together to have the mq.4 code, to export it subsequently, through 2calgo, for cTrader platform.
Thank you all
Attached Files
File Type: mq4 ADX.mq4   4 KB | 159 downloads
File Type: mq4 MACD.mq4   3 KB | 152 downloads
File Type: mq4 MFI.mq4   3 KB | 177 downloads
File Type: mq4 RSI.mq4   5 KB | 142 downloads
  • Post #16,767
  • Quote
  • Dec 11, 2016 6:14am Dec 11, 2016 6:14am
  •  subbusuper
  • Joined Sep 2015 | Status: Trade what you see | 376 Posts
Hi Friends,

Is there any way to get multiple one click trading like the below picture.?

Regards..

Attached Image (click to enlarge)
Click to Enlarge

Name: MULTITRADE.png
Size: 27 KB
  • Post #16,768
  • Quote
  • Dec 11, 2016 6:36am Dec 11, 2016 6:36am
  •  MhFx7
  • | Joined Aug 2016 | Status: Member | 49 Posts
Quoting fxnow
Disliked
{quote} I tried to read about programming basics this weekend,but i couldn't understand anything.It's like a martian language for me .
Ignored
PM me I will help you.
  • Post #16,769
  • Quote
  • Edited at 9:30am Dec 11, 2016 6:37am | Edited at 9:30am
  •  fxnow
  • | Joined Apr 2015 | Status: Member | 132 Posts
Hi programmers ,
Could you change this EA ,so that after attaching EA to chart ,it opens a buy trade if bullish candle close above the moving average and when a bearish candle close below MA it close the buy trade and open a sell trade and so on .
Thanks
EA source code :
Inserted Code
//+------------------------------------------------------------------+
//|                                               Moving Average.mq4 |
//|                      Copyright 2005, MetaQuotes Software Corp. |
//|                                       http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#define MAGICMA  20050610
extern double Lots               = 0.1;
extern double MaximumRisk        = 0.02;
extern double DecreaseFactor     = 3;
extern double MovingPeriod       = 12;
extern double MovingShift        = 6;
//+------------------------------------------------------------------+
//| Calculate open positions                                         |
//+------------------------------------------------------------------+
int CalculateCurrentOrders(string symbol)
  {
   int buys=0,sells=0;
//----
   for(int i=0;i<OrdersTotal();i++)
     {
      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;
      if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA)
        {
         if(OrderType()==OP_BUY)  buys++;
         if(OrderType()==OP_SELL) sells++;
        }
     }
//---- return orders volume
   if(buys>0) return(buys);
   else       return(-sells);
  }
//+------------------------------------------------------------------+
//| Calculate optimal lot size                                       |
//+------------------------------------------------------------------+
double LotsOptimized()
  {
   double lot=Lots;
   int    orders=HistoryTotal();     // history orders total
   int    losses=0;                  // number of losses orders without a break
//---- select lot size
   lot=NormalizeDouble(AccountFreeMargin()*MaximumRisk/1000.0,1);
//---- calcuulate number of losses orders without a break
   if(DecreaseFactor>0)
     {
      for(int i=orders-1;i>=0;i--)
        {
         if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false) { Print("Error in history!"); break; }
         if(OrderSymbol()!=Symbol() || OrderType()>OP_SELL) continue;
         //----
         if(OrderProfit()>0) break;
         if(OrderProfit()<0) losses++;
        }
      if(losses>1) lot=NormalizeDouble(lot-lot*losses/DecreaseFactor,1);
     }
//---- return lot size
   if(lot<0.1) lot=0.1;
   return(lot);
  }
//+------------------------------------------------------------------+
//| Check for open order conditions                                  |
//+------------------------------------------------------------------+
void CheckForOpen()
  {
   double ma;
   int    res;
//---- go trading only for first tiks of new bar
   if(Volume[0]>1) return;
//---- get Moving Average
   ma=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,0);
//---- sell conditions
   if(Open[1]>ma && Close[1]<ma)  
     {
      res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,0,0,"",MAGICMA,0,Red);
      return;
     }
//---- buy conditions
   if(Open[1]<ma && Close[1]>ma)  
     {
      res=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,0,0,"",MAGICMA,0,Blue);
      return;
     }
//----
  }
//+------------------------------------------------------------------+
//| Check for close order conditions                                 |
//+------------------------------------------------------------------+
void CheckForClose()
  {
   double ma;
//---- go trading only for first tiks of new bar
   if(Volume[0]>1) return;
//---- get Moving Average
   ma=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,0);
//----
   for(int i=0;i<OrdersTotal();i++)
     {
      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false)        break;
      if(OrderMagicNumber()!=MAGICMA || OrderSymbol()!=Symbol()) continue;
      //---- check order type
      if(OrderType()==OP_BUY)
        {
         if(Open[1]>ma && Close[1]<ma) OrderClose(OrderTicket(),OrderLots(),Bid,3,White);
         break;
        }
      if(OrderType()==OP_SELL)
        {
         if(Open[1]<ma && Close[1]>ma) OrderClose(OrderTicket(),OrderLots(),Ask,3,White);
         break;
        }
     }
//----
  }
//+------------------------------------------------------------------+
//| Start function                                                   |
//+------------------------------------------------------------------+
void start()
  {
//---- check for history and trading
   if(Bars<100 || IsTradeAllowed()==false) return;
//---- calculate open orders by current symbol
   if(CalculateCurrentOrders(Symbol())==0) CheckForOpen();
   else                                    CheckForClose();
//----
  }
//+------------------------------------------------------------------+
Attached File
File Type: mq4 MovingAverage.mq4   5 KB | 190 downloads
  • Post #16,770
  • Quote
  • Dec 11, 2016 6:41am Dec 11, 2016 6:41am
  •  fxnow
  • | Joined Apr 2015 | Status: Member | 132 Posts
Quoting MhFx7
Disliked
{quote} PM me I will help you.
Ignored
Thank you very much Mhfx7.
  • Post #16,771
  • Quote
  • Dec 11, 2016 6:57am Dec 11, 2016 6:57am
  •  rtampabeng
  • | Joined Dec 2016 | Status: Junior Member | 2 Posts
Hello guys i also need a simple EA that works using two bars or candle sticks.
it also makes use of OHLC of previous bar or candle
first and second candle.
if it makes use of the high and the lows.
if price croses the low of fist candle sell order opens with stop loss at the high of first candle.
For buy options if the second candle crosses the high of first candle then buy order is opened. and sl at the low of the first candle.
at 50pip ea move sl to break even.
i actually want to test this so i will need at for free if and programmer can use it too.
  • Post #16,772
  • Quote
  • Dec 11, 2016 7:48am Dec 11, 2016 7:48am
  •  palpite
  • Joined Sep 2015 | Status: Under Pressure | 2,343 Posts
Quoting Erebus
Disliked
{quote} That's really nice, thanks for posting It's like Support & Resistance (Barry) indicator with the added options of number of bars either side of the Fractal point And the Shift function, not sure why to use that
Ignored
Thanks, other member posted this ind some months ago to fix here and i just shared it now. I not have sure, but i tested now and i think is the same as Bar .
Together we can be strongest
  • Post #16,773
  • Quote
  • Dec 11, 2016 8:55am Dec 11, 2016 8:55am
  •  Sssno1
  • | Membership Revoked | Joined Oct 2016 | 49 Posts
HOW can I send message to you cyber1?

CAN you help me I have posted some problem here please?

Thank you
  • Post #16,774
  • Quote
  • Dec 11, 2016 9:46am Dec 11, 2016 9:46am
  •  hharrington
  • Joined Oct 2007 | Status: Member | 562 Posts
Can someone tell me which line I need to adjust to make the arrow on the charts larger....I am not a coder.
Attached Image (click to enlarge)
Click to Enlarge

Name: MTF_Stoch_arrows.png
Size: 113 KB
Attached File
File Type: mq4 MTF_Stochastic_Alert_v.2RH.mq4   9 KB | 431 downloads
  • Post #16,775
  • Quote
  • Dec 11, 2016 9:48am Dec 11, 2016 9:48am
  •  hharrington
  • Joined Oct 2007 | Status: Member | 562 Posts
I do know how to open the file in metaeditor. Also please, I want to make the default lines in the indicator window larger, when you change timeframes they default back to 1

Thanks in advance
  • Post #16,776
  • Quote
  • Edited at 12:29pm Dec 11, 2016 12:04pm | Edited at 12:29pm
  •  lukeb
  • Joined Dec 2009 | Status: Member | 250 Posts
Quoting hharrington
Disliked
Can someone tell me which line I need to adjust to make the arrow on the charts larger....I am not a coder. {file} {image}
Ignored
I'm not sure you provided the same file as you show in your screenshot.... But, in the code you supplied, replace as per this and set the arrow width to whatever you want - look for "arrowWidth".

for the lines, look for: SetIndexStyle(1,DRAW_LINE,EMPTY,1) and SetIndexStyle(0,DRAW_LINE,EMPTY,1)
change that last '1' to a 3 or 4.

"I do {not?} know how to open the file in metaeditor." - right click on its name in the list of indicators and choose modify. When done, press the compile button.

Also, you may want to insert these two lines, in order to change the arrow type (first setting in the first 'if', second in the second 'if) :
ObjectSet(objName,OBJPROP_ARROWCODE,233);
ObjectSet(objName,OBJPROP_ARROWCODE,234);
Attached File
File Type: mq4 MTF_Stochastic_Alert_v.2RH.mq4   11 KB | 217 downloads
  • Post #16,777
  • Quote
  • Dec 11, 2016 2:12pm Dec 11, 2016 2:12pm
  •  micha2012
  • | Joined Jun 2016 | Status: Member | 4 Posts
Hello,
can anyone help in coding; I tried to convert this "prorealtime-code" into "metatrader 5"..
Unfortenately, I am a newbee...please help:
Inserted Code
// Elliott Wave Trend Indicator
// ------------------------------------------
pr= 2
pr2= 10
EWpk2= HIGHEST[1](High) > (High)*(1-pr2)/100
EWtr2= LOWEST[1](Low) < (Low)*(1-pr2)/100
// Intermediate Elliot Wave stuff
//zz= ZigZag[pr](close)
zzHi2=ZigZag[pr2](High)
zzLo2=ZigZag[pr2](Low)
avg2=(zzHi2+zzLo2)/2
If EWpk2 Then
RetroSuccessSecret2= zzHi2
ELSIF EWtr2 Then
RetroSuccessSecret2= zzLo2
ELSIF (avg2>avg2[1]) THEN
RetroSuccessSecret2= high
ELSE
RetroSuccessSecret2= Low
ENDIF
EW2=ZigZag[pr2](RetroSuccessSecret2)
LRZZEW2= LinearRegressionSlope[pr](EW2)
RETURN LRZZEW2 coloured(0,0,200) AS "LRZZ EW[10]"

This indicator counts Elliotwave with ZigZag and gives me great results...65/35 win ration on 4h and 1D.
Please could someone convert for metatrader 5?
Thank you very much in advance..
  • Post #16,778
  • Quote
  • Edited at 2:33pm Dec 11, 2016 2:20pm | Edited at 2:33pm
  •  alawy103
  • Joined Feb 2016 | Status: Member | 319 Posts
Dear All

I need some help to merge 3 EA using 3 indicator ( WPR+ Parabolic SAR+ Stochastic ) in order to let EA open order once all the rule applied as per the 3 EA condition ether for buy or sell.

so for example
1st EA = Sell true
2nd EA =Sell true
3rd EA = Sell true
Then open Sell order . ..

1st EA = buy true
2nd EA =buy true
3rd EA = but true
Then open buy order . ..


Please I would like to have it in MQ4 for future changes .

I have attached all the Expert with open source .
Attached File
File Type: zip EA.zip   12 KB | 323 downloads
  • Post #16,779
  • Quote
  • Dec 11, 2016 2:39pm Dec 11, 2016 2:39pm
  •  hharrington
  • Joined Oct 2007 | Status: Member | 562 Posts
Quoting lukeb
Disliked
{quote} I'm not sure you provided the same file as you show in your screenshot.... But, in the code you supplied, replace as per this and set the arrow width to whatever you want - look for "arrowWidth". for the lines, look for: SetIndexStyle(1,DRAW_LINE,EMPTY,1) and SetIndexStyle(0,DRAW_LINE,EMPTY,1) change that last '1' to a 3 or 4. "I do {not?} know how to open the file in metaeditor." - right click on its name in the list of indicators and choose modify. When done, press the compile button. Also, you may want to insert these two lines, in order...
Ignored
Thanks, much appreciated, I do know how to open in metaeditor.
  • Post #16,780
  • Quote
  • Dec 11, 2016 2:40pm Dec 11, 2016 2:40pm
  •  palpite
  • Joined Sep 2015 | Status: Under Pressure | 2,343 Posts
Quoting ghibellino
Disliked
hi everyone I ask your help to encode two custom indicators, if this is possible, which combine, in the first indicator, the MACD and ADX, while the second indicator, RSI and Money flow index. The result I'm looking for is the same as that seen in the screenshots {image} for the first indicator the parameters are: MACD 5,13,2, and should only be visible signal line, with three levels, 0.0009, 0, and -0.0009 and ADX indicator 14 periods, with a level 40, and see only the ADX line, not the + DI and -DI, {image} for the second indicator: RSI 14 periods,...
Ignored
For MACD + ADX you can use the indicator DIDI Index

http://www.forexfactory.com/showthread.php?t=512503
Together we can be strongest
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 837838Page 839840841 2220
    • 1 Page 839 2220
11 traders viewing now, 3 are members:
francisfree
,
pipgainer
,
engienmix
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021