• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 9:01am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 9:01am
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 55 replies

I will code your pivot EAs for no charge 20 replies

Need help to code EAs for MT4 and MT5 4 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
  • 41,114
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 26532654Page 265526562657 2990
  • 1 Page 2655 2990
  •  
  • Post #53,081
  • Quote
  • Jul 12, 2022 4:03am Jul 12, 2022 4:03am
  •  GreySkull
  • | Joined Oct 2008 | Status: Member | 62 Posts
Hello All,

Can someone help to convert the Mt4 EA attached below to mt5 EA?
Attached File(s)
File Type: ex4 My_New_HedgeEA.ex4   19 KB | 144 downloads
 
 
  • Post #53,082
  • Quote
  • Jul 12, 2022 4:29am Jul 12, 2022 4:29am
  •  GC-Finance
  • | Joined Jun 2022 | Status: Member | 84 Posts | Online Now
Quoting RIKc
Disliked
{quote} Check. TP and SL must now be entered as for the 5-digit. {file}
Ignored
I just checked and it works great! Thank you so much!
 
 
  • Post #53,083
  • Quote
  • Jul 12, 2022 4:46am Jul 12, 2022 4:46am
  •  Samalin
  • Joined Apr 2017 | Status: Member | 673 Posts
Quoting Tankk
Disliked
{quote} Williams AD +MA MTF TT [x3 AG] Indicator repaints in MTF mode! ALERTBAR corrected for MTF. {image} {file}
Ignored
Thanks Sir for your help please i attached your indicator on Renko chart, please see the attached, is there any possibility to work good?
Attached Image (click to enlarge)
Click to Enlarge

Name: FF.png
Size: 26 KB
 
 
  • Post #53,084
  • Quote
  • Jul 12, 2022 6:28am Jul 12, 2022 6:28am
  •  Orion80
  • | Joined Jul 2022 | Status: Member | 14 Posts
Quoting RIKc
Disliked
{quote} Check. TP and SL must now be entered as for the 5-digit. {file}
Ignored
Hello Traders and Coders,

I have a strategy that I want to to share with you in case some of you will help coding the indicators needed.

Actually I wanted to post it as a new thread in the strategy forum, but I'm not allowed yet as I'm a Junior member in Forex Factory.

But I found replying to this post should be ok to look for help.

Basically Correlated Pairs (Gold / Silver) (S&P / Nas) (...) move like DNA strands: they will cross each other, and then they will move away one from another like an elastic, to move together again later, and this sequence is repeated over time.

How can we take advantage of this sequence?

When they are far away from each other, at the maximum extension of the elastic, we can Sell the one above and Buy the one below.

No matter what, they will later cross each other again, and we will close both the position at the crossing.

At the closing we will have 3 scenario:
1) If the cross occurs between the Buy and the Sell, both trades are in profit.
2) If price closes above the Sell, the Buy will be in profit and Sell in loss, with the profit of the Buy bigger than the loss of the Sell.
3) If price closes below the Sell, the Sell will be in profit and the Buy in loss, with the profit of the Sell bigger than the loss of the Buy.

So, no matter where the price closes, we will have a NET of the 2 positions in profit.

A drawdown may occur if after we place the trades, the elastic enlarge even more, so we will have for some time both trades in loss. In this case we may also think to add a position as no matter what, the 2 pairs will cross each other again later.

It can be used on any time frame. I expect more trades on smaller timeframe with small profit each, and I expect fewer trades on bigger timeframe, but with bigger profit each.

What we will need?

1) We will need an overlay indicator which put the 2 pairs on the same chart.

2) We will need an indicator which indicate something like the strength of the divergence, which will help us to filter and to place the 2 trades at their maximum extension. For example, if this indicator has a scale of 0-100, we may consider to place the trades everytime the indicator goes above 80.

3) We will need a calculator which give us the equivalent position sizing of the trades to be placed for the 2 pairs.

What do you think? Can it be done?

Thanks in advance for answering.
 
 
  • Post #53,085
  • Quote
  • Jul 12, 2022 7:10am Jul 12, 2022 7:10am
  •  PatienceFx
  • Joined Jun 2013 | Status: enjoying life | 15,154 Posts
