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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MQL4 programming help needed - simply combining indicators 0 replies

I need some easy programming work done 0 replies

Need help with 10M chart - got it already but need some help! 1 reply

Need Some Help With an Indicators 0 replies

Need someone to shed some light on a programming issue 12 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 23
Attachments: Need help programming some indicators/EAs
Exit Attachments
Tags: Need help programming some indicators/EAs
Cancel

Need help programming some indicators/EAs

  • Last Post
  •  
  • Page 1 23 4
  • Page 1 23 4
  •  
  • Post #1
  • Quote
  • First Post: Dec 23, 2006 5:47pm Dec 23, 2006 5:47pm
  •  thesst
  • | Joined May 2006 | Status: Member | 13 Posts
Hello,

I am not a great programmer by any stretch (nor even a basic, decent one ), so I was wondering if anyone here would be willing to lend me a hand programming a simple EA for me.

Please PM me if you would like the information for this project.

Also, does anyone know of or can anyone program an indicator which is a pivot point moving average? (ie instead of the MA being calculated using close prices, it would be calculated using previous (H+L+C/3) prices.)

Thanks in advance!
  • Post #2
  • Quote
  • Dec 23, 2006 6:20pm Dec 23, 2006 6:20pm
  •  Zeuzere
  • | Joined Oct 2006 | Status: Hum! I like trend | 217 Posts
Do you know how to program Custom indicator?
Sorry for my bad english translation
 
 
  • Post #3
  • Quote
  • Dec 23, 2006 6:22pm Dec 23, 2006 6:22pm
  •  thesst
  • | Joined May 2006 | Status: Member | 13 Posts
Quoting Zeuzere
Disliked
Do you know how to program Custom indicator?
Ignored
No... that's why I need help.
 
 
  • Post #4
  • Quote
  • Dec 23, 2006 6:29pm Dec 23, 2006 6:29pm
  •  Zeuzere
  • | Joined Oct 2006 | Status: Hum! I like trend | 217 Posts
If you look at this thread. You can have info on how start programing a basic indicator... But you must want to program... ;-)
There is a link to a good pdf lesson on Programming and MT4 application.

Quoting thesst
Disliked
No... that's why I need help.
Ignored
Sorry for my bad english translation
 
 
  • Post #5
  • Quote
  • Dec 23, 2006 8:17pm Dec 23, 2006 8:17pm
  •  4xCoder
  • | Joined Dec 2005 | Status: Will Code for Pips | 137 Posts
Quoting thesst
Disliked
Hello,

Also, does anyone know of or can anyone program an indicator which is a pivot point moving average? (ie instead of the MA being calculated using close prices, it would be calculated using previous (H+L+C/3) prices.)
Ignored
You can do this with the built-in Moving Average indicator by changing the Close Price to Typical Price.

In MQ4 you would do

iMA( NULL, 0, period, 0, MODE_SMA, PRICE_TYPICAL, shift );

See http://docs.mql4.com/indicators/iMA for details
 
 
  • Post #6
  • Quote
  • Dec 24, 2006 5:08am Dec 24, 2006 5:08am
  •  thesst
  • | Joined May 2006 | Status: Member | 13 Posts
Quoting 4xCoder
Disliked
You can do this with the built-in Moving Average indicator by changing the Close Price to Typical Price.

In MQ4 you would do

iMA( NULL, 0, period, 0, MODE_SMA, PRICE_TYPICAL, shift );

See http://docs.mql4.com/indicators/iMA for details
Ignored
Thanks very much! I will do that.
 
 
  • Post #7
  • Quote
  • Jan 4, 2007 3:08am Jan 4, 2007 3:08am
  •  thesst
  • | Joined May 2006 | Status: Member | 13 Posts
Hello everyone,

I wonder if I might ask for the help of some of the more experienced MT4 programmers here:

I thought I had programmed my Expert Advisor correctly, everything compiled with no errors, but then when I plug it into the strategy tester, I get no trade results. I know from manual backtesting that this system DOES yield trades, which of course means there's something wrong in my code that's keeping it from opening any orders.

Would someone mind taking a look at it and pointing out any errors it contains? Thanks so much.
Attached File(s)
File Type: mq4 Thesst62EMABreakouts.mq4   2 KB | 533 downloads
 
 
  • Post #8
  • Quote
  • Jan 4, 2007 8:37am Jan 4, 2007 8:37am
  •  4xCoder
  • | Joined Dec 2005 | Status: Will Code for Pips | 137 Posts
Try changing the == below to > in the first if and < in the second if. The way it is now, you'll enter only when the the close price is exactly ema + entrypips and that will never happen.

