Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1551 (permalink)  
Old 01-26-2009, 04:55 PM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
Roger09 is on a distinguished road
Make a trendline, then mark it by twice click, then click right button on any square. In a menu find "trendline properties", then tab "Parameters". Unmark "Ray", then OK. That's all.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1552 (permalink)  
Old 01-26-2009, 07:23 PM
Member
 
Join Date: May 2008
Posts: 57
fireslayer26 is on a distinguished road
adding money management

I need to add a money management feature to one of my existing EA's. Such as:

Use MM - True/False
Margin % - 5, 10, 20, etc.
Max Lots - 1, 2, 3, etc.

Can someone help? Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1553 (permalink)  
Old 01-26-2009, 08:05 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 516
Beno is on a distinguished road
How do you code bar pattens for different TF's. I am ok with indicators but no bars.

if (Close [2]<Open[2] && Close[1]>Open[1] && Open[0]> Open[1])Long1 = true;
if (Close [2]>Open[2] && Close[1]<Open[1] && Open[0]< Open[1])Short1 = true;

any help would be great

Cheers

Beno
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1554 (permalink)  
Old 01-26-2009, 08:28 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 516
Beno is on a distinguished road
would i use something like this for the 30min

double high30 = iHigh(NULL,30,0);
double low30 = iLow(NULL,30,0);
double close30 = iClose(NULL,30,0);
double open30 = iOpen(NULL,30,0);
double P30 = (high30+low30+close30)/3;

Exept change the TF to 60 for the 1Hr or 240 for the 4Hr

Cheers

Beno
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1555 (permalink)  
Old 01-27-2009, 05:49 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 516
Beno is on a distinguished road
EA Attached

Attached is The EA I have been trying to make work

What I would like to do is have all the bar patterns fron each of the 3 TF's 30min 60min and 240min open granted this will add up to quite a few but. I can't seen to get it to work right.


It does trade but not the way I would like. so any help would be great.

Cheers

Beno
Attached Files
File Type: mq4 MTF Bar Patterns.mq4 (20.1 KB, 18 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1556 (permalink)  
Old 01-27-2009, 07:32 PM
Junior Member
 
Join Date: Sep 2008
Posts: 26
mike360 is on a distinguished road
Take Profit Question

What would be the code to modify an order ( adjust the take profit of it ) after X amount of minutes has passed since the order has opened ? Thanks in advance to anyone who responds to this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1557 (permalink)  
Old 01-28-2009, 04:39 PM
Junior Member
 
Join Date: Nov 2008
Posts: 1
swaraj is on a distinguished road
Mindhero

Hello everyone,

Can somebody help me creating an ea with the attached indicator. I just need to open position in direction of arrow.

Here is the indicator http://rosdi.name/forex/experts/indi...K_MindHero.mq4


Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1558 (permalink)  
Old 01-31-2009, 11:23 PM
Junior Member
 
Join Date: Apr 2008
Location: Currently living in Lagos State, Nigeria.
Posts: 14
elijahsmithklime is on a distinguished road
Unhappy Please Edit my 2 Ea

I have two EAs that uses Multiframe MACD and Simple Moving average can anyone edit it for me ? This is my preferred the Signal setup >>>

.................................................. .................................................. .
Indicator 1 >>>>>> SELL : Once macd on 1hour and 15mins chart confirms negative divergence and 5 close period simple moving average crosses 10 close period simple moving average down on 15mins chart then Sell.

BUY : Once macd on 1hour and 15mins chart confirms positive divergence and 5 close period simple moving average crosses 10 close period simple moving average up on 15mins chart then Buy.

Stop Loss: 50
Take Profit: 15
Trailing Stop: 0
Lot: 0.1
.................................................. .................................................. .

Indicator 2 >>>>>> SELL : Once macd on 4hours and 1hours chart confirms negative divergence and 5 close period simple moving average crosses 10 close period simple moving average down on 1 hour chart then Sell.

BUY:Once macd on 4hours and 1hours chart confirms positive divergence and 5 close period simple moving average crosses 10 close period simple moving average up on 1 hour chart then Buy.

Stop Loss: 100
Take Profit: 25
Trailing Stop: 0
Lot: 0.1


Thank You
Attached Files
File Type: mq4 ElijahEXP1_1.mq4 (13.8 KB, 17 views)
File Type: mq4 ElijahEXP2_1.mq4 (13.4 KB, 14 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1559 (permalink)  
Old 02-02-2009, 08:28 PM
Junior Member
 
Join Date: Feb 2009
Posts: 1
bigvern is on a distinguished road
Newbie 7-10 day trading signals

Hi all.

First post and hopefully someone here will be able to point me in the right direction!

I trade currencies via fixed odds platforms. My trades place that a certain level in the market will not be touched over a time period (eg. 7 days, 10 days etc).

I use various criteria for entering trades and have only now got around to thinking about automating them.

I've had a quick scan of the training lessons on here but without wanting to reinvent the wheel I wondered if anyone else had programmed anything along these lines? Basically the bits I am looking for help with are:

1) Email to send instant alert when criteria is met
2) The ability to backtest over a configurable amount of days to see if my level (configurable) would have been breached. The idea being that I could test different levels (for different returns) over the time periods and then adjust my strategy accordingly.

Hope I don't sound too dumb!

Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1560 (permalink)  
Old 02-03-2009, 11:15 AM
Junior Member
 
Join Date: Apr 2007
Posts: 1
zedog is on a distinguished road
TrailingStop

TrailingMoveOnProfit=true TrailingStop1 and TrailingStop2 just start moving when the pair is in profit

If TrailingStop2=0 then TrailingStop1 acts as a normal trailingstop.

If TrailingStop2 > 0 then TrailingStop1 works just till the pair be in profit, after that TrailingStop1 stops and TrailingStop2 start work as a normal trailingstop.

StopLosse is the points you want for initial stop.

ProfitTake is the points you want to take profit.


StopIn_ProfitValue/ StopIn_ProfitPoints
put the stop in profit (StopIn_ProfitPoints) when the pair reaches StopIn_ProfitValue
(ex: put stop with 10 points of profit when EURUSD reaches 1.2870)


Close_OnProfitPoints = close the positions when they have x points of profit

Close_OnLossesPoints = close the positions when they are losing x points

Close_Half_OnProfitPoints = close half of the positions when they have x points of profit

Close_AllBuys_AboveValue = close all buys when value is reached

Close_AllSells_BelowValue = close all sells when value is reached

Close_HalfBuys_AboveValue = close half buys when value is reached

Close_HalfSells_BelowValue = close half sells when value is reached

Close_OnMACrosse = close the positions when EMA5 crosses against on 5 minutes chart

BreakEven=true the EA put stop to break-even as soon as possible.
Attached Files
File Type: ex4 EA_TrailingStop.ex4 (14.9 KB, 11 views)

Last edited by zedog; 03-29-2009 at 11:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
#include, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, trading, volty channel stop


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 04:41 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.