• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:03am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:03am
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
  • 30,328
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 15261527Page 152815291530 2219
  • 1 Page 1528 2219
  •  
  • Post #30,541
  • Quote
  • Sep 14, 2019 6:26pm Sep 14, 2019 6:26pm
  •  japfx
  • | Joined Jan 2011 | Status: Member | 287 Posts
Quoting COmar.FX
Disliked
{quote} maybe this one that You want... {image} {file}
Ignored
Not exert, i want the version that respect the start and ending of the last 2 sessions only.


I must say a big thanks for the effort so far.
  • Post #30,542
  • Quote
  • Edited at 4:43pm Sep 15, 2019 7:24am | Edited at 4:43pm
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 4,138 Posts
My Humble request to all master coders please create one indicator or script which show equal high=low horizontal line (consider close price or candle body only)different color for different color horizontal line will be great.i searched a lot on net but no luck........thanks in advance
ONE IMAGE CAN express more clearly than 100 words
Attached Image (click to enlarge)
Click to Enlarge

Name: ICT EQUAL HIGH LOW 2.png
Size: 437 KB
Say something meaningful or Silence!!
  • Post #30,543
  • Quote
  • Sep 16, 2019 12:02am Sep 16, 2019 12:02am
  •  muster
  • | Joined Sep 2019 | Status: Member | 9 Posts
Quoting muster
Disliked
Thank you Phylo & DrDave for helping me with the error with EA Reversals with pin Bars.mq4 {file} I cannot get the EA to trade automatically buy or sell , can someone have a look at EA and fix the problem. Many thanks . . . .Cheers Muster.
Ignored
Attached File
File Type: mq4 Reversals With Pin Bars.mq4   77 KB | 259 downloads
  • Post #30,544
  • Quote
  • Sep 16, 2019 2:40am Sep 16, 2019 2:40am
  •  emmy4
  • | Joined Aug 2009 | Status: Member | 100 Posts
Hello Coder's, please adjust the indicator to show only the first arrow and also add pop up alerts.
Thanks in advance.
Attached File
File Type: mq4 TrendArrows.mq4   4 KB | 212 downloads
  • Post #30,545
  • Quote
  • Sep 16, 2019 8:44am Sep 16, 2019 8:44am
  •  Simontw
  • Joined Jun 2017 | Status: Member | 377 Posts
Quoting COmar.FX
Disliked
{quote} Here You go... {file}
Ignored
Thank you very much.
EX BBMA trader focusing on REE code.
  • Post #30,546
  • Quote
  • Sep 16, 2019 9:51am Sep 16, 2019 9:51am
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,597 Posts
Quoting shinewel
Disliked
thanks in anticipation of your reply
Ignored
//-----

hey shinewel...... got your pm..... to find the highest or lowest over a set number of bars just use ihighest or ilowest..... set a begin bar and an end bar..... an end bar of 1 would be the last fully closed bar..... bar 0 would be the latest bar with price bouncing around..... begin bar of 10 would be the 10th closed bar back.....

your post does not mention how to display the figure so used the comment()......h
//------
Attached Image (click to enlarge)
Click to Enlarge

Name: shinewel.png
Size: 65 KB
Attached Files
File Type: mq4 shinewel.mq4   2 KB | 208 downloads
File Type: ex4 shinewel.ex4   7 KB | 153 downloads
to trade and code, keep both simple... no call to impress....h
  • Post #30,547
  • Quote
  • Sep 16, 2019 11:17am Sep 16, 2019 11:17am
  •  Mozak
  • Joined Sep 2014 | Status: Asyiappppp grak ! | 509 Posts
Hello... can i have code/mq4 to close all position order in my android phone ?

Thx
I'm In & I'm Profit
  • Post #30,548
  • Quote
  • Sep 16, 2019 12:19pm Sep 16, 2019 12:19pm
  •  tomx
  • | Joined Nov 2013 | Status: Member | 47 Posts
