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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

I will code your scalping EAs for no charge 71 replies

Need help to code EAs for MT4 and MT5 5 replies

I will code your pivot EAs for no charge 20 replies

EAs and indicators relating to moutaki... 22 replies

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

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 42,471
Attachments: I will code your EAs and Indicators for no charge
Exit Attachments
Tags: I will code your EAs and Indicators for no charge
Cancel

I will code your EAs and Indicators for no charge

  • Last Post
  •  
  • 1 26442645Page 264626472648 3084
  • 1 Page 2646 3084
  •  
  • Post #52,901
  • Quote
  • Jun 29, 2022 7:29pm Jun 29, 2022 7:29pm
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 1,566 Posts
Quoting danerius
Disliked
{quote} ...
Ignored
Quote
Disliked
tried adding a line for Close Prices as well but it wont compile
- when copy n pasting n modding, check what you've just done (this is a common issue for me too), address the #property lines under where b_close is declared
- when you double click on a compilation error, it will take you to where the error is, may not be exactly where the issue is, but close enough
- highlight and press f1 for "Close" to see how to properly use it

Quote
Disliked
divide by _Points Im guessing is to get nicer numbers to display
- up to you, as mentioned before, a tick change in bid could be 0.90045 to 0.90047, +0.00002, you can plot 0.00002, or divid by the minimum tick increment _Point, which is 0.00001 here, to get 2 and plot 2 instead, the drawing stays the same as it's proportionate, but the scale will be in intergers not long decimals, and the user typing in new levels can just put integers and not decimals unique to each symbol

Quote
Disliked
add a smoothing to the values being displayed. Can I use the existing iMA function
- no, iMA will give you a ma value based on chart prices, higlight and f1 for iMA and look for another indicator function iMAonArray
- you will need a longer history of data points to properly apply a ma, ie what is the 20ma of a history of 10 points? And some ma types require more than the ma period as history to use.
- you would add a new buffer line, and give it values that are the ma value at that index
 
 
  • Post #52,902
  • Quote
  • Jun 29, 2022 10:08pm Jun 29, 2022 10:08pm
  •  Raddyo
  • | Joined Jun 2022 | Status: Member | 23 Posts
Quoting RIKc
Disliked
{quote} added alerts {file}
Ignored
Many thanks for this :-)
I will try it out and hopefully all is good.
Thanks again..
 
 
  • Post #52,903
  • Quote
  • Jun 29, 2022 11:49pm Jun 29, 2022 11:49pm
  •  Anewr
  • | Joined Aug 2011 | Status: A.A.W. | 49 Posts
Quoting RIKc
Disliked
{quote} share test results {file}
Ignored
Alright...so....turns out this EA is not the best lol!
Here are the results and I even changed the take profit to make it 1:2 and even 1:3 ratio (along with the 1:1 I originally put in for the parameters) and the following are the graphs of each. Also I tested from 01.01.2015 through 06.29.2022 and the period I used was H1 and the currency pairs were GBP/JPY, EUR/JPY, EUR/USD and So I feel bad that you had to make this for it not to work but also really appretiate it!
I am going to play around with it a bit and modify it some and see if I can improve it. Though it appears this isn't a viable strategy
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: EUR.USD.png
Size: 18 KB
Click to Enlarge

Name: AUD.USD.2.png
Size: 22 KB
Click to Enlarge

Name: AUD.USD.png
Size: 19 KB
 
 
  • Post #52,904
  • Quote
  • Edited 11:03pm Jun 30, 2022 12:46am | Edited 11:03pm
  •  cryptobodden
  • | Joined Apr 2018 | Status: Member | 20 Posts
Hi,

Does anyone know of an EA that will close open positions based on the Average Daily Range as per pair? And if it doesn't exist, can someone create something where trades are closed at the Average Daily Range, as per pair? Once the ADR is reached for the Day, the EA will no longer manage open positions for that pair until the Range is reset, which would be the next trading day.

I am trying to look at ways I can automate my exits.

I have been using the Moving average cross exit and the Stochastic cross exit EAs found on this website, but I am still not comfortable relying on those EAs to manage exits. Some situations are good and other times not so good, and the trend-run for the day is not completely captured using those EAs if the market does a bit or ranging.

Just thought of something else. So if someone creates this, can you add the Weekly Average Range and Monthly Average Range to the options? I hate exiting my trades too early.

