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
  #761 (permalink)  
Old 07-25-2009, 08:46 AM
Senior Member
 
Join Date: Apr 2008
Location: Rawalpindi
Posts: 106
arshadFX is on a distinguished road
Read this

Quote:
Originally Posted by smokinbs View Post
I have written several EA's now and when back testing I learned they didn't work.................... open per currency pair.
Read this it may help

Creation of a Normal Program - MQL4 Tutorial
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
  #762 (permalink)  
Old 07-25-2009, 02:02 PM
Junior Member
 
Join Date: Jun 2008
Posts: 14
forexhog is on a distinguished road
Quote:
Originally Posted by arshadFX View Post
I am trying to code a module into an EA that would automatically take a screenshot at each trade. Anybody knows how to do that and can guide me? I would appreciate it very much.
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
  #763 (permalink)  
Old 07-25-2009, 09:32 PM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Look in the help file at a function called WindowScreenShot()

Good luck

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read 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
  #764 (permalink)  
Old 07-29-2009, 11:12 AM
Junior Member
 
Join Date: Jul 2009
Posts: 3
littleluca is on a distinguished road
Using a Ea to draw a indicator

Hi all,

Have a EA which uses instances of indicators through iCustom().

I am stuck with how to use the EA to draw the indicators on the screen instead of having to do it manually.. I want to see the indicators on screen while the EA is using them...

I have searched everywhere and can't find the way to do it! :-(

Help appreciated...

TIA
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
  #765 (permalink)  
Old 07-29-2009, 03:49 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Custom MT4 language

Hello, am I right to say that the MT4 language is a custom form of C++ code but many of the language commands are fairly similar?

If so, I heard that MT5 is going to be even more similar to C++.

I have an EA that doesn't use really complex coding so is there a code checker program I can use to see if any of the commands I used in the EA are not compatible with the native C++ language?

because I'm going to assume that if the EA is not to complex and conforms to basic C++ rules then I would also assume that the EA should work with MT5 as well when it comes out.

Thank you
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
  #766 (permalink)  
Old 07-29-2009, 07:41 PM
Junior Member
 
Join Date: Jul 2009
Posts: 3
littleluca is on a distinguished road
Matrix,

Easiest way would be to run it through a C++ compiler and see what comes out... I will come out with loads of errors but look at the data types more than anything because that seems to be the only real obvious difference!

LL
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
  #767 (permalink)  
Old 07-29-2009, 08:21 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Ok, ran it through a compiler and loads of errors
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
  #768 (permalink)  
Old 07-29-2009, 08:57 PM
Junior Member
 
Join Date: Jul 2009
Posts: 3
littleluca is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
Ok, ran it through a compiler and loads of errors
But look at what is says about your types...

Trust me it is very similar.. I code as if C++ language and only look up for correct syntax if there is errors..
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
  #769 (permalink)  
Old 07-31-2009, 12:42 PM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
Quote:
Originally Posted by Roger09 View Post
datetime some_time=StrToTime("02:00");
int shift=iBarShift("EUROUSD",PERIOD_H1,some_time);
Print("close price of the bar with open time ",TimeToStr(some_time)," is ",iClose[shift]);
i'm sorry sir,

the code iclose price is moving, i'm want some fix closed price on specific time only..

after compile...

the iClose[shift]; - '[' - left parenthesis expected & '[' - unexpected token

if i put the code like this - d13 = iClose(NULL,PERIOD_H1,shift);

its no errors.. but the closed price is moving

pleaase help me... i'm out of my mind


regards,

MANSTIR

see picture below
Attached Images
File Type: jpg data.jpg (91.2 KB, 53 views)

Last edited by MANSTIR; 07-31-2009 at 01:07 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
  #770 (permalink)  
Old 07-31-2009, 03:53 PM
Senior Member
 
Join Date: Aug 2008
Location: London
Posts: 138
Limstylz is on a distinguished road
Trendline/triangle indicator

Hi All,

Thought I would have another stab at programming a triangle indicator based on following:

Last month high to last week high
Last week high to yesterday high
Yesterday high to last H4 high

Last month low to last week low
Last week low to yesterday low
Yesterday Low to last H4 low.

However, on some brokers it works as expected, on others it gives the correct prices, but not the correct time.

Can someone take a look at it and let me know what I've done wrong. I have probably missed out something, I just can't seem to see the wood from the trees.
Attached Files
File Type: mq4 trendSR.mq4 (6.4 KB, 16 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
automated close order, close, eas, forex, learn mql4, learn mql4 video, learning mql4, mini std lotsize risk, mql4 ima, mql4 learning, mql4 video, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4


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
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 07:04 PM
Learning to code for autotrading GoatT MetaTrader 8 01-10-2007 09:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 06:29 PM


All times are GMT. The time now is 11:25 PM.



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