Guys, how to round lot value? I would like to get 2 decimal point lot value. I'm using lot multiplier and getting error: "failed market buy 0.675.. invalid volume" In this case lot size should be 0.68.

Inserted Code
bool CheckVolumeValue(double volume,string &error_description)
  {
   double min_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN);
   if(volume<min_volume)
     {
      error_description=StringFormat("Volume is less than the minimal allowed SYMBOL_VOLUME_MIN=%.2f",min_volume);
      return(false);
     }
   double max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX);
   if(volume>max_volume)
     {
      error_description=StringFormat("Volume is greater than the maximal allowed SYMBOL_VOLUME_MAX=%.2f",max_volume);
      return(false);
     }
   double volume_step=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_STEP);
   int ratio=(int)MathRound(volume/volume_step);
   if(MathAbs(ratio*volume_step-volume)>0.0000001)
     {
      error_description=StringFormat("Volume is not a multiple of the minimal step SYMBOL_VOLUME_STEP=%.2f, the closest correct volume is %.2f",
                                     volume_step,ratio*volume_step);
      return(false);
     }
   error_description="Correct volume value";
   return(true);
  }
  • Post #30,549
  • Quote
  • Sep 16, 2019 12:34pm Sep 16, 2019 12:34pm
  •  japfx
  • | Joined Jan 2011 | Status: Member | 287 Posts
Quoting classy
Disliked
My Humble request to all master coders please create one indicator or script which show equal high=low horizontal line (consider close price or candle body only)different color for different color horizontal line will be great.i searched a lot on net but no luck........thanks in advance ONE IMAGE CAN express more clearly than 100 words {image}
Ignored

BOSS you cant take pain to generate a chart showing what you want.... i am sure you can see all right reserved on that chart.... goodluck
  • Post #30,550
  • Quote
  • Sep 16, 2019 12:36pm Sep 16, 2019 12:36pm
  •  DrDave
  • Joined Jun 2011 | Status: Member | 4,256 Posts | Invisible
Quoting tomx
Disliked
Guys, how to round lot value? I would like to get 2 decimal point lot value. I'm using lot multiplier and getting error: "failed market buy 0.675.. invalid volume" In this case lot size should be 0.68. bool CheckVolumeValue(double volume,string &error_description) { double min_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN); if(volume<min_volume) { error_description=StringFormat("Volume is less than the minimal allowed SYMBOL_VOLUME_MIN=%.2f",min_volume); return(false); } double max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX); if(volume>max_volume)...
Ignored
Did you consider using NormalizeDouble function?
The markets are speaking to you. Do you know their language?
  • Post #30,551
  • Quote
  • Sep 16, 2019 1:57pm Sep 16, 2019 1:57pm
  •  tomx
  • | Joined Nov 2013 | Status: Member | 47 Posts
Quoting DrDave
Disliked
{quote} Did you consider using NormalizeDouble function?
Ignored
Like this?
double volume_step=NormalizeDouble(Symbol(),SYMBOL_VOLUME_STEP);
  • Post #30,552
  • Quote
  • Edited at 3:35pm Sep 16, 2019 1:57pm | Edited at 3:35pm
  •  Beerrun
  • Joined Jan 2016 | Status: Good Coder | Bad Trader | 458 Posts
Quoting tomx
Disliked
Guys, how to round lot value? I would like to get 2 decimal point lot value. I'm using lot multiplier and getting error: "failed market buy 0.675.. invalid volume" In this case lot size should be 0.68. bool CheckVolumeValue(double volume,string &error_description) { double min_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN); if(volume<min_volume) { error_description=StringFormat("Volume is less than the minimal allowed SYMBOL_VOLUME_MIN=%.2f",min_volume); return(false); } double max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX); if(volume>max_volume)...
Ignored
The correct way to normalize your lot size is:

double minlot=MarketInfo(MODE_MINLOT), lotstep=MarketInfo(MODE_LOTSTEP);
if(lotsize<=minlot)lotsize=minlot;
else lotsize=minlot+floor((lotsize-minlot)/lotstep)*lotstep);