Quoting BlueRain
Disliked
{quote} you will do something like this. ObjectCreate(0,"L",OBJ_LABEL,0,0,0); ObjectSetText("L",T,12,"Tahoma",Yellow); ObjectSet("L",OBJPROP_CORNER,GN); ObjectSetInteger(0,"L",OBJPROP_XDISTANCE,25); ObjectSetInteger(0,"L",OBJPROP_YDISTANCE,100); ObjectCreate(0,"L2",OBJ_LABEL,0,0,0); ObjectSetText("L2",d,12,"Tahoma",Yellow); ObjectSet("L2",OBJPROP_CORNER,GN); ObjectSetInteger(0,"L2",OBJPROP_XDISTANCE,25); ObjectSetInteger(0,"L2",OBJPROP_YDISTANCE,120) Also,you should have XDistance, YDistance so that it knows where it can start placing its label....
Ignored
got it, thank you
Attached Image (click to enlarge)
Click to Enlarge

Name: EURUSDH1.png
Size: 10 KB
Indicators on my chart help me guess the trade they do not guarantee result
 
 
  • Post #53,086
  • Quote
  • Jul 12, 2022 7:15am Jul 12, 2022 7:15am
  •  Tankk
  • Joined Sep 2021 | Status: ********* | 386 Posts
Quoting Samalin
Disliked
Thanks Sir for your help please i attached your indicator on Renko chart, please see the attached, is there any possibility to work good?
Ignored
RenkoLiveChart v600,6 [indicator]
Range bars EA new format 1 [expert]

don't forget to enable DLL...
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: WAD on Renko_12-07-2022.png
Size: 46 KB
Click to Enlarge

Name: WAD on RangeBars_12-07-2022.png
Size: 47 KB
Attached File(s)
File Type: mq4 RenkoLiveChart v600,6 [crokus].mq4   21 KB | 124 downloads
File Type: mq4 Range bars EA new format 1 [deepak].mq4   31 KB | 106 downloads
File Type: ex4 Williams AD +MA MTF TT [x3 AG].ex4   28 KB | 103 downloads
study indicator settings and test it well...
 
 
  • Post #53,087
  • Quote
  • Jul 12, 2022 7:56am Jul 12, 2022 7:56am
  •  Samalin
  • Joined Apr 2017 | Status: Member | 673 Posts
Quoting masantok
Disliked
after trying many strategies, indies & robot from FF & other source. finally i came to this simple robot. THIS IS VERY BASIC, don't use it as is if you not a stupid person like me. please do some tweak or add some filter for better result. wish green pips for everyone {image} {file}
Ignored
i found this on FF, it may not be what you want but its close to, please try and share your settings
Attached File(s)
File Type: mq4 2ma crossover EA.mq4   30 KB | 96 downloads
File Type: ex4 2ma crossover EA.ex4   22 KB | 65 downloads
 
 
  • Post #53,088
  • Quote
  • Jul 12, 2022 7:57am Jul 12, 2022 7:57am
  •  Samalin
  • Joined Apr 2017 | Status: Member | 673 Posts
Quoting Tankk
Disliked
{quote} RenkoLiveChart v600,6 [indicator] Range bars EA new format 1 [expert] don't forget to enable DLL... {image} {image} {file} {file} {file}
Ignored
Master thanks for your help
 
1
  • Post #53,089
  • Quote
  • Jul 12, 2022 10:29am Jul 12, 2022 10:29am
  •  Sincere007
  • | Joined Nov 2018 | Status: Member | 107 Posts
