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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Fixing Your Indicators or EAs (Free) 449 replies

Coding robots and indicators in C# for no charge (cTrader API) 180 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

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 29,594
Attachments: I will code your EAs and Indicators for no charge
Exit Attachments

I will code your EAs and Indicators for no charge

  • Last Post
  •  
  • 1 17081709Page 171017111712 2165
  • 1 Page 1710 2165
  •  
  • Post #34,181
  • Quote
  • Apr 23, 2020 4:49pm Apr 23, 2020 4:49pm
  •  Slingshots1
  • Joined Feb 2012 | Status: Member | 714 Posts
Quoting BlueRain
Disliked
{quote} this section doesn't have order place. it is just counting current order. You will need to modify some section where it has OrderSend()
Ignored
Appreciate thanks .
  • Post #34,182
  • Quote
  • Apr 23, 2020 4:57pm Apr 23, 2020 4:57pm
  •  Ron77
  • | Joined Jul 2016 | Status: Member | 3 Posts
Hello,

Could you tell me how it is possible to have an indicator that tells me information like for example:
% of the day
Upper
Lower
Name of broker
...
Attached Image (click to enlarge)
Click to Enlarge

Name: % of the day.jpeg
Size: 84 KB
  • Post #34,183
  • Quote
  • Apr 23, 2020 5:38pm Apr 23, 2020 5:38pm
  •  Shabs19
  • Joined Aug 2006 | Status: Member | 2,413 Posts
If any kind coder can take a look this indicator code, it deletes rectangles drawn, each time chart timeframe is changed.
It doesnt delete horizontal lines or other objects, only rectangles.

Attached File
File Type: mq4 MTF_HI_LOW_v1.1.mq4   21 KB | 74 downloads
To Earn you must Learn
  • Post #34,184
  • Quote
  • Apr 23, 2020 5:49pm Apr 23, 2020 5:49pm
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 826 Posts
Quoting Shabs19
Disliked
If any kind coder can take a look this indicator code, it deletes rectangles drawn, each time chart timeframe is changed. It doesnt delete horizontal lines or other objects, only rectangles. {file}
Ignored
You have to delete this lines from indicator.

ObjectsDeleteAll(0,OBJ_RECTANGLE);
ObjectsDeleteAll(0,OBJ_TRENDBYANGLE);
ObjectsDeleteAll(0,OBJ_TEXT);

this will delete all RECTANGLE whenever you change time frame.
I still don't know where is the Holy Grail
1
  • Post #34,185
  • Quote
  • Apr 23, 2020 6:49pm Apr 23, 2020 6:49pm
  •  Shabs19
  • Joined Aug 2006 | Status: Member | 2,413 Posts
Quoting BlueRain
Disliked
{quote} You have to delete this lines from indicator. ObjectsDeleteAll(0,OBJ_RECTANGLE); ObjectsDeleteAll(0,OBJ_TRENDBYANGLE); ObjectsDeleteAll(0,OBJ_TEXT); this will delete all RECTANGLE whenever you change time frame.
Ignored
Of course, didn't look properly.

Thanks........
To Earn you must Learn
  • Post #34,186
  • Quote
  • Apr 23, 2020 7:37pm Apr 23, 2020 7:37pm
  •  ultax
  • | Joined Oct 2019 | Status: Member | 79 Posts
In my MT4 I have Heiken Ashi Indicator that splits the open, high, low, close candles into lines and plots them like moving averages.

I am trying to find the same for MT5 but have not been able to find one.

Can anyone help?
  • Post #34,187
  • Quote
  • Apr 23, 2020 9:36pm Apr 23, 2020 9:36pm
  •  cja
  • Joined Feb 2007 | Status: Member | 1,635 Posts
Quoting Shabs19
Disliked
If any kind coder can take a look this indicator code, it deletes rectangles drawn, each time chart timeframe is changed. It doesnt delete horizontal lines or other objects, only rectangles. {file}
Ignored
Quoting BlueRain
Disliked
{quote} You have to delete this lines from indicator. ObjectsDeleteAll(0,OBJ_RECTANGLE); ObjectsDeleteAll(0,OBJ_TRENDBYANGLE); ObjectsDeleteAll(0,OBJ_TEXT); this will delete all RECTANGLE whenever you change time frame.
Ignored
Quoting Shabs19
Disliked
{quote} Of course, didn't look properly. Thanks........
Ignored