PHP Code
  if (total < maxLots) 
   {
   if (
Close[0] == ema + EntryPips*Point && Low[1] < ema){
   
placeLongTrade();
   }
   else if (
Close[0] == ema - EntryPips*Point && High[1] > ema){
   
placeShortTrade();
   } 
 
 
  • Post #9
  • Quote
  • Jan 4, 2007 12:57pm Jan 4, 2007 12:57pm
  •  thesst
  • | Joined May 2006 | Status: Member | 13 Posts
Quoting 4xCoder
Disliked
Try changing the == below to > in the first if and < in the second if. The way it is now, you'll enter only when the the close price is exactly ema + entrypips and that will never happen.

PHP Code
  if (total < maxLots) 

   {
   if (
Close[0] == ema + EntryPips*Point && Low[1] < ema){
   
placeLongTrade();
   }
   else if (
Close[0] == ema - EntryPips*Point && High[1] > ema){
   
placeShortTrade();
   } 
Ignored
Thanks, 4xCoder... now I have more problems.
1) It still won't open short positions.
2) How would I get it to not open multiple positions at the same price and time?
 
 
  • Post #10
  • Quote
  • Jan 4, 2007 1:35pm Jan 4, 2007 1:35pm
  •  JosTheelen
  • | Joined Jan 2006 | Status: Member | 151 Posts
Quoting thesst
Disliked
Thanks, 4xCoder... now I have more problems.
1) It still won't open short positions.
2) How would I get it to not open multiple positions at the same price and time?
Ignored
1) don't know, maybe that will come another day
2) add some global variable:
bool tradedone=false;
Add "tradedone = true" in your function placeLongTrade and placeShortTrade and add after int total=OrdersTotal(); something like "if (total == 0) tradedone = false;"
 
 
  • Post #11
  • Quote
  • Sep 1, 2011 12:06pm Sep 1, 2011 12:06pm
  •  rast
  • | Joined Jun 2009 | Status: Member | 13 Posts
Hi, Can someone help me program this indicator that gives me an alert and a pop up window when price hits the MA?
 
 
  • Post #12
  • Quote
  • Sep 27, 2011 12:52pm Sep 27, 2011 12:52pm
  •  garyghouri
  • | Joined Mar 2009 | Status: Member | 24 Posts
Quoting thesst
Disliked
Thanks, 4xCoder... now I have more problems.
1) It still won't open short positions.
2) How would I get it to not open multiple positions at the same price and time?
Ignored
could you please program dss bressert with warning mode just like the one is found in nonlag ma v7.1 will appreciat for your kind attention
Attached File(s)
File Type: mq4 DSS Bressert.mq4   3 KB | 403 downloads
File Type: mq4 NonLagMA_v7.1.mq4   6 KB | 392 downloads
 
 
  • Post #13
  • Quote
  • Dec 17, 2011 4:00am Dec 17, 2011 4:00am
  •  vin_yoga
  • | Joined Jul 2010 | Status: Member | 15 Posts
I need a programmer to help me create a hedging EA as following logic: The first order is based on current price / position open a buystop or sell stop from x distance from current price. After the first order is triggered, immediately open a stop order (buy stop or sell stop) in opposite direction a number of pip above sell order or below buy order with double lot size. If the second order is triggered, immediately open a stop order in opposite direction to the second order with double lot size . ..... and so on for third, fourth....... orders.After doubling the lot size in second order, the same lot size should be maintained in all other orders. If the total profit from all orders reach a specific $ value (this value is a input parameter of EA), the EA must close all opening orders and delete the stop order. After closing orders it will immediately start the cycle again. Here is an example. If the EA open a buystop order with 0.1 lot and after this order get triggered the EA should immediately open a sell stop order 10 pips below the opening price of the first order with 0.2 lot. If the second order is triggered, the EA must open a buy stop order in the same first buy order price with lot size 0.2 and so on........ for the third, fourth, fifth ........orders. If the total profit of all opening orders reach a $ value, let say $20, then the EA must close all opening orders and the stop order as well. After that the cycle starts again. The lot size of the first order, the $value of profit target, the number of pip to open stop order must be input parameters of the EA. The EA should also have common features like magic number, trading hour, comment........ and should be useable with nonUSD account.
 
 
  • Post #14
  • Quote
  • Jan 7, 2012 4:17pm Jan 7, 2012 4:17pm
  •  garyghouri
  • | Joined Mar 2009 | Status: Member | 24 Posts
