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
  #751 (permalink)  
Old 07-15-2009, 02:00 AM
Junior Member
 
Join Date: Jun 2009
Posts: 2
vendetta is on a distinguished road
Yeah exactly,

and you can count the posts on one hand.

My point is that there are a ton of experienced programmers that use these boards and they don't seem to want to help anyone.

This is why I was asking if you could point me to a site or person that WAS willing to help.

Instead you buried my post where it will NEVER be seen.

Perfect.
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
  #752 (permalink)  
Old 07-15-2009, 12:32 PM
Member
 
Join Date: Jan 2009
Posts: 85
Boyens is on a distinguished road
Hi there guys. I need some urgent help.

I have an indicator that draws lines in the price bar, I just deserve to show it in a separate window and in histogram.
What should I do?

Thanx in advance.
__________________
"The greater our knowledge increases the more our ignorance unfolds."
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
  #753 (permalink)  
Old 07-15-2009, 12:56 PM
Senior Member
 
Join Date: Apr 2008
Location: Rawalpindi
Posts: 106
arshadFX is on a distinguished road
Draw in Seprate Window

Quote:
Originally Posted by Boyens View Post
Hi there guys. I need some urgent help.

I have an indicator that draws lines in the price bar, I just deserve to show it in a separate window and in histogram.
What should I do?

Thanx in advance.
Drawing in MetaTrader see this article
MQL4 Language for Newbies. Custom Indicators (Part 1) - MQL4 Articles
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
  #754 (permalink)  
Old 07-15-2009, 01:19 PM
Member
 
Join Date: Jan 2009
Posts: 85
Boyens is on a distinguished road
Quote:
Originally Posted by arshadFX View Post
Thank you a lot!!!

I made the changes, is compilling now. How long it takes most of time?
__________________
"The greater our knowledge increases the more our ignorance unfolds."
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
  #755 (permalink)  
Old 07-15-2009, 09:59 PM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Compiling usually takes a matter of seconds. If it's taking longer than that I'd say youre computer has hung.

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
  #756 (permalink)  
Old 07-24-2009, 04:39 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
how can i get price closed bar only at specific time?

Dear Sir,


do you know some code for calling price close at specific time?


exmp;


extern string Asia_Open = "02:00";

extern string Europe_Open = "08:00";
extern string LONDON_Open = "10:00";
extern string US_Open = "15:00";


how can i get price closed bar only at "02:00" or else?

your help is needed..


thank you..


MANSTIR
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
  #757 (permalink)  
Old 07-24-2009, 06:50 AM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 159
Roger09 is on a distinguished road
Quote:
Originally Posted by MANSTIR View Post
Dear Sir,
do you know some code for calling price close at specific time?
MANSTIR
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]);
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
  #758 (permalink)  
Old 07-24-2009, 06:52 AM
Junior Member
 
Join Date: Dec 2008
Posts: 4
Wetback is on a distinguished road
EA fix........

I need an EA adjusted and I do not know how to do it.
It is a simple fix..........I have the programming just do not knonw how to insert it. I can email it all to 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
  #759 (permalink)  
Old 07-24-2009, 07:54 AM
Junior Member
 
Join Date: Jun 2009
Posts: 5
smokinbs is on a distinguished road
Running Mutiple EA's?

I have written several EA's now and when back testing I learned they didn't work. By didn't work I mean the back test program in the FXDD program and/or meta editor gave me results that were of negative earnings. I'm sure many traders/programmers have had similar results. I was actually about to give up on the strategy I was trying to program. I opened the chart and enlarged it so that I could see with my own two eyes just exactly where I went wrong. While looking over the chart and actually seeing with my own two eyes just exactly where the trade openings were (both buy and sell) and also the closings, I noticed they were wrong. I went back to my original chart where I had placed markers of where I wanted to enter the market and also exit it. I checked my conditions on all my enter/exit points for both buying and selling. I knew I was correct so I tried a little reverse phycology on the back testing itself. My EA has 5 conditions to open a trade (buy or sell) and 3 conditions to close one. Hold on to your seats here you just might have a great EA yourself and not realize it. I actually reversed all my signs (greater than to less than <>>< and vice versa. I know how stupid this sounds and I was laughing (at myself) while I was going through my EA and doing this. I ran another test with the new (wrong) settings installed. The test was a total SUCCESS. Thats right it actually worked and I now had a profit. Once again I opened the chart of the back test results and noticed with the reverse signs the test now opened and closed my trades exactly where I wanted them and where they should be to generate profitable trades. I have since corrected my greater/less than signs for my conditions and I am now running forward testing to see how well it will do before putting real money to it. So far my EA works pretty good on the USDCHF pair. I would like to put it to the test of other currency pairs in forward testing but I cannot figure out a way around the problem of: total=OrdersTotal();
if(total<1)
With this in each of the EA attached to other currency pairs, only one trade will be opened. When I increase the total<4 what I get is four open trades for one currency pair. I have tried using
OrderSelect(10000, SELECT_BY_POS, MODE_TRADES)
if(OrderSymbol()==Symbol())
return(0);
else // from here it would go to the initial buying conditions.
I have also tried if(ticket<1) thinking it would only read tickets for the current chart the EA is attached. None of the efforts I have tried have worked, so here is my questions, How can I trade mutiple currency pairs at the same time but only have one ticket open per currency pair.
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
  #760 (permalink)  
Old 07-25-2009, 03:49 AM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Use orderstotal to loop through all the open orders but check magic number and symbol to make sure you're only counting orders for the right EA on the right currency.

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
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 09:41 PM.



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