Here is an updated version, the version you had is very old ( 2006 ) and has very poor delete code and I should know because I coded it.
Attached File
File Type: ex4 Daily-Weekly-Monthly Hi-Low nmc.ex4   45 KB | 256 downloads
Trade what you see not what you hope
4
  • Post #34,188
  • Quote
  • Apr 23, 2020 10:40pm Apr 23, 2020 10:40pm
  •  truongkiem
  • | Joined Sep 2018 | Status: Junior Member | 5 Posts
Hi everyone,

I am a newbie. I setup a system that uses high low zigzag attached. I need alert when price break zigzag high/low under condition that price must be above/under EMA89 at the same time but the attached just alert when price breaks zigzag low.
Could anyone help me to add this condition on the attached indicator alert.
Many thanks in advance.
Attached File
File Type: mq4 ZigZag line v1d.mq4   15 KB | 70 downloads
  • Post #34,189
  • Quote
  • Edited at 1:26am Apr 24, 2020 1:05am | Edited at 1:26am
  •  Pett
  • | Joined Jan 2018 | Status: Member | 20 Posts
Hello all,
I am in the process of developing an Excel spreadsheet that analyzes 17 currency pairs and outputs "buy" or "sell" signals. The main sheet is the Summary sheet in which each currency pair occupies a single row and a CSV file is created whenever a signal (1 for buy, -1 for sell) is generated.
Attached Image

The CSV file is populated dynamically as the signals occur and contains 7 variables that should be passed into the OrderSend() function as shown below.
Attached Image


I am currently stuck at trying to get an EA to read the CSV file correctly. For reasons unknown to me, I cannot get the EA to read each row independently whenever a signal occurs but will read the CSV and execute trades when I manually populate all the rows with signal values. I also want the EA to indicate the open and close time and price of each trade using vertical lines so that I can monitor the accuracy of the signals but sadly the EA does not run the ObjectCreate() function as intended.

Inserted Code
 //<----- function for reading the csv file test.csv
void OnTick()
  {
file = FileOpen("test.csv",FILE_READ|FILE_CSV,',');
   while (!FileIsEnding(file))
     {  
          
       mSymbol = FileReadString(file);
       mType = FileReadString(file);
       mOpen = StrToDouble(FileReadString(file));  
       mSlippage = StrToInteger(FileReadString(file));  
       mStopLoss = StrToDouble(FileReadString(file));
       mTakeProfit = StrToDouble(FileReadString(file));  
       mNumber = StrToInteger(FileReadString(file));  
 
 
       if (file>0)
       {
         if(mType == "SELL" && OrderFind(mNumber, mSymbol) == false)
         {  
       Ticket =   OrderSend(mSymbol, OP_SELL, Lots, bid, mSlippage, mStopLoss, mTakeProfit, "Sell", mNumber, 0, clrRed);
       if(Ticket<1)
     {
      Print("Order send failed, OrderType : ", OP_SELL,", errcode : ",GetLastError());
       return;
   }  
   else
      Print(mSymbol,  mType, "executed successfully @: ", mOpen);
        
        
         if(mType == "BUY" && OrderFind(mNumber, mSymbol) == false)
         {
       Ticket =    OrderSend(mSymbol, OP_BUY, Lots, ask, mSlippage, mStopLoss, mTakeProfit, "Buy", mNumber, 0, clrGreen);
       if(Ticket<1)
     {
      Print("Order send failed, OrderType : ",OP_BUY,", errcode : ",GetLastError());
      return;
      }
       else
      Print(mSymbol,  mType, "executed successfully @: ",mOpen);
        
       }
   }    
       else
       {
         continue;
       }  
}
              
  }    
  
   FileClose(file);  
   return;
}
 
