Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent 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
  #2031 (permalink)  
Old 09-03-2009, 07:27 PM
Beno's Avatar
Senior Member
 
Join Date: Aug 2006
Location: London
Posts: 516
Beno is on a distinguished road
Convert From VT To MT4

hello

I am trying to convert from VT to MT4
Have I done this correctly?

MT4

if (h>h1 && l>=l1 && h-l>h1-l1 && c==h-l*0.5+l && c>c+1 && h>=h+1 && v<v1 && v<v2 && NoDemand2)Order = NoDemand4;
if (l<l1 && h<=h1 && h-l>h1-l1 && c==h-l*0.5+l && c<c+1 && l>=l+1 && v<v1 && v<v2 && NoSupply2)Order = NoSupply4;

VT

NoDemand4:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>ref((H-L),-1) and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and NoDemand2=0,1,0);
NoSupply4:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>ref((H-L),-1) and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and NoSupply2=0,1,0);


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
  #2032 (permalink)  
Old 09-04-2009, 10:56 AM
Junior Member
 
Join Date: Nov 2008
Posts: 21
wayhuck is on a distinguished road
Lightbulb Free EA reward for programming

Hello,
I need someone who can read "messed up" mq4 code.
I'm trying to merge 2 EA into one ultimate EA.

If interested, email nycv2@yahoo.com

I will share the EA once it's done. (I'm gonna sell it for $2000. Free only to the person who can help me write the code.)

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
  #2033 (permalink)  
Old 09-09-2009, 02:09 PM
Junior Member
 
Join Date: Sep 2009
Posts: 1
easyfxlife is on a distinguished road
in search of a good accurate EA

please can somebody help me with a good and accurate EA , i lost a lot of money trading manually.
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
  #2034 (permalink)  
Old 09-10-2009, 07:20 AM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Quote:
Originally Posted by wayhuck View Post
Hello,
I need someone who can read "messed up" mq4 code.
I'm trying to merge 2 EA into one ultimate EA.

If interested, email nycv2@yahoo.com

I will share the EA once it's done. (I'm gonna sell it for $2000. Free only to the person who can help me write the code.)

Thanks
So you're great plan is to take two free EA's that you probably found here and 'merge' them together and sell it for 2K a pop? You've got some nerve buddy! Maybe if you're really lucky one of the two guys that actually gave up their time, effort and knowledge for free will offer to do it for you.

Oh but wait! If the code is 'messed up' then the EA's are mostly likely commercial EA's that have been decompiled. Is that it? Moron!!!

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This

Last edited by luxinterior; 09-10-2009 at 07:23 AM.
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
  #2035 (permalink)  
Old 09-10-2009, 07:19 PM
Junior Member
 
Join Date: Jun 2009
Posts: 1
zygmunt11 is on a distinguished road
MT-4, please help me.

MT-4- Please help me, I want make a file intersection DMI + and DMI - .I want have the signal in moment of move DMI+ and DMI- without ADX. I do care about it. I write this below but please create for this the file to move it to MF4.
//+------------------------------------------------------------------+
//| ADXcross EXPERT |
//| Perky_z |
//| |
//+------------------------------------------------------------------+
#property copyright "Perky_z@yahoo.com "
#property link "http://groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"
//+--------------------------------------------------------------------------------------------------+
//| Alerts in hand with ADXcrosses Indicator they dont need to be run together |
//+--------------------------------------------------------------------------------------------------+
// Alerts on cross of + and - DI lines
// I use it on 15 min charts
// though looks good on any time frame
// use other indicators to confirm this trigger tho

//---- input parameters

double b4plusdi,b4minusdi,nowplusdi,nowminusdi;


//----


//---- indicators

In this part of code change period how You want (14 change for 4 in every line) and this should to work in this scal which You situate the diagram.
b4plusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_PLUSDI,1) ;
nowplusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_PLUSDI,0 );

b4minusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_MINUSDI, 1);
nowminusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_MINUSDI ,0);
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
  #2036 (permalink)  
Old 09-11-2009, 01:34 AM
SPACECHIMP's Avatar
Member
 