Quoting BlueRain
Disliked
{quote} I don't think you can capture two at once. However, you can capture KeyDown and next, Check Property of object to act on. This video might help - Mql4 Lesson 42 Makiing ShortCut Keys - YouTube Basically, you will capture event of KeyDown with specific key value. ( + sign ) Next, if that happens, check the object properties such as OBJPROP_SELECTED or if this is button OBJPROP_STATE example of button object is pressed .. //do something if object button is pressed if (ObjectGetInteger(ChartID(),...
Ignored
Hello bluerain
If you can help me, I need simple script to read a .CSV-file and draw horizontal lines onto the chart. three columns in csv file. first is symbol name, then low price red lines and last column green line prices.
EURUSD 1.331 1.361
USDJPY 136.66 139.56
XAUUSD 1742.657 1749.225
XAUUSD 1743.657 1747.851
Attached File(s)
File Type: csv data.csv   < 1 KB | 50 downloads
 
 
  • Post #53,090
  • Quote
  • Jul 12, 2022 11:30am Jul 12, 2022 11:30am
  •  GreySkull
  • | Joined Oct 2008 | Status: Member | 62 Posts
Quoting GreySkull
Disliked
Hello All, Can someone help to convert the Mt4 EA attached below to mt5 EA? {file}
Ignored
This is EA originally take the concept of no loss hedging strategy. Work on Volatility period.
1. Good result only on GBPUSD & GBPAUD. Weekly profit above 20%
2. Activate during London Open 9.30 am to 12 noon (UK time) then- close it & wait for NY session open
3. Activate at New York Session open until London Close.
4. Don't activate or deactivate after London close & any bank holidays that effects UK & US, close it manually if no high floating loss. Not recommended to run the EA 24 hours, as it can cause margin call situation.
5. Useful & high profitability during News . This EA needs Volatility for good profits. You need to check before hand any news in the Forexfactory calender Refer to https://www.mataf.net/en/forex/tools/volatility
 
 
  • Post #53,091
  • Quote
  • Jul 12, 2022 12:48pm Jul 12, 2022 12:48pm
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting Sincere007
Disliked
{quote} Hello bluerain If you can help me, I need simple script to read a .CSV-file and draw horizontal lines onto the chart. three columns in csv file. first is symbol name, then low price red lines and last column green line prices. EURUSD 1.331 1.361 USDJPY 136.66 139.56 XAUUSD 1742.657 1749.225 XAUUSD 1743.657 1747.851 {file}
Ignored
Simple enough.
Attached File(s)
File Type: mq4 DrawHline with Data file.mq4   6 KB | 106 downloads
 
3
  • Post #53,092
  • Quote
  • Jul 12, 2022 12:52pm Jul 12, 2022 12:52pm
  •  linker26
  • | Joined Aug 2021 | Status: Member | 100 Posts
Quoting BlueRain
Disliked
{quote} I don't think you can capture two at once. However, you can capture KeyDown and next, Check Property of object to act on. This video might help - Mql4 Lesson 42 Makiing ShortCut Keys - YouTube Basically, you will capture event of KeyDown with specific key value. ( + sign ) Next, if that happens, check the object properties such as OBJPROP_SELECTED or if this is button OBJPROP_STATE example of button object is pressed .. //do something if object button is pressed if (ObjectGetInteger(ChartID(),...
Ignored
Thanks friend.
the idea is to combine the action of holding down a key (for example the "S" key) with a right mouse click.
I am trying not to implement buttons on the chart. Only use keyboard shortcuts in combination with mouse click
 
 
  • Post #53,093
  • Quote
  • Jul 12, 2022 1:07pm Jul 12, 2022 1:07pm
  •  Slingshots1
  • Joined Feb 2012 | Status: Member | 1,306 Posts
Quoting BlueRain
Disliked
{quote} Added those word to alert. {file}
Ignored
Hi this was the one i wrote you about which you said you may look into if posted here since you stopped handling such stuff via mail well i put it here and the arrow has been attached but theres no alert to complete it please kindly assist me.What is needed here is a breakout alert on the candle that closes outside the horizontal lines just like what the arrow has done. Thanks
Attached Image (click to enlarge)
Click to Enlarge

Name: FF2.PNG
Size: 12 KB
Attached File(s)
File Type: mq4 1 Box 4.mq4   8 KB | 150 downloads
 
 
  • Post #53,094
  • Quote
  • Jul 12, 2022 1:30pm Jul 12, 2022 1:30pm
  •  PatienceFx
  • Joined Jun 2013 | Status: enjoying life | 15,154 Posts