//<----- function for drawing lines on chart by trade open time
void drawVerticalLine(int barsBack) {
  
   string lineName = "Line"+string(MathRand());
  
   if (mType == "BUY") {
      ObjectCreate(lineName,OBJ_VLINE,0,Time[barsBack],0);
      ObjectSet(lineName,OBJPROP_COLOR, clrBlue);
      ObjectSet(lineName,OBJPROP_WIDTH,1);
      ObjectSet(lineName,OBJPROP_STYLE,STYLE_DOT);
   }
  
   if (mType == "SELL") {
      ObjectCreate(lineName,OBJ_VLINE,0,Time[barsBack],0);
      ObjectSet(lineName,OBJPROP_COLOR, clrRed);
      ObjectSet(lineName,OBJPROP_WIDTH,1);
      ObjectSet(lineName,OBJPROP_STYLE,STYLE_DOT);
  
   }
}

My questions are:
1. How can I modify the code so that the EA reads each row in the CSV independently? By this I mean that if for instance there is a buy signal in row 5 and rows 1 to 4 are empty, the EA will still read the values in row 5?

2. Is it also possible to modify the code so that the EA draws vertical lines when a trade is opened and closed? Alternatively, how can I implement OBJ_TREND in the code to mark open and close time/price using a trend line?

I will appreciate any guidance you can offer since I am totally stymied at this point. Please note that I am fairly new to MQL4 and this is actually my first attempt at piecing together an EA.

Thanks.

Attached is the entire EA
Attached File
File Type: mq4 OrdersCSV.mq4   6 KB | 55 downloads
  • Post #34,190
  • Quote
  • Apr 24, 2020 1:12am Apr 24, 2020 1:12am
  •  chonghm
  • | Joined Aug 2009 | Status: Member | 46 Posts
Hello Coders,

Appreciate if u can modify this EA for me. I just want the EA to open buy or sell positions only. I do not want the EA to close positions once the opposite signal appears.

Thanking you in advance for your assistance.
Attached File
File Type: mq4 lyliaEA.mq4   7 KB | 56 downloads
  • Post #34,191
  • Quote
  • Apr 24, 2020 1:45am Apr 24, 2020 1:45am
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 826 Posts
Quoting chonghm
Disliked
Hello Coders, Appreciate if u can modify this EA for me. I just want the EA to open buy or sell positions only. I do not want the EA to close positions once the opposite signal appears. Thanking you in advance for your assistance. {file}
Ignored
you can commented out or delete this section on both buy and sell setion.

/*
if(openpos()>0)
{
….
}
*/

This is basically if there is any open orders, close it.
Attached File
File Type: mq4 lyliaEA.mq4   7 KB | 57 downloads
I still don't know where is the Holy Grail
  • Post #34,192
  • Quote
  • Apr 24, 2020 1:49am Apr 24, 2020 1:49am
  •  chonghm
  • | Joined Aug 2009 | Status: Member | 46 Posts
Thank you BlueRain. Apreciate your prompt response.
  • Post #34,193
  • Quote
  • Apr 24, 2020 2:32am Apr 24, 2020 2:32am
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 826 Posts
Quoting Pett
Disliked
{file}
Ignored
Just search web with "MT4 Read CSV" and you will hit a lot of examples.
one of hit I got was
https://www.mql5.com/en/forum/255091
where you can find complete solution on how to read and process csv.

Regarding OBJ_VLINE and OBJ_TREND, it is well documented in mql5 site with sample code also.

here is a code block you can use for OBJ_TREND:



void DrawLine(string name, datetime Time1, datetime Time2, double Price1, double Price2,color lcolor, int lwidth,ENUM_LINE_STYLE linestyle)
{

ObjectDelete(name);

ObjectCreate(name,OBJ_TREND,0,Time1,0,Time2,0);

ObjectSet(name,OBJPROP_COLOR,lcolor);

if (linestyle == STYLE_SOLID)
ObjectSet(name,OBJPROP_WIDTH,lwidth);

ObjectSet(name,OBJPROP_STYLE,linestyle);

ObjectSet(name,OBJPROP_RAY,false);

ObjectSet(name,OBJPROP_PRICE1,Price1);
ObjectSet(name,OBJPROP_PRICE2,Price2);
}
I still don't know where is the Holy Grail
1
  • Post #34,194
  • Quote
  • Apr 24, 2020 5:14am Apr 24, 2020 5:14am
  •  Tomcat98
  • | Joined Nov 2006 | Status: Member | 99 Posts
