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.
I have been thinking about how to create a compounding formular based on the size of the previous bar (pivot bar) and have come up with this.
p-open/p*100 the differacne between the pivot and the open.
So the theory is the creater the distance between the pivot and the open of the current bar the high he chance of the next bar heading in the same direction so the greater you should risk.
It's just a crazy idea please let me know if it has any legs.
There is a problem with this EA when running multiple pairs you will end up with "trade context busy" due to the fact this works on the open of a new bar
I have been trying to implement the following code to try and rid the problem
but I keep getting an error because of the ... could someone please point me in the right direction as i have searched in the usual places but have not found anything.
#include <TradeContext.mq4>
int start()
{
// check whether the market should be entered now
...
// calculate the StopLoss and TakeProfit levels, and the lot size
...
// wait until the trade context is free and then occupy it (if an error occurs,
// leave it)
if(TradeIsBusy() < 0)
return(-1);
// refresh the market info
RefreshRates();
// recalculate the levels of StopLoss and TakeProfit
...
// open a position
if(OrderSend(...) < 0)
{
Alert("Error opening position # ", GetLastError());
}
Can you help me duplicate your backtesting results? What pair and TF are you using? How about the SL and TP? When I back test this using FXDD, I cannot find a winning combination. Is it the broker?
Can you help me duplicate your backtesting results? What pair and TF are you using? How about the SL and TP? When I back test this using FXDD, I cannot find a winning combination. Is it the broker?
Thanks,
Dave
Hi,
AlpariUS-Demo (Build 218)
Symbol EURUSD (Euro vs US Dollar)
Period 4 Hours (H4) 2001.04.25 16:00 - 2008.09.26 20:00
Model Control points (a very crude method, the results must not be considered)
Can you help me duplicate your backtesting results? What pair and TF are you using? How about the SL and TP? When I back test this using FXDD, I cannot find a winning combination. Is it the broker?
Thanks,
Dave
i just use what is in the pea2 ea sl=300 tp=100 ts=12 and thats about it I use daily tf.
This is what I have done so far am I on the right track ??? I still have the '.' which refers to the dot in if(OrderSend(...) < 0) do I have to fill in the Symbol(), OP_SELL, Lots, Bid, Slippage, StopLossLevel, TakeProfitLevel, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); or what sorry if this looks confusing but I'm rubbish at this stuff
//Sell
if (Order == SIGNAL_SELL && ((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 = Bid + StopLoss * Point; else StopLossLevel = 0.0;
if (UseTakeProfit) TakeProfitLevel = Bid - TakeProfit * Point; else TakeProfitLevel = 0.0;
if(TradeIsBusy() < 0)
return(-1);
// refresh the market info
RefreshRates();
// recalculate the levels of StopLoss and TakeProfit
Ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, StopLossLevel, TakeProfitLevel, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink);
if(Ticket > 0) { // open a position
if(OrderSend(...) < 0)
{
Alert("Error opening position # ", GetLastError());
}
// set the trade context free
TradeIsNotBusy();
if (OrderSelect(Ticket, SELECT_BY_TICKET, MODE_TRADES)) {
Print("SELL order opened : ", OrderOpenPrice());
if (SignalMail) SendMail("[Signal Alert]", "[" + Symbol() + "] " + DoubleToStr(Bid, Digits) + " Open Sell");
} else {
Print("Error opening SELL order : ", GetLastError());
}
}
if (EachTickMode) TickCheck = True;
if (!EachTickMode) BarCount = Bars;
return(0);
}
}