requesting for one indicator to draw 4 different sma with different settings and color on chart
Indicators on my chart help me guess the trade they do not guarantee result
 
 
  • Post #53,095
  • Quote
  • Jul 12, 2022 1:57pm Jul 12, 2022 1:57pm
  •  Sincere007
  • | Joined Nov 2018 | Status: Member | 107 Posts
Quoting BlueRain
Disliked
{quote} Simple enough. {file}
Ignored
OMG OMG ....
You are genius and so smart... intelligence comes to people humble like you.
I love you
 
 
  • Post #53,096
  • Quote
  • Jul 12, 2022 2:08pm Jul 12, 2022 2:08pm
  •  danerius
  • | Joined Jan 2020 | Status: Member | 29 Posts
Quoting jacryptoking
Disliked
{quote} You could use fractal swing highs . and Lows of higher tf for lower tf support and resistance. What you should do is code an indicator to identify the most 2 most recent bullish and bearish engulfing candlestick patterns above and below current market price. Have MTF feature of the indicator. For bullish engulfing candle patterns the open price of the engulfed candle have a horizontal line stretched to current Data and horizontal price line at the low of the engulfing candle pattern that form a zone . For bearish engulfing candle pattern...
Ignored
Hi jacryptoking

Sorry but the concept of what youre describing is beyond my grasp. And its doesnt sound like the one Im suggesting.

Take care /Bo
 
 
  • Post #53,097
  • Quote
  • Jul 12, 2022 2:28pm Jul 12, 2022 2:28pm
  •  danerius
  • | Joined Jan 2020 | Status: Member | 29 Posts
Quoting jeanlouie
Disliked
{quote} {quote} - yes, bid/ask are single values,...
Ignored
Hello jeanlouise

Ive been tinkering with this code and made some progress. Not much, but some.
One thing befuddles me greatly and Ive made a comment in the code below

Sincerely /Bo