Quoting rojack2
Disliked
i need this indicator to alert me on candle open not after the candle closes {file}
Ignored
Wow...in case of emergency call 911
You made my day.....

Sincerely
2
  • Post #34,195
  • Quote
  • Apr 24, 2020 5:50am Apr 24, 2020 5:50am
  •  rojack2
  • | Joined Jun 2019 | Status: Member | 16 Posts
Quoting Tomcat98
Disliked
{quote} Wow...in case of emergency call 911 You made my day..... Sincerely
Ignored
can you just tell me whats wrong?
  • Post #34,196
  • Quote
  • Apr 24, 2020 6:44am Apr 24, 2020 6:44am
  •  cdk1212
  • Joined Oct 2012 | Status: Member | 120 Posts
Hi,
I am looking for a good order entry panel.
Anyone have a favourite?

tks,
cdk
  • Post #34,197
  • Quote
  • Apr 24, 2020 7:23am Apr 24, 2020 7:23am
  •  RogerS2019
  • | Joined Sep 2019 | Status: Member | 13 Posts
Quoting mntiwana
Disliked
{quote} Hi Roger What i can say,it is "TzPivots" originally and was migrated by phylo from MT5 to MT4 dont know why renamed to "Scalping7"and commented out some copyright lines including some more functions from though added adx,force and rsi including filled zones but with bugs {image} {image} {image} {image} {file} {file}
Ignored
Hi mntiwana,
thank you very much, very successful
  • Post #34,198
  • Quote
  • Apr 24, 2020 8:27am Apr 24, 2020 8:27am
  •  mkfx
  • Joined Nov 2012 | Status: Member | 815 Posts
HI Coders

I have an EA which open and close trade individually one on one basis based on TP / SL .

I want few feature in this EA which i believe is possible to include.

Averaging profit taking : Close All buy trades or all short trades of a pair on certain pips based on average.

Max Open buy trades of a pair allowed : user will enter
Max Open Sales trades of a pair allowed : user will enter
Min Pips distance in next order opening
Next order multiply User will enter ( like 1 or 1.2 or 1.5 or 2 any number )


Add Filter

Price is above or below EMA: user select (True or False)
EMA Period : user enter ( any number like 10 or 21,50, 100,200 )
EMA Time : user choose ( from Current or daily or 4hr or 1 hr).


Related EA and required Indicator is attached


If some one can add requested feature it will a great help.

Thanks.

MK
Attached Files
File Type: mq4 EA1 TDI.mq4   8 KB | 58 downloads
File Type: ex4 TDI_RT alerts + divergence.ex4   66 KB | 73 downloads
  • Post #34,199
  • Quote
  • Apr 24, 2020 10:24am Apr 24, 2020 10:24am
  •  OutThere
  • Joined Aug 2018 | Status: Member | 2,173 Posts
Can anyone tell me pls how to make a color into "none" in the code?

I know how to change colors in the code but 'None' doesn't work as a replacement for the color that has already been coded. What's the trick?
  • Post #34,200
  • Quote
  • Apr 24, 2020 10:26am Apr 24, 2020 10:26am
  •  Shabs19
  • Joined Aug 2006 | Status: Member | 2,413 Posts
Quoting OutThere
Disliked
Can anyone tell me pls how to make a color into "none" in the code? I know how to change colors in the code but 'None' doesn't work as a replacement for the color. What's the trick?
Ignored
As a work around, I have many times simply, just used the chart background colour in the settings.
To Earn you must Learn
1
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 17081709Page 171017111712 2165
    • 1 Page 1710 2165
11 traders viewing now, 3 are members:
dexterous
,
ruozhuo
,
wowzers
  • 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