Join Date: Feb 2006
Location: West Michigan, USA.
Posts: 86
SPACECHIMP is on a distinguished road
This is closing partial lots BUT...not exactly doing what I expected.
I can't figure out what it IS doing but seems to close 1 lot when price is NOT where i want it to.
Maybe you can see the issue here.
should close 1 lot when there is a BUY and the price goes .00071(just a random number i'm testing on a 1 minute chart)
or close 1 lot when there is a SELL and price goes .00071 down
using a 5 digit broker by the way. There is only 1 trade ever open and only by this EA, so no scrolling through orders

THANKS for HELP!


if (IsConnected() && IsTradeAllowed()) while (IsTradeContextBusy()) Sleep(75);
if (OrdersTotal()>0) {OrderSelect(0, SELECT_BY_POS,MODE_TRADES);
RefreshRates();
if (Bid >= (OrderOpenPrice()+ (.00071)) && OrderLots() == 2 && (OrderType() == OP_BUY)) {
OrderClose(OrderTicket(),1,Ask,10,R ed); }
if (Ask <= (OrderOpenPrice()- (.00071)) && OrderLots() == 2 && (OrderType() == OP_SELL)) {
OrderClose(OrderTicket(),1,Bid,10,B lue); }}
__________________
www.LiveTeamTrading.com
The FIRST LIVE Team trading Network Community for FOREX TRADERS! Ask me about Getting an Invite!
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
  #2037 (permalink)  
Old 09-11-2009, 05:02 AM
Junior Member
 
Join Date: Mar 2009
Posts: 9
lumanauw is on a distinguished road
Is it possible to make a code to close a transaction at breakeven (profit=0), when a transaction has (once) have positive profit, but still below the broker's stoplevel (trailing is not touched yet)?

For a 10Point StopLevel broker, trailing system can only work if the profit has reached at least 10 Point.

Many times I see a transaction has gone positive only to 5 or 8 pips, then goes back to hit it's SL.

So I'm thinking about this, but don't know how to do it.

How to make a breakeven code for an EA, something like Trailing Stop, but works below minimum broker's StopLevel?
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
  #2038 (permalink)  
Old 09-11-2009, 05:02 AM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 159
Roger09 is on a distinguished road
To SPACECHIMP
When we open order, we use Ask for Buy and Bid for Sell. When close - opposite.
__________________
www.rogersignals.com - Share your strategy with all

Last edited by Roger09; 09-11-2009 at 05:05 AM.
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
  #2039 (permalink)  
Old 09-12-2009, 05:18 AM
Junior Member
 
Join Date: Sep 2009
Posts: 2
lovely is on a distinguished road
Ya I think it is very useful

FulltimeTrader:June2009
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
  #2040 (permalink)  
Old 09-12-2009, 05:45 AM
Junior Member
 
Join Date: Sep 2009
Posts: 1
doc_love06 is on a distinguished road
I need help to add email alert in this Top Trend indicator

I need help to add email alert in this Top Trend indicator.

here is the line and attached file.

if (trend>0)
{
if (Signal>0 && UpTrendBuffer[shift+1]==-1.0)
{
UpTrendSignal[shift]=bsmin[shift];
UpTrendBuffer[shift]=bsmin[shift];
if(Line>0) UpTrendLine[shift]=bsmin[shift];
if (SoundON==true && shift==0 && !TurnedUp)
{
Alert("BBands going Up on ",Symbol(),"-",Period());
TurnedUp = true;
TurnedDown = false;
}
}
else
{
UpTrendBuffer[shift]=bsmin[shift];
if(Line>0) UpTrendLine[shift]=bsmin[shift];
UpTrendSignal[shift]=-1;
}
if (Signal==2) UpTrendBuffer[shift]=0;
DownTrendSignal[shift]=-1;
DownTrendBuffer[shift]=-1.0;
DownTrendLine[shift]=EMPTY_VALUE;
}
if (trend<0)
{
if (Signal>0 && DownTrendBuffer[shift+1]==-1.0)
{
DownTrendSignal[shift]=bsmax[shift];
DownTrendBuffer[shift]=bsmax[shift];
if(Line>0) DownTrendLine[shift]=bsmax[shift];
if (SoundON==true && shift==0 && !TurnedDown)
{
Alert("BBands going Down on ",Symbol(),"-",Period());
TurnedDown = true;
TurnedUp = false;
}
}
else
{
DownTrendBuffer[shift]=bsmax[shift];
if(Line>0)DownTrendLine[shift]=bsmax[shift];
DownTrendSignal[shift]=-1;
}
if (Signal==2) DownTrendBuffer[shift]=0;
UpTrendSignal[shift]=-1;
UpTrendBuffer[shift]=-1.0;
UpTrendLine[shift]=EMPTY_VALUE;
}

}
return(0);
}
Attached Files
File Type: mq4 TOPTREND.mq4 (5.7 KB, 8 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
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 10:26 PM.



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