Forex



Go Back   Forex Trading > Programming > Metatrader Programming
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
  #1461 (permalink)  
Old 11-20-2008, 04:30 AM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,450
MiniMe is an unknown quantity at this point
5 digit vs 4 digit broker

no worry I solved the problem
__________________


Last edited by MiniMe; 11-20-2008 at 04:56 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
  #1462 (permalink)  
Old 11-20-2008, 05:06 AM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
Roger09 is on a distinguished road
To tk748
Just push F7 in proper chart and unmark "Allow live trading" on the Common Tab.
You will see sad face at right top of chart.
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
  #1463 (permalink)  
Old 11-20-2008, 02:49 PM
Junior Member
 
Join Date: Nov 2008
Posts: 4
pap0007 is on a distinguished road
reply

Roger- sorry, im looking to get both the bid and the ask, to trigger my EA when to act.

thanks for your help.
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
  #1464 (permalink)  
Old 11-21-2008, 03:28 AM
Junior Member
 
Join Date: Oct 2008
Posts: 24
tk748 is on a distinguished road
Hi Roger09,

Thank you. Once again your advice is spot on.

Good trading (and coding) to you, Tom.
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
  #1465 (permalink)  
Old 11-21-2008, 04:57 PM
necktiekid's Avatar
Junior Member
 
Join Date: Nov 2008
Posts: 2
necktiekid is on a distinguished road
Converting from TradeSense

I am using Trade Navigator by GenisisFT which uses TradeSense language. Is there a way to easily convert to MQL4?
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
  #1466 (permalink)  
Old 11-23-2008, 06:00 PM
Member
 
Join Date: Oct 2006
Posts: 80
Big Be is on a distinguished road
Last Trade Problem

I want to avoid taking a trade if a trade just closed UNprofitably in the direction I am considering.

How do I get my EA to check the current and the previous bar to see if an unprofitable trade closed, and whether it was long or short?

(If it closed uprofitably in the opposite direction, that would be OK.)

Show code if you can.
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
  #1467 (permalink)  
Old 11-23-2008, 08:46 PM
Senior Member
 
Join Date: Nov 2006
Posts: 307
luxinterior is on a distinguished road
Quote:
Originally Posted by Big Be View Post
I want to avoid taking a trade if a trade just closed UNprofitably in the direction I am considering.

How do I get my EA to check the current and the previous bar to see if an unprofitable trade closed, and whether it was long or short?

(If it closed uprofitably in the opposite direction, that would be OK.)

Show code if you can.
You would need to search the history. Also check the close time of the order to see if it falls within your exclusion range. Something like the following...

Code:
void CheckOrderHistory(){

     // orders history is most recent at the bottom
     // zero based so OrdersHistoryTotal()-1
     for(int i=OrdersHistoryTotal()-1; i > -1;i--){
          if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false) break;
          if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC_NUMBER && (OrderType() == OP_SELL || OrderType() == OP_BUY)){
          switch(OrderType()){
               case OP_BUY:
                    // do something here...
                    return(0);    
                    break;
               case OP_SELL:
                    // do something here
                    return(0);     
                    break;   
               default:
                    break;
          }
        }
     } 

}
__________________
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
  #1468 (permalink)  
Old 11-24-2008, 08:23 PM
Senior Member
 
Join Date: Oct 2007
Posts: 135
richest is on a distinguished road
request script that closes the last two orders

Hi, I was wondering if you guys could help me on creating a script that enables to close the last two opposite type orders depending on the current orders.

e.g if the current OP is sell, therefore if the script executed then the script will close the last two buy positions made historically according to the time they are opened.

Appreciate all the help I can get, 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
  #1469 (permalink)  
Old 11-24-2008, 11:57 PM
Junior Member
 
Join Date: Jul 2008
Posts: 5
paaluu is on a distinguished road
Any News to that ?

This drawdown value is a key number!

Do you had any success for a script / EA that is calculating and storing this value?

@all
The question is not, if the trade was profitable or not.
The question is the maximum negative amount against us accruing during the trade. That is the drawdown.

I am looking for such an EA / script.
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
  #1470 (permalink)  
Old 11-30-2008, 04:01 PM
Member
 
Join Date: Aug 2008
Posts: 36
fercan is on a distinguished road
what's the difference? between

val=High[iHighest(NULL,PERIOD_H1,MODE_HIGH,20,4)];
and
val=iHighest(NULL,PERIOD_H1,MODE_HIGH,20,4);

will the value be differents every new bar?
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

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:58 AM.



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