![](https://indo-investasi.com/uploads/set_resources_16/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
wonder833
-
Posts
67 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by wonder833
-
-
I have posted this earlier, but see that benny is asking about the MA and PA. I post again, hope it helps.
1) up Green Arrow, -10 (red) => up green arrow as the PA is above both MA, which the MA are in correct order (fast MA above slow MA), -10 red as it touches lower band which indicates a possible buy.
2) down green arrow, 10 (red) => down green arrow as the PA is below both MA, which the two MA is in correct down trend, 10 red as it touches upper band which indicates a possible sell
3) up Red Arrow, 10 (red) => up red arrow as the PA is above both MA, MA is in counter trend (fast MA below slow MA), 10 (red) as it touches upper band which indicates a possible sell.
4) down Red Arrow, -10 (red) => down red arrow as the PA is below both MA, MA is in counter trend (fast MA above slow MA), -10 as it touches lower band indicates a possible buy.
-
nice result Benny. I agree with you. A trader has to learn to control his emotion at all time. Ur account looks good at the moment. u are up by 54% in 4 trades. Good luck to you. I have been following this thread silently too. Regards.
-
kenny, mind adding alert function when the trade fits in the rules?
-
have seen something like this before... very similar.. martingale based too.. beware..
-
can't wait for the new updates that kenny has mentioned. btw, i did some visual checking sometimes, and found tat indeed there is not much alerts at a time that fits in the four conditions that i have mentioned earlier. with the addition of stochastic, i have a good feeling it should be good. keep up the hard work kenny and benny! :)
-
hi benny, how would you deal with when the stochastic lines repaints? It may have shown crossing above 80 or below 20 for this moment, but when the bar closed, it actually did not go beyond 80 or 20.
-
not sure about the RSI strength.. but should be able to filter out most alerts.. anyway, i will try out the dashboard and see if i can get in some trades after confirming with stochastic indicator.. will keep u guys updated when i got time.. regards.
-
oh ya.. i got it wrong earlier. got myself confused. Yes, you are right. i restate to check if i'm right.
Possible trade happens when
1) up Green Arrow, -10 (red) => up green arrow as the PA is above both MA, which the MA are in correct order (fast MA above slow MA), -10 red as it touches lower band which indicates a possible buy.
2) down green arrow, 10 (red) => down green arrow as the PA is below both MA, which the two MA is in correct down trend, 10 red as it touches upper band which indicates a possible sell
3) up Red Arrow, 10 (red) => up red arrow as the PA is above both MA, MA is in counter trend (fast MA below slow MA), 10 (red) as it touches upper band which indicates a possible sell.
4) down Red Arrow, -10 (red) => down red arrow as the PA is below both MA, MA is in counter trend (fast MA above slow MA), -10 as it touches lower band indicates a possible buy.
This is the 4 combinations I think of. am i on the right track?
-
Kenny, can you add alert function as well? it should make things more perfect! i'm thinking to get alert when its 1) green arrow, 2) red 10 number.. what do you think? perhaps others may think white 9 should get alerted? Regards.
-
what can we say? simply awesome stuff.. kudos to you kenny! :)
-
should we put this under metatrader indicator request? its a manual trading system, should be categorised as well under indicator, so more people will notice bout it. hehe
-
hey fellow mates, you guys are fast in opening thread. Anyone with Method 311 pls kindly share. I don't know about DonnaForex whether if 'she' is that good. Have no comment about her integrity too. But I do follow the forum quite often. Lots experienced traders are in it too. I think can give Method 311 a go if we have the copy :)
-
yes, the trade manager function is getting awesome here. Perhaps we should try the open trade function?
-
http://www.megaupload.com/?d=GKQSL1XS
'The file you are trying to access is temporarily unavailable.'
anyone please re-share. :)
-
thinking of active the post so some experts can have a look. :)
-
yup, this is expired as well. Any guru can edu it? Thanks in advanced.
-
may i know why the open trade cannot be inputed? is it because it requires human eyes to determine the candle formation? or the confluence?
-
This does not work on backtest? i Have tried backtest, but nothing happen?
-
I agree with the format of wire transfer. What a huge scam. Looks like the Indon want to scam around with their people.
-
Hi guys, I have found out how to solve the problem. Here's the code. Thanks to Chris for starting to help.
[size="1"]int LastTradeOP() //Function that finds the order type of the last trade {for(int i=OrdersHistoryTotal()-1;i>=0;i--){ if(OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY)==true) //Selects the last trade from Account History { if(OrderType()==OP_BUY) { return(1); //LastTradeOP()==1 if it was a long trade } if(OrderType()==OP_SELL) { return(2); //LastTradeOP()==2 if it was a short trade } } } return(0); //LastTradeOP()==0 if there are no trades }[/size]
And this is to add to long condition
&& (LastTradeOP()==2 || LastTradeOP()==0))
Add this to short condition
&& (LastTradeOP()==1 || LastTradeOP()==0))
-
I have tried again in backtest. Still can't solve the problem. It is not the open orders problem, as the EA only open one trade at a time. But, It can't recognize the order type of last closed order in the backtest. Hence, it turns out buy, sell, sell, sell, buy, buy, etc. I wonder if it got something to do with backtest, probably it can't find the last order in backtest history?
-
Thanks again Chris! you are very responsive! :) I will try this.
-
hmm..i was thinking if the 'lasttrade OP' function can do the job? as it has to open opposite position, then should be one trade per signal? correct me if i'm wrong. :)
-
Continue with 2nd part. Where I put the code under the long condition and short condition.
//+------------------------------------------------------------------+ //| Signal End | //+------------------------------------------------------------------+ //Buy if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount))) && (LastTradeOP()==2 || 0)) { 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); } } //Sell if (Order == SIGNAL_SELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount))) && (LastTradeOP()==1 || 0)) { 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; Ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, StopLossLevel, TakeProfitLevel, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink); if(Ticket > 0) { 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); } } if (!EachTickMode) BarCount = Bars; return(0); } //+------------------------------------------------------------------+
(REQ Plz) Simple Take Profit EA based on Bollinger Bands
in MetaTrader Expert Advisors Request
Posted