Some time ago I customize some auto fib indicators, turning them into support and resistance areas that I have found to be pretty precise in terms of where price consolidates or bounces from. I changed the inputs on these indicators, so I can't rightfully call them fib ratios, but the price happens to work well at the inputs I have added. This is one of the tools I use to enter and exit trades. If anyone can create an EA using the inputs I have added to create and Exit EA, I would really appreciate the help. For these indicators, the range in-between the inputs I would call quadrants, and my exit is usually for 2 quadrants from my entry positions.

So for the Fib Exit EA, the option should be open to set the first line, second line, third line, etc. from the entry position as exits.

On another note, the inputs I use to identify trends and dynamic support and resistance is the 1900 Exponential Moving Average, which sometimes acts as entries and exits, but in this case, I want to use for exits. I use this based on timeframes and to identify different exit points. Maybe the EA can search the different timeframes and place horizontal lines on the chart where the 1900 moving average is on all timeframes and give the option to choose a horizontal line for TP. This means you can choose the 1900 moving average on a chosen timeframe and when the price hits it, it will close positions. Price usually heads back to the MA before going back into the trend, or crosses over.

These concepts are the ones I am most comfortable with when trading.

Help...
Attached File(s)
File Type: ex4 Fib Custom.ex4   9 KB | 85 downloads
File Type: mq4 Fib Custom.mq4   6 KB | 91 downloads
File Type: ex4 Fib Quarter.ex4   9 KB | 85 downloads
File Type: mq4 Fib Quarter.mq4   4 KB | 94 downloads
File Type: ex4 Auto MyFibo.ex4   21 KB | 70 downloads
File Type: mq4 Auto MyFibo.mq4   10 KB | 103 downloads
 
 
  • Post #52,905
  • Quote
  • Jun 30, 2022 1:30am Jun 30, 2022 1:30am
  •  sauravsm
  • | Joined Apr 2022 | Status: Junior Member | 1 Post
can you build an ea based on indicator colour buffer. I mean when red buffer open sell position and when blue buffer open buy position. I have attached indicator. pls help.
Attached File(s)
File Type: mq4 SE TRADINGX SYSTEM V.2.0 DISTANCE ZONE 3.0.mq4   17 KB | 212 downloads
 
 
  • Post #52,906
  • Quote
  • Jun 30, 2022 5:49am Jun 30, 2022 5:49am
  •  Samalin
  • Joined Apr 2017 | Status: Member | 725 Posts
Good day coders and traders, please i need help to make this EA open trade with 0.01 lotsize, i am not comfortable with the current lotsize
Attached File(s)
File Type: mq4 Bands Breakout fixed stoploss2.mq4   8 KB | 142 downloads
 
 
  • Post #52,907
  • Quote
  • Jun 30, 2022 6:45am Jun 30, 2022 6:45am
  •  Slingshots1
  • Joined Feb 2012 | Status: Member | 1,396 Posts
Quoting jeanlouie
Disliked
{quote} {quote} - when copy n pasting n modding, check what you've just done (this is a common issue for me too), address the #property lines under where b_close is declared - when you double click on a compilation error, it will take you to where the error is, may not be exactly where the issue is, but close enough - highlight and press f1 for "Close" to see how to properly use it {quote} - up to you, as mentioned before, a tick change in bid could be 0.90045 to 0.90047, +0.00002, you can plot 0.00002, or divid by the minimum tick increment _Point,...
Ignored
Hello please kindly help me with post #52800 i dont want to repeat it here so as not to smear the whole place with my request, thanks for all done in the past
 
 
  • Post #52,908
  • Quote
  • Jun 30, 2022 8:31am Jun 30, 2022 8:31am
  •  Maijin
  • | Joined Dec 2013 | Status: Member | 85 Posts
Quoting sauravsm
Disliked
can you build an ea based on indicator colour buffer. I mean when red buffer open sell position and when blue buffer open buy position. I have attached indicator. pls help. {file}
Ignored
Repainter.
Why don't you test the indicators before you post. this is the second time this crap has appeared here this month.
Newbies can lose a lot of money because of this crap.
 
 
  • Post #52,909
  • Quote
  • Jun 30, 2022 8:36am Jun 30, 2022 8:36am
  •  Maijin
  • | Joined Dec 2013 | Status: Member | 85 Posts
Quoting Samalin
Disliked
Good day coders and traders, please i need help to make this EA open trade with 0.01 lotsize, i am not comfortable with the current lotsize {file}
Ignored
?????