Quoting garyghouri
Disliked
could you please program momentum on chart signals indicator v1.0 with warning mode just like the one is found in nonlag ma v7.1 will appreciat for your kind attention
Ignored
could you please program momentum on chart signals indicator v1.0 with warning mode just like the one is found in nonlag ma v7.1 will appreciat for your kind attention
Attached File(s)
File Type: mq4 #Momentum onChartSignals Indicator v1.0.mq4   7 KB | 530 downloads
File Type: mq4 NonLagMA_v7.1.mq4   6 KB | 434 downloads
 
 
  • Post #15
  • Quote
  • Jan 7, 2012 4:26pm Jan 7, 2012 4:26pm
  •  garyghouri
  • | Joined Mar 2009 | Status: Member | 24 Posts
Quoting 4xCoder
Disliked
Try changing the == below to > in the first if and < in the second if. The way it is now, you'll enter only when the the close price is exactly ema + entrypips and that will never happen.

PHP Code
  if (total < maxLots) 

   {
   if (
Close[0] == ema + EntryPips*Point && Low[1] < ema){
   
placeLongTrade();
   }
   else if (
Close[0] == ema - EntryPips*Point && High[1] > ema){
   
placeShortTrade();
   } 
Ignored
could you please program momentum on chart signals indicator v1.0 with warning mode just like the one is found in nonlag ma v7.1 will appreciat for your kind attention
Attached File(s)
File Type: mq4 #Momentum onChartSignals Indicator v1.0.mq4   7 KB | 438 downloads
File Type: mq4 NonLagMA_v7.1.mq4   6 KB | 364 downloads
 
 
  • Post #16
  • Quote
  • Jan 25, 2012 6:30pm Jan 25, 2012 6:30pm
  •  128break
  • | Joined Apr 2009 | Status: Junior Member | 3 Posts
Guys,
I want to try to have this made into an EA, then i want to fit it to master trade panel, when completed i post forward testing results on here on a live account.
but............
I need the mq4 with the code. Not a decompiled version, the original
so any help would be much appreciated to move this project forward.
Paul
 
 
  • Post #17
  • Quote
  • Jan 25, 2012 7:09pm Jan 25, 2012 7:09pm
  •  cyber1
  • Joined Jan 2011 | Status: Member | 1,299 Posts | Online Now
Quoting 128break
Disliked
Guys,
I want to try to have this made into an EA, then i want to fit it to master trade panel, when completed i post forward testing results on here on a live account.
but............
I need the mq4 with the code. Not a decompiled version, the original
so any help would be much appreciated to move this project forward.
Paul
Ignored
Where is the indicator?
 
 
  • Post #18
  • Quote
  • Jan 25, 2012 7:35pm Jan 25, 2012 7:35pm
  •  128break
  • | Joined Apr 2009 | Status: Junior Member | 3 Posts
Quoting cyber1
Disliked
Where is the indicator?
Ignored
Thx Cyber for helping
Attached File(s)
File Type: ex4 Neuro Forex Strength Trend Predictor.ex4   6 KB | 736 downloads
 
 
  • Post #19
  • Quote
  • Jan 26, 2012 8:02am Jan 26, 2012 8:02am
  •  Robert Harri
  • | Joined Jan 2012 | Status: Member | 17 Posts
What platforms do you find give the best pricing
 
 
  • Post #20
  • Quote
  • Feb 4, 2012 11:38pm Feb 4, 2012 11:38pm
  •  GBP Trader
  • | Joined Mar 2011 | Status: Member | 34 Posts
Coding Master I ask for help to make the EA with the rules:


Selling Setup

We use the daily chart shows that the price moves up close and into the area of ​​Supply (resistance). All Zone Supply / Demand = All Zone side way
( See pic 1 )

Simple Strategies:

1. S / D areas identified in the TF H1.
2. When the candle is made ​​of high (A) on the H1 chart, moved to the intra-day time frame (M15 or M5) to explore opportunities Sell / Short entry. Use Breakout or Pullback to make decition entry BUY or SELL.
3. In this small TF looking up the last candle is followed by a down candle. (picture below/pic 2-4)
4. Entry made ​​on the second candle down ( trade SELL ), and do not need to wait for his close-(picture below/pic 2-4)
5. StopLoss.
6.TStop.
Attached Image (click to enlarge)
Click to Enlarge

Name: Need EA Coding.jpg
Size: 97 KB
 
 
  • Platform Tech
  • /
  • Need help programming some indicators/EAs
  • Reply to Thread
    • Page 1 23 4
    • Page 1 23 4
0 traders viewing now
  • 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