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
  #101 (permalink)  
Old 05-07-2007, 02:10 AM
giraia_br's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 145
giraia_br is on a distinguished road
please! i need a trailing stop that works with less than 10 pips brokers

please! i need a trailing stop that works with brokers like interbank where target can't be less than 10 pips
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
  #102 (permalink)  
Old 05-08-2007, 10:46 PM
Junior Member
 
Join Date: May 2007
Location: UK
Posts: 7
Pipsta_UK is on a distinguished road
EA Not triggering Order

Hello,
I have a sligh problem with MT4, When i attach an EA to a chart and enable it, it doesnt trigger orders...

I downloaded an EA from this forum, (.mq4 file), copied to /Metatrader 4/Experts and attached it to a chart and enabled EA on MT4 so that the Smiley appears on the right hand corner... Ive been sat here 2 days waiting for orders to be triggered but nothing lol....

What am i doing wrong... Anyone...?

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
  #103 (permalink)  
Old 05-11-2007, 02:36 PM
giraia_br's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 145
giraia_br is on a distinguished road
tight trailing stops dont work with me

dont work on interbank...i have tried all configurations

there is any other which works?????????
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
  #104 (permalink)  
Old 05-11-2007, 04:27 PM
Junior Member
 
Join Date: Sep 2005
Posts: 22
trohoang is on a distinguished road
Post Copying Objectlist

Hi there,

Beside using a template, is there a way that I can transfer object texts from one chart onto another?

This is what I have in mind. I have notes i.e. texts on the 4 hours chart and I would use an indicator called "save text". This indicator will save all the text using ObjectGetShiftbyValue and ObjectGet(...., objprop_time). I would then open up a new 1hr chart and attach an indicator called "transfer text". This will populate the new 1hr chart with texts from the 4hrs chart in the approximate location of time and price of the 4hrs chart.

Maybe I am making this more complicate than it should be. Any pointers???

Trong
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
  #105 (permalink)  
Old 05-12-2007, 05:46 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Proper use of Hedge order

For the guys using Hedge opening EA's for when the price goes against you, have you found it to be helpful? Just because if the price goes back into your favor before SL is hit then the Hedge order makes you loose your profit on the original order. or are there guidelines I should follow when opening a Hedge order? Like, open Hedge order when pips against me 30% of Original trade TP and set Hedge TP +110% SL -110% of original order? What are intelligent opposite % values you could use to create a Hedge order so as to cover minimal loss?
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
  #106 (permalink)  
Old 05-16-2007, 01:04 AM
Member
 
Join Date: Jan 2006
Posts: 64
kidhudi is on a distinguished road
can someone change this macd

hey can one of you guys change this macd so it signals a change in color on the chart that is open? i would appreciate it
Attached Files
File Type: mq4 MACD HISTO.mq4 (3.3 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
  #107 (permalink)  
Old 05-17-2007, 07:31 PM
Junior Member
 
Join Date: Nov 2005
Posts: 2
krmo is on a distinguished road
Need help, I am trying to combine 2 indicators into 1?

First of all, thanks for any help received.

I am trying to combine a CCI histogram and ADX into one indicator.
Not as in overlaying, but the code in one file.
Similar to Woodies CCI, Except using the ADX instead of the LSMA.
I have started from scratch instead of trying to modify Woodies.

I have both of them displaying. The CCI is fine.
The ADX I am showing in a lineal fashion using DRAW_ARROW.
I have 2 problems:

A. I am getting no past history on the ADX. It just starts at the current bar, if I switch time frames it starts over. I would like it to show the previuos 200 bars.

B. I want the lineal ADX to align with the Level 0 of the CCI. It currently shows above or below depending on time frame.

Thanks again.
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
  #108 (permalink)  
Old 05-21-2007, 02:25 PM
Junior Member
 
Join Date: May 2007
Posts: 1
fxwarrior is on a distinguished road
Help !

I am currently using FXCM and for the past couple of weeks been trying out Metatrader.

I have a problem, a simple one.

In my FXCM platform, when I set up the MACD... I get Linear MACD, MACDA and Histogram MACD.

However, in the Metatrader, I only got a Histogram and just a line.

Anybody can help me out with this problem ?

Sorry about my english.
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
  #109 (permalink)  
Old 05-21-2007, 06:38 PM
Junior Member
 
Join Date: May 2007
Posts: 1
Nadaa is on a distinguished road
Something is wrong?

I'm trying to create an alert everytime the bar makes a new high/low compared to the previous bar. But in someway, it seems to miss some highs/lows. I can't find anything wrong with my code, but at the same time I can't figure out why?

Anyone?

Code:
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
  
  bool AlertOnce(int ref)
   {
      static int NewHigh = 0;
      static int FailedHigh = 0;
      
      switch(ref)
      {
         case 1:
            if(NewHigh == 0 || NewHigh < Bars)
               {
                  NewHigh = Bars;
                  return(true);
               }
         break;
         case 2:
            if(FailedHigh == 0 || FailedHigh < Bars)
               {
                  FailedHigh = Bars;
                  return(true);
               }
         break;
      }
  }
  
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----

   if(High[0]>High[1] && AlertOnce(1)==true) Alert("1 working");
   if(Low[0]<Low[1] && AlertOnce(2)==true) Alert("2 working");


   
//----
   return(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
  #110 (permalink)  
Old 05-22-2007, 11:44 AM
Junior Member
 
Join Date: Dec 2006
Posts: 13
Flirrrt is on a distinguished road
Check if Order is closed (and some .csv-stuff)

I'm trying to write a snippet that checks if a new trade just closed, and if that's true it will export some values to an csv.

My code looks like this:
Code:
datetime current=0;
   
   total = OrdersTotal();
   if(total > 0) current = CurTime();
   if(current != CurTime()) {
            int f = FileOpen(Symbol()+ATRthreshold+".csv", FILE_CSV | FILE_WRITE | FILE_READ,',');
  
            string sDate = TimeToStr(iTime(NULL,0,0),TIME_DATE);
            sDate = StringSetChar(sDate,4,'/');
            sDate = StringSetChar(sDate,7,'/');
            FileSeek(f, 0, SEEK_END);
            FileWrite(f,sDate, TimeToStr(iTime(NULL,0,0),TIME_MINUTES), iClose(NULL,0,0), iVolume(NULL,0,0));
            
            FileClose(f);
     }
I tried some different sulotions, both found here on the forum and at Meataqoutes homepage, but i can't get anyone to work properly. My own idea is the set a variabel with the date if a position is open (orderstotal > 0 ) and compare that to the current time ( if a position isn't open, the variabel will have an old value an thereby is not equal to CurrentTime() ).

Instead, i get the ea to write to the file every volume-change when an position is open.

What have i missed out?


And, another question - is it possible to change "," in a csv export to ";"?
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 10:18 AM.



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