Attached Image (click to enlarge)
Click to Enlarge

Name: lot.jpg
Size: 40 KB
 
 
  • Post #52,910
  • Quote
  • Jun 30, 2022 9:12am Jun 30, 2022 9:12am
  •  sj9bp20
  • | Joined Jul 2014 | Status: Member | 348 Posts
Good afternoon.

A little help would be very much appreciated. My knowledge of coding is exactly zero.!!

I would like to amend a Stochastic RSI to enable it paint a vertical line on the chart.
1. A red line when the fast (blue) line passes down and closes below the overbought level.
2. A green line when the fast (blue) line passes up and closes above the oversold level.

Ideally it would be nice to have the option not to display the Stoch/RSI window itself.

I have attached the Stochastic RSI I use and a screenshot of what I would like to achieve.

Many thanks in advance.

Attached File(s)
File Type: mq4 Stochastic-RSI.mq4   7 KB | 109 downloads
Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 22 KB
 
 
  • Post #52,911
  • Quote
  • Jun 30, 2022 9:26am Jun 30, 2022 9:26am
  •  Samalin
  • Joined Apr 2017 | Status: Member | 725 Posts
Quoting Maijin
Disliked
{quote} ????? {image}
Ignored
woww thanks thanks so much it worked, maybe because i tried it when it was not having any signal to open a trade
 
 
  • Post #52,912
  • Quote
  • Jun 30, 2022 9:34am Jun 30, 2022 9:34am
  •  Maijin
  • | Joined Dec 2013 | Status: Member | 85 Posts
Quoting Samalin
Disliked
{quote} woww thanks it worked
Ignored
It is possible that the broker does not allow 0.01 lot, for dow jones often the smallest lot is 0.05.
 
 
  • Post #52,913
  • Quote
  • Jun 30, 2022 10:19am Jun 30, 2022 10:19am
  •  elon-musk
  • | Joined Jun 2021 | Status: Fundamentally Technical | 23 Posts
Anyone please?

Quoting elon-musk
Disliked
Can someone please help me to update this indicator to only show the Gaps that are not closed yet. I tried my my limited knowledge to loop through candles on right of the gap to see if lows of candles on the right (in case of gap up - blue lines ) or highs of candles on the right (in case of gap down - orange lines ) cross the lines created. If later (recent candles) do cross the lines then lines should not show. thanks. {file}
Ignored
FX is randomly symmetrical and I am anti-Faucism
 
 
  • Post #52,914
  • Quote
  • Jun 30, 2022 11:04am Jun 30, 2022 11:04am
  •  walesamuel
  • | Joined May 2018 | Status: Member | 48 Posts
Hi Guys,

Could anyone please help modify this Trailing Stop EA to include:

Trail only attached Chart pair
Trail by Magic Number (from magic no.... to magic ....)
Trail All open orders

Thanks.
Attached File(s)
File Type: mq4 TrailingWithPartialClose.mq4   29 KB | 89 downloads
If it works for you, don't forget to help others.
 
 
  • Post #52,915
  • Quote
  • Jun 30, 2022 1:36pm Jun 30, 2022 1:36pm
  •  RIKc
  • | Joined Jun 2017 | Status: Member | 25 Posts
Quoting Slingshots1
Disliked
{quote} Kindly assist i need a single arrow alert pointer for the attached breakout box the strat is based on 4hrs , box drawn based on the first high and low of the beginning of each week, with 20 buffer up or down, 4hrcandle that breaks and closed above or below is the signal candle, i need arrow signal that should confirm the break,i know youve done stuff like that in one of your postings here, please see the attached screenshot,normally the breakout make take a day or two or more before the break comes , but once it does it makes profit with...
Ignored
added arrows for closing price.
Attached File(s)
File Type: mq4 1 Box 4.mq4   8 KB | 113 downloads
 
 
  • Post #52,916
  • Quote
  • Jun 30, 2022 1:59pm Jun 30, 2022 1:59pm
  •  RIKc
  • | Joined Jun 2017 | Status: Member | 25 Posts