Inserted Code
//+------------------------------------------------------------------+
//|                                              !jl_Tick_Change.mq4 |
//|                                 Copyright :copyright: June 2022, jeanlouie |
//|                                   www.forexfactory.com/jeanlouie |
//|                               www.mql5.com/en/users/jeanlouie_ff |
//+------------------------------------------------------------------+
#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 2
double b_bid[];
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrYellow
#property indicator_width1 1
#property indicator_style1 STYLE_SOLID
double b_ask[];
#property indicator_type2 DRAW_LINE
#property indicator_color2 clrWhite
#property indicator_width2 1
#property indicator_style2 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[];
int OnInit()
{
   //set draw buffers
   SetIndexBuffer(0,b_bid);
   SetIndexEmptyValue(0,EMPTY_VALUE);
  
   SetIndexBuffer(1,b_ask);
   SetIndexEmptyValue(1,EMPTY_VALUE);
  
   //size the dynamic arrays to tickcount
   ArrayResize(arr_bid,tick_count);
   ArrayResize(arr_ask,tick_count);
  
   //start them off with 0's
   ArrayInitialize(arr_bid,0);
   ArrayInitialize(arr_ask,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;

Inserted Code
   //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);

Shouldnt the calculation above have a bunch of decimals in it? How come its an int variable?
Also. When I remove the divide by Points, the code compiles but does not draw any lines. I dont get why that is?

Inserted Code
  
   //if the previous ask/bid is non existent
   if(prev_ask==0)delta_ask = 0;
   if(prev_bid==0)delta_bid = 0;
  
   //set values of prev ask/bid for next call
   prev_ask = Ask;
   prev_bid = Bid;
  
   //update display
   display_update(delta_ask,delta_bid);
 
   return(rates_total);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
bool display_update(int d_ask, int d_bid)
{
  
   //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];
   }
  
   //insert new 0 element
   arr_ask[0] = d_ask;
   arr_bid[0] = d_bid;
  
   //udpate buffer display
   for(int i=0; i<tick_count; i++){
      b_ask[i] = arr_ask[i];
      b_bid[i] = arr_bid[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;
  
   return(true);
}
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
}
 
 
  • Post #53,098
  • Quote
  • Jul 12, 2022 3:12pm Jul 12, 2022 3:12pm
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 1,500 Posts
Quoting danerius
Disliked
{quote} Hello jeanlouise... { }
Ignored
There is no s in my member name.

Quote
Disliked
Shouldnt the calculation above have a bunch of decimals in it? How come its an int variable?
Inserted Code
int delta_ask = int((Ask-prev_ask)/_Point);
- it is asking how many points changed, to the curent ask, from the previous ask, which will be an integer, a quantity/count/number of points
eg 0.004 change to 0.007, is a change of +0.003, if that symbol has points in 0.001, that is a +3 point change, an integer
(0.007-0.004)/0.001 = 3 points

Quote
Disliked
When I remove the divide by Points, the code compiles but does not draw any lines. I dont get why that is?
- lines are drawn but theyre probably 0
- without dividing the change in price by points, you are left with some decimal number of the ask/bid change, say 0.003, this is being typecasted into an integer via int(0.003), which turns it to 0, and 0 is plotted, without typecasting the decimal will still be cut into in an integer and a compiler warning telling u its happening will show up
- if you want 0.003 instead of 3points, you can turn the variable delta_asl/bid into a double instead
 
 
  • Post #53,099
  • Quote
  • Jul 12, 2022 3:43pm Jul 12, 2022 3:43pm
  •  RIKc
  • | Joined Jun 2017 | Status: Member | 25 Posts
Quoting Slingshots1
Disliked
{quote} Hi this was the one i wrote you about which you said you may look into if posted here since you stopped handling such stuff via mail well i put it here and the arrow has been attached but theres no alert to complete it please kindly assist me.What is needed here is a breakout alert on the candle that closes outside the horizontal lines just like what the arrow has done. Thanks{image}{file}
Ignored
Added alerts.
Tweaked the code a little.
Attached File(s)
File Type: mq4 1 Box 4.mq4   8 KB | 128 downloads
 
1
  • Post #53,100
  • Quote
  • Edited Jul 13, 2022 8:57am Jul 12, 2022 4:50pm | Edited Jul 13, 2022 8:57am
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 1,500 Posts
Quoting linker26
Disliked
{quote}...idea is to combine the action of holding down a key (for example the "S" key) with a right mouse click...
Ignored
As bluerain stated you wont be capturing 2 events at once, it's not how onchartevent works.

- to see how onchart event receives events, print its params out, you will see it as a queue of events, one after another, with differing l/d/s params
- limit the print out to just events of keypress, and see the values change when you press different keys and hold them, also read the documentation for it
- to combined different events, generally you would wait for a certain event with certain l/d/s params that you want, then turn on some switch variable, and wait for another event with l/d/s params that you want, then reset the switch and perform some other action, or reset the switch when a disqualifying event comes in, but in your case resetting the switch to wait for a new keyhold to allow a new clickobj event, may be cumbersome and not user friendly

- in this particular case I'd recommend keeping a timer on the keyhold for when a clickobj comes in, you can go further and differentiate between a keypress and keyhold by comparing the sparam, but it's not functionally important, so something like
Inserted Code
   int keycode = 65;//keyboard code for a
   static bool keyhold;//switch to start waiting for a click event
  
   static long t_keyhold;//time of keypress/hold
   int t_msc_max = 500;//maximum milliseconds after a keypress/hold
  
   if(id==CHARTEVENT_KEYDOWN){
      if(keyhold==false  && lparam==keycode){
         t_keyhold = GetTickCount();//save the msc passed since program start
         keyhold = true;
      }
   }
  
   if(keyhold==true){
      if(GetTickCount()-t_keyhold>t_msc_max){//timeout for keyhold, reset it
         keyhold = false;
      }
      else if(id==CHARTEVENT_CLICK){//target event combination, within timer
         Print("key pressed/held with a mouse click");
      }
   }

edit - added to check the keypressed is the intended key
 
3
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 26532654Page 265526562657 2990
    • 1 Page 2655 2990
33 traders viewing now, 9 are members:
Asmamo
,
classy
,
SkullCandy
,
jng640
,
edlivre
,
nor888
,
EliteTrader0
,
aliloo
,
dexterous
  • 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