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
10-19-2009, 12:37 AM
Senior Member
Join Date: Apr 2009
Location: Italy
Posts: 186
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);
}
}
Last edited by dr.house7; 10-19-2009 at 11:14 AM .
10-19-2009, 08:25 AM
Junior Member
Join Date: Mar 2009
Posts: 26
Quote:
Originally Posted by
awards
Could someone here instead of the RSI indicator insert the TSI?
Thank you
What is TSI?
10-19-2009, 11:25 AM
Senior Member
Join Date: Apr 2009
Location: Italy
Posts: 186
10-19-2009, 12:12 PM
Junior Member
Join Date: Oct 2009
Location: Russia, Kazan.
Posts: 14
Check this one.
__________________
Trader and MQL4 programmer.
10-19-2009, 12:32 PM
Senior Member
Join Date: Apr 2009
Location: Italy
Posts: 186
Quote:
Originally Posted by
Avalanche2k
Check this one.
exactly what i'm looking for !
Thanks, many thanks
10-19-2009, 12:39 PM
Junior Member
Join Date: Mar 2009
Posts: 26
Quote:
Originally Posted by
dr.house7
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.
10-23-2009, 07:47 PM
Junior Member
Join Date: Feb 2007
Posts: 2
Tsi
Quote:
Originally Posted by
kossh
What is TSI?
Attach indikator TSI (True Strength Index)
10-26-2009, 08:59 PM
Junior Member
Join Date: Feb 2009
Location: Norfolk, UK
Posts: 9
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 .
Yesterday, 05:56 AM
Junior Member
Join Date: Oct 2008
Location: Indonesia
Posts: 14
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
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT. The time now is 10:14 PM .