Quoting Anewr
Disliked
{quote} Alright...so....turns out this EA is not the best lol! Here are the results and I even changed the take profit to make it 1:2 and even 1:3 ratio (along with the 1:1 I originally put in for the parameters) and the following are the graphs of each. Also I tested from 01.01.2015 through 06.29.2022 and the period I used was H1 and the currency pairs were GBP/JPY, EUR/JPY, EUR/USD and So I feel bad that you had to make this for it not to work but also really appretiate it! I am going to play around with it a bit and modify it some and...
Ignored
Are orders being opened correctly?
I drew an area in front of which sell orders will be opened.
Orders are opened when the price is 20 points above or below the low of yesterday.
Attached Image (click to enlarge)
Click to Enlarge

Name: EURUSDM15.png
Size: 15 KB
 
 
  • Post #52,917
  • Quote
  • Jun 30, 2022 4:03pm Jun 30, 2022 4:03pm
  •  newfxtrader0
  • | Joined Nov 2014 | Status: Member | 26 Posts
Quoting cja
Disliked
{quote} Here is a version using the candle close. As far as your "Rules" go this EA follows exactly what you requested. Your request: The idea is to place a horizontal line on the chart and when the price closes above, it will open a buy, and if it goes back and closes below the horizontal line, the previous order will be closed and a sell order will be opened. This will happen until the price moves in one direction or the other. My entries are usually on the 1min, with trade decisions based on the 1hr and 4 hr. NOTE : You cannot change the name...
Ignored
dear CJA , there is a error in your EA. it automatically opens and close the trades fastly without wait to close candle.its opens sell trade and close it and then open buys and immediately close it and again opens sell trades.

some time it will works very well but some times it will just open and close trades without wait of candle close.

plz correct the error and allow ea to open next trade after candle close.

GOD BLESS YOU MY FRIEND. YOU ARE DOING GREAT WORK FOR THE FOREX COMMUNITY.
Attached Image (click to enlarge)
Click to Enlarge

Name: CJA.png
Size: 48 KB
 
 
  • Post #52,918
  • Quote
  • Jun 30, 2022 5:42pm Jun 30, 2022 5:42pm
  •  cja
  • Joined Feb 2007 | Status: Member | 1,934 Posts
Quoting newfxtrader0
Disliked
{quote} dear CJA , there is a error in your EA. it automatically opens and close the trades fastly without wait to close candle.its opens sell trade and close it and then open buys and immediately close it and again opens sell trades. some time it will works very well but some times it will just open and close trades without wait of candle close. plz correct the error and allow ea to open next trade after candle close. GOD BLESS YOU MY FRIEND. YOU ARE DOING GREAT WORK FOR THE FOREX COMMUNITY. {image}
Ignored
Try this I have changed the close logic.
Attached File(s)
File Type: ex4 Horizontal line reversal trader v1.ex4   41 KB | 256 downloads
Trade what you see not what you hope
 
 
  • Post #52,919
  • Quote
  • Jun 30, 2022 6:27pm Jun 30, 2022 6:27pm
  •  danerius
  • | Joined Jan 2020 | Status: Member | 29 Posts
Quoting jeanlouie
Disliked
{quote} {quote} - when copy n pasting n modding, check what you've just done (this is a common issue for me too), address the #property lines under where b_close is declared - when you double click on a compilation error, it will take you to where the error is, may not be exactly where the issue is, but close enough - highlight and press f1 for "Close" to see how to properly use it {quote}
Ignored
Hi jeanloiue

- I looked up Close and indeed its not the same thing as Bid/Ask. High, Low, Open etc are more like Close.
- So I simply added the [] and it helped a bit with the errors but not completely. Using Close[i] didnt help either.
- Like I mentioned earlier. The Close Price is what I want to plot. The Bid + Ask bit was left over from older code. I can happily loose it.

Big thanks /Bo