Alternatively you can use ceil() to round up, or round().
NormalizeDouble() can still give errors since you aren’t basing your math off of the minimum lot step or size.
  • Post #30,553
  • Quote
  • Sep 16, 2019 3:16pm Sep 16, 2019 3:16pm
  •  banginyz
  • | Joined Feb 2013 | Status: Member | 6 Posts
Hey guys, any ideas about such indicator, which could calculate statistics: avarage candles count for price mini trends till they bounce back to XX (lets take example of touching FIB38) for given period (lets say in 2019) in given TF (lets say 30mins)
  • Post #30,554
  • Quote
  • Edited at 5:49pm Sep 16, 2019 5:16pm | Edited at 5:49pm
  •  hanifhalim
  • | Joined Apr 2015 | Status: Junior Member | 1 Post
Hi to all coder and master
can someone help code an Indicator for me?
the idea is to show a rectangle for each supply and demand happen


Condition 1
Rectangle Buy:
if candle (1) is red, and the next candle (2) (must be blue) and "close"(refer OHLC) higher or same as the "high" of candle (1)
show a rectangle
parameter of rectangle:
low of the rectangle is the "lowest" value between candle (1) or (2)
high of the rectagle is highest" of candle (1)
rectangle start from start of candle (1) to the start of the next 2 month of
the recent candle belong to

description of the rectangle for:
Monthly Time frame; MN Buy,Show on TF MN,D1
Weekly Time frame; W1 Buy,Show on TF W1,H4
Daily Time frame; D1 Buy,Show on TF D1,H1
H4 time frame; H4 Buy,Show on TF W1,H4
H1 time frame; H1 Buy,Show on TF D1,H1
M30 time frame; M30 Buy,Show on TF H4,M30
M15 time frame; M15 Buy,Show on TF H1,M15
M5 time frame; M5 Buy,Show on TF M30,M5
M1 time frame; M1 Buy,Show on TF M15,M1

colour : blue

*rectangle and the properties of the rectagle can be change by user or delete
*show only the recent 5 of the rectangle; can be change the value from 2 to 10

Condition 2
Rectangle Sell:
if candle (1) is blue, and the next candle (2) (must be red) and "close"(refer OHLC) lower or same as the "low" of candle (1)
show a rectangle
parameter of rectangle:
low of the rectangle is the "lowest" value of candle (1)
high of the rectagle is highest" value between candle (1) or (2)
rectangle start from start of candle (1) to the start of the next 2 month of
the recent candle belong to

description of the rectangle for:
Monthly Time frame; MN Sell,Show on TF MN,D1
Weekly Time frame; W1 Sell,Show on TF W1,H4
Daily Time frame; D1 Sell,Show on TF D1,H1
H4 time frame; H4 Sell,Show on TF W1,H4
H1 time frame; H1 Sell,Show on TF D1,H1
M30 time frame; M30 Sell,Show on TF H4,M30
M15 time frame; M15 Sell,Show on TF H1,M15
M5 time frame; M5 Sell,Show on TF M30,M5
M1 time frame; M1 Sell,Show on TF M15,M1

colour : red

*properties of the rectangle can be change by user(common/parameters/Visualisation)
*show only the recent 5 of the rectangle,can be change the value from 2 to 10

Condition 3
user can select which time frame the rectangle can be happen, show and work respectively (MN/W1/D1/H4/H1/M30/M15/M5/M1) at the begining of indicator and can be change directly

only show 5 recent rectangle of D1 buy if it condition happen in the box of each rectangle of MN Buy and respectively
only show 5 recent rectangle of H4 buy if it condition happen in the box of each rectangle of W1 Buy and respectively
only show 5 recent rectangle of H1 buy if it condition happen in the box of each rectangle of D1 Buy and respectively
only show 5 recent rectangle of M30 buy if it condition happen in the box of each rectangle of H4 Buy and respectively
only show 5 recent rectangle of M15 buy if it condition happen in the box of each rectangle of H1 Buy and respectively
only show 5 recent rectangle of M5 buy if it condition happen in the box of each rectangle of M30 Buy and respectively
only show 5 recent rectangle of M1 buy if it condition happen in the box of each rectangle of M15 Buy and respectively

