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
  #301 (permalink)  
Old 10-19-2009, 12:37 AM
dr.house7's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Italy
Posts: 186
dr.house7 is on a distinguished road
Cool I need some code i'll pay you

hy folks !

how to code this condition :

enter long or short only first time and stop waiting an opposite signal

(so, for example, if i have many following long signal, ea enter only at first time)

i'll pay everyone could help me on this

this is my simple code for buy condition (i had attach the complete ea):

Code:
 //Buy
   if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
      if(!IsTrade) {
         //Check free margin
         if (AccountFreeMargin() < (1000 * Lots)) {
            Print("We have no money. Free Margin = ", AccountFreeMargin());
            return(0);
         }

         if (UseStopLoss) StopLossLevel = Ask - StopLoss * Point; else StopLossLevel = 0.0;
         if (UseTakeProfit) TakeProfitLevel = Ask + TakeProfit * Point; else TakeProfitLevel = 0.0;

         Ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
         if(Ticket > 0) {
            if (OrderSelect(Ticket, SELECT_BY_TICKET, MODE_TRADES)) {
				Print("BUY order opened : ", OrderOpenPrice());
                if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Ask, Digits) + " Open Buy");
			} else {
				Print("Error opening BUY order : ", GetLastError());
			}
         }
         if (EachTickMode) TickCheck = True;
         if (!EachTickMode) BarCount = Bars;
         return(0);
      }
   }
Attached Files
File Type: mq4 my ea 1.mq4 (9.6 KB, 4 views)

Last edited by dr.house7; 10-19-2009 at 11:14 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
  #302 (permalink)  
Old 10-19-2009, 08:25 AM
Junior Member
 
Join Date: Mar 2009
Posts: 26
kossh is on a distinguished road
Quote:
Originally Posted by awards View Post
Could someone here instead of the RSI indicator insert the TSI?

Thank you
What is TSI?
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
  #303 (permalink)  
Old 10-19-2009, 11:25 AM
dr.house7's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Italy
Posts: 186
dr.house7 is on a distinguished road
Question

i'll pay everyone could help me on this:

http://www.forex-tsd.com/metatrader-...ode-money.html

Regards
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
  #304 (permalink)  
Old 10-19-2009, 12:12 PM
Avalanche2k's Avatar
Junior Member
 
Join Date: Oct 2009
Location: Russia, Kazan.
Posts: 14
Avalanche2k is on a distinguished road
Check this one.
Attached Files
File Type: mq4 my ea 1_1.mq4 (9.8 KB, 15 views)
__________________
Trader and MQL4 programmer.
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
  #305 (permalink)  
Old 10-19-2009, 12:32 PM
dr.house7's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Italy
Posts: 186
dr.house7 is on a distinguished road
Quote:
Originally Posted by Avalanche2k View Post
Check this one.
exactly what i'm looking for !
Thanks, many 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
  #306 (permalink)  
Old 10-19-2009, 12:39 PM
Junior Member
 
Join Date: Mar 2009
Posts: 26
kossh is on a distinguished road
Quote:
Originally Posted by dr.house7 View Post
i'll pay everyone could help me on this:

http://www.forex-tsd.com/metatrader-...ode-money.html

Regards
You can put a piece of code which controls the amount of open orders so if it =1 then it will be ok for example.
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
  #307 (permalink)  
Old 10-23-2009, 07:47 PM
Junior Member
 
Join Date: Feb 2007
Posts: 2
awards is on a distinguished road
Tsi

Quote:
Originally Posted by kossh View Post
What is TSI?

Attach indikator TSI (True Strength Index)
Attached Files
File Type: mq4 TSI.mq4 (3.0 KB, 10 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
  #308 (permalink)  
Old 10-26-2009, 08:59 PM
Junior Member
 
Join Date: Feb 2009
Location: Norfolk, UK
Posts: 9
blott203 is on a distinguished road
Gap trading EA

Hi,

I'm looking for an MT4 EA that will let me strategy test various SL, TP, TS levels.

I don't want to trade using the EA, only for strategy testing, so you could put somesort of live trade inhibit filter(?) into it.

Basic rules are:-
Detect gap between Friday close and Sunday/Monday open (when broker clock stops to when it starts again?).

To trade in opposite direction to gap direction

Any currency pair

M30 timeframe

Gap size variable, minimum 1 pip

Variable SL, TP, TS (in pips)

Money management true/False

Variable lot size



There must be someone out there who likes a challenge!

Cheers,


Mike

Ps I placed 8 Gap trades as soon as today's trading started Sunday night - 7 closed @ + 40 pips each, 8th still running.

Last edited by blott203; 10-26-2009 at 09:08 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
  #309 (permalink)  
Old Yesterday, 05:56 AM
Junior Member
 
Join Date: Oct 2008
Location: Indonesia
Posts: 14
duoglide is on a distinguished road
new idea of equillibrium

hi all,
i created a totally new different system named "the equillibrium"
has been tested in every broker, some demo and some real.
The result are quite good for me. Now i'd like to convert it to EA.

Can some one help me? thx
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
effilang, eurgbp eurchf scalper, forex


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
Reversal indicator, need coder hidethereal Indicators - Metatrader 4 1 03-30-2007 03:12 PM
coder help needed teldon Setup Questions 1 12-19-2006 12:21 PM


All times are GMT. The time now is 10:14 PM.



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