Inserted Code
#property copyright "Copyright :copyright: June 2022, jeanlouie"
#property link      /*"www.mql5.com/en/users/jeanlouie_ff"*/"https://www.forexfactory.com/jeanlouie"
#property description "www.forexfactory.com/jeanlouie"
#property description "www.mql5.com/en/users/jeanlouie_ff"
//#property version "1.00"
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
input int tick_count = 1000;            //Show last x ticks
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
#property strict
#property indicator_separate_window
#property indicator_buffers 3
double b_bid[];
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrPurple
#property indicator_width1 1
#property indicator_style1 STYLE_SOLID
double b_ask[];
#property indicator_type2 DRAW_LINE
#property indicator_color2 clrBlueViolet
#property indicator_width2 1
#property indicator_style2 STYLE_SOLID
double b_close[];
#property indicator_type3 DRAW_LINE
#property indicator_color3 clrWhite
#property indicator_width3 1
#property indicator_style3 STYLE_SOLID
#property indicator_levelcolor clrSilver
#property indicator_levelwidth 1
#property indicator_levelstyle STYLE_DOT
#property indicator_level1  0
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
//place to store stuff
double arr_bid[];
double arr_ask[];
double arr_close[];
int OnInit()
{
   //set draw buffers
   SetIndexBuffer(0,b_bid); 
   SetIndexEmptyValue(0,EMPTY_VALUE);
   
   SetIndexBuffer(1,b_ask); 
   SetIndexEmptyValue(1,EMPTY_VALUE);
   
   SetIndexBuffer(2,b_close);
   SetIndexEmptyValue(2,EMPTY_VALUE);
   
   //size the dynamic arrays to tickcount
   ArrayResize(arr_bid,tick_count);
   ArrayResize(arr_ask,tick_count);
   ArrayResize(arr_close,tick_count);
   
   //start them off with 0's
   ArrayInitialize(arr_bid,0);
   ArrayInitialize(arr_ask,0);
   ArrayInitialize(arr_close,0);
   
   IndicatorDigits(_Digits);
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
{
   if(prev_calculated<0)return(-1);
   if(IsStopped())return(-1);
   
   //save the last ask/bid prices
   static double prev_ask;
   static double prev_bid;
   static double prev_close;
   
   //get the current ask/bid change from the previous
   int delta_ask   = int((Ask-prev_ask)/_Point);
   int delta_bid   = int((Bid-prev_bid)/_Point);
   int delta_close = int((Close[i]-prev_close)/_Point);
   
   //if the previous ask/bid is non existent
   if(prev_ask   ==0) delta_ask = 0;
   if(prev_bid   ==0) delta_bid = 0;
   if(prev_close ==0) delta_close =0;
   
   //set values of prev ask/bid for next call
   prev_ask   = Ask;
   prev_bid   = Bid;
   prev_close = Close[i];
   
   //update display
   display_update(delta_ask, delta_bid, delta_close);

   return(rates_total);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
bool display_update(int d_ask, int d_bid, int d_close)
{
   
   //move array elements back 1 position, stop at index 1
   //i50=i49 ... i1=i0
   //array is array indexing, but treated as timeseries by filling new from index 0
   for(int i=tick_count-1; i>=1; i--){
      arr_ask[i]   = arr_ask[i-1];
      arr_bid[i]   = arr_bid[i-1];
      arr_close[i] = arr_close[i-1];
   }
   
   //insert new 0 element
   arr_ask[0]   = d_ask;
   arr_bid[0]   = d_bid;
   arr_close[0] = d_close;
   
   //update buffer display
   for(int i=0; i<tick_count; i++){
      b_ask[i] =    arr_ask[i];
      b_bid[i] =   arr_bid[i];
      b_close[i] = arr_close[i];
   }
   
   //set the previous left buffer val outside the tick count to empty or 0
   b_ask[tick_count-1+1]   = EMPTY_VALUE;
   b_bid[tick_count-1+1]   = EMPTY_VALUE;
   b_close[tick_count-1+1] = EMPTY_VALUE;
   
   return(true);
}
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
}
 
 
  • Post #52,920
  • Quote
  • Jun 30, 2022 7:47pm Jun 30, 2022 7:47pm
  •  vicol
  • | Joined Jan 2013 | Status: Member | 19 Posts
Quoting jeanlouie
Disliked
{quote} {quote} - when copy n pasting n modding, check what you've just done (this is a common issue for me too), address the #property lines under where b_close is declared - when you double click on a compilation error, it will take you to where the error is, may not be exactly where the issue is, but close enough - highlight and press f1 for "Close" to see how to properly use it {quote} - up to you, as mentioned before, a tick change in bid could be 0.90045 to 0.90047, +0.00002, you can plot 0.00002, or divid by the minimum tick increment _Point,...
Ignored

could you please help us out with these posts:

  1. Post 52,883
  2. Post 52,884
  3. Post 52,886

 
1
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 26442645Page 264626472648 3084
    • 1 Page 2646 3084
35 traders viewing now, 10 are members:
indihunter
,
she-venom
,
Invisible
,
Invisible
,
Uru
,
sohagbd
,
sinohe6
,
Invisible
,
njatha
,
Invisible
  • 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 / ©2023