the picture attached is the example of what i mean

please help me code this indicator for mt4 and mt5 as i very lame at C++

Attached Image (click to enlarge)
Click to Enlarge

Name: condition.PNG
Size: 18 KB

Attached Image (click to enlarge)
Click to Enlarge

Name: eu daily.PNG
Size: 53 KB

Attached Image (click to enlarge)
Click to Enlarge

Name: eu monthly.PNG
Size: 40 KB
  • Post #30,555
  • Quote
  • Sep 16, 2019 6:23pm Sep 16, 2019 6:23pm
  •  Gerhardus
  • | Joined Jul 2012 | Status: Member | 33 Posts
Good day is there any one ho can help me to update this indicator, To work on a Mt4 platform.
and give a signal setting option,
The coding email address and screen shot is in the rar file.
will mush presiate.
[email protected] Regards
Attached File
File Type: rar Open with word pad.rar   74 KB | 111 downloads
  • Post #30,556
  • Quote
  • Sep 16, 2019 7:02pm Sep 16, 2019 7:02pm
  •  ecryptom
  • | Joined Jun 2019 | Status: Member | 140 Posts
Hello guys,

I am looking for a pip count indicator such as the free indicator "pipsometer_5_decimal" (see attachments) that shows how many pips the price is moving when I am in the trade but additionally, I would like to add a special feature that shows a pip counter next to the moving candle and MARKS (very important) the furthest point with a small horizontal lime green line how far the trade has traveled so far.
Not sure if that makes sense, but I need this in order to see for how many pips the trade has been going so far in order to put my trade to break-even after, for example, 5 pips but since I am not in front of my monitor the whole time, I sometimes miss the 5 pip mark and price goes back to my entry point. What I then do is to manually calculate how many pips price has gone already and this is often very inaccurate and tiring.
Does such pip counter exist already?

any other ideas about ?
thank you in advance
Attached File
File Type: mq4 pipsometer_5_decimal.mq4   5 KB | 105 downloads
Everything flows. Learn to Earn.
  • Post #30,557
  • Quote
  • Sep 17, 2019 1:52am Sep 17, 2019 1:52am
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 4,138 Posts
Quoting japfx
Disliked
{quote} BOSS you cant take pain to generate a chart showing what you want.... i am sure you can see all right reserved on that chart.... goodluck
Ignored
thanks for your comments.i don't use buy sell signal kind of indicators.i request for my order block tools and most of them come from my stupid(which is not available in net) ideas(master cja understand my stupid idea correctly and sir created rare tools for me.i am obliged to master cja sir always)
Say something meaningful or Silence!!
1
  • Post #30,558
  • Quote
  • Sep 17, 2019 2:17am Sep 17, 2019 2:17am
  •  pips4life
  • Joined Apr 2007 | Status: Member | 699 Posts | Invisible
Quoting tomx
Disliked
Guys, how to round lot value? I would like to get 2 decimal point lot value. I'm using lot multiplier and getting error: "failed market buy 0.675.. invalid volume" In this case lot size should be 0.68. bool CheckVolumeValue(double volume,string &error_description) { double min_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN); if(volume<min_volume) { error_description=StringFormat("Volume is less than the minimal allowed SYMBOL_VOLUME_MIN=%.2f",min_volume); return(false); } double max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX); if(volume>max_volume)...
Ignored
Strange. Your function works for me on a USDCAD chart. My broker supports micro-lot sizes.
A test of 0.675 fails, as expected. A test of 0.68 passes.

(By the way, you might want to "MathFloor(0.675) -> 0.67", to truncate rather than round the lot size, but it's your choice.

I suggest you debug what value is returned by: double volume_step=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_STEP);
Compare it to: MarketInfo(Symbol(),MODE_LOTSTEP));
These should be the same value, and presumably both 0.01.

Are you calling your function in OnInit() ? Or later in the program?

I've seen that some "market" values are not yet properly initialized in OnInit, but later in the program -- when ticks come in -- they work.
  • Post #30,559
  • Quote
  • Sep 17, 2019 4:58am Sep 17, 2019 4:58am
  •  Waih
  • | Joined Aug 2018 | Status: Member | 42 Posts
Hello Guys, Need help in modifying a buy/sell script as described below.

I current use the Grid Buy & Sell scripts (Attached) for my Trades where i manually (hedge) buy and sell using limit/pending orders simultaneously in 3 levels of a candle with adjustable TP & SL levels.
I need this script modified to be able to place the Sell Limit/Stop & Buy Limit/Stop at the same points as well as SL & TP of the other 3 grid levels as described below

- In case of a BUY SIGNAL
1, The TP & SL for the 1st BUY Limit is adjustable but for the SELL stop the SL is also adjustable while the TP should be at the 2nd grid Buy limit (where you will have 1, Buy Limit, Sell Stop & SL for the 2nd order's sell stop)
2, The TP & SL for the 2nd BUY Limit should be adjustable, For the SELL Stop the SL should be exactly at the 1st Grid Buy limit order point and its TP at the 3rd grid buy limit (Here you will have - Buy Limit, Sell stop, TP for the 1st order's Sell Stop & SL for the 3rd order's Sell Stop )
3, The TP & SL for the 3rd BUY Limit should be adjustable But for the SELL Stop the SL should be exactly at the 2nd Grid Buy Limit order point and its TP remains adjustable (Here you will have - Buy Limit, Sell Stop, TP for the 2nd order's Sell Stop)

In case of a SELL SIGNAL

1, The TP & SL for the 1st SELL Limit is adjustable but for the BUY stop the SL is also adjustable while the TP should be at the 2nd grid Sell limit (where you will have 1, Sell Limit, Buy Stop & SL for the 2nd order's Buy stop)
2, The TP & SL for the 2nd SELL Limit should be adjustable, For the BUY Stop the SL should be exactly at the 1st Grid SELL limit order point and its TP at the 3rd grid Sell limit (Here you will have - Sell Limit, Buy stop, TP for the 1st order's Buy Stop & SL for the 3rd order's Buy Stop )
3, The TP & SL for the 3rd SELL Limit should be adjustable But for the BUY Stop the SL should be exactly at the 2nd Grid SELL Limit order point and its TP remains adjustable (Here you will have - Sell Limit, Buy Stop, TP for the 2nd order's Buy Stop)

Please find attached pics for a clearer explanation.

Attached Image (click to enlarge)
Click to Enlarge

Name: SELL TRADE PIC 2.png
Size: 255 KB
Attached Image (click to enlarge)
Click to Enlarge

Name: BUY TRADE PIC 2.png
Size: 237 KB
Attached File
File Type: mq4 Buy Grid D1 Sam.mq4   9 KB | 148 downloads
Attached File
File Type: mq4 Sell Grid D1 Sam.mq4   9 KB | 131 downloads
In It To Win
1
  • Post #30,560
  • Quote
  • Sep 17, 2019 3:13pm Sep 17, 2019 3:13pm
  •  Veisal
  • | Joined Aug 2019 | Status: Member | 6 Posts
Hello, can this indicator be converted into nice magnifying arrows as in the picture. thanks in advance
Attached Image (click to enlarge)
Click to Enlarge

Name: 1.jpg
Size: 123 KB
Attached File
File Type: mq4 MONEY_INFORMER_GOOD.mq4   16 KB | 318 downloads
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 15261527Page 152815291530 2219
    • 1 Page 1528 2219
19 traders viewing now, 7 are members:
Invisible
,
Invisible
,
nickvh1
,
gravour
,
Drive777
,
Ceto
,
mntiwana
  • 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