BTC USD 83,853.1 Gold USD 4,289.55
Time now: Jun 1, 12:00 AM

Apakah ciri-ciri EA yang baik?

Aku terjumpa artikel ni tentang MM untuk EA
PHP:
MultiStratMM - for maximum profit 	Reply with quoteBottom of PageBack to top
Here's a money management idea to make trading profitable - hopefully very profitable.

Just about any strat (strategy) is successful when combined with prudent money management and traded at the right time. i.e trade a trend following strat. when markets are trending, trade a retracement strat. when markets are range bound.

The hard part is identifying the current market conditions and switching strats at the right time which can be at any time (and usually when you least expect it ).

THE SOLUTION:
Trade 2 strats simultaneously and use money management to allocate more money to the one that is winning and reduce the risk to the one that is losing. One strat is trend following the other not.
Initially each strat is allocated a value for RiskPerTrade1 and RiskPerTrade2 = 0.25%.
If the last trade was a winner then increase RiskPerTrade by multiplying it by 1.5
If the last trade was a loser then decrease the RiskPerTrade by multiplying it by 0.5.
When market conditions favour one strat (i.e. it's winning trades) it is allocated more risk to maximise the profits. When market conditions are killing a strat it's position size is wound down to limit the losses. You'll also see that this scales down faster than it scales up i.e. fear is given more weight than greed to protect your money.

The beauty of this is that it automatically does what is possibly the hardest and most important thing to get right with live trading.

Of course you would set a minimum and maximum value for RiskPerTrade. Prudent values would be 0.025% and 2.5% when daytrading. A limit on the days and weeks losses is also prudent. The trend is not your friend if your account balance is trending down.

If anyone sees enough merit in this idea to code an EA I hope they send me a copy - or work together on it. I have many more high probability ideas.

steve b. Mar 6th 2009

Idea yg sangat bagus. Adakah ini serupa dgn Lot Risk Reductor?
 
Tak pernah dengar pula Lot Risk Reductor tetapi kalau Decrease Factor pernahlah.Bawah ni code dia.Rasanya lebih kurang sama dengan idea diatas.

Bila lost,jumlah lot akan dikurangkan semula,bila untung lot ditingkatkan

Code:
extern double     MaximumRisk       =0.03;
extern double     DecreaseFactor    =3;

double LotsOptimized()
  {
   double lot=Lots;
   int    orders=HistoryTotal();     // history orders total
   int    losses=0;                  // number of losses orders without a break
//---- select lot size
   lot=NormalizeDouble(AccountFreeMargin()*MaximumRisk/1000.0,1);
//---- calcuulate number of losses orders without a break
   if(DecreaseFactor>0)
     {
      for(int i=orders-1;i>=0;i--)
        {
         if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false) { Print("Error in history!"); break; }
         if(OrderSymbol()!=Symbol() || OrderType()>OP_SELL) continue;
         //----
         if(OrderProfit()>0) break;
         if(OrderProfit()<0) losses++;
        }
      if(losses>1) lot=NormalizeDouble(lot-lot*losses/DecreaseFactor,1);
     }
//---- return lot size
   if(lot<0.1) lot=0.1;
   return(lot);
   }

//sumber dari Forex-tsd ea envelope
 
Last edited:
Tak pernah dengar pula Lot Risk Reductor tetapi kalau Decrease Factor pernahlah.Bawah ni code dia.Rasanya lebih kurang sama dengan idea diatas.

Bila lost,jumlah lot akan dikurangkan semula,bila untung lot ditingkatkan

Code:
extern double     MaximumRisk       =0.03;
extern double     DecreaseFactor    =3;

double LotsOptimized()
  {
   double lot=Lots;
   int    orders=HistoryTotal();     // history orders total
   int    losses=0;                  // number of losses orders without a break
//---- select lot size
   lot=NormalizeDouble(AccountFreeMargin()*MaximumRisk/1000.0,1);
//---- calcuulate number of losses orders without a break
   if(DecreaseFactor>0)
     {
      for(int i=orders-1;i>=0;i--)
        {
         if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false) { Print("Error in history!"); break; }
         if(OrderSymbol()!=Symbol() || OrderType()>OP_SELL) continue;
         //----
         if(OrderProfit()>0) break;
         if(OrderProfit()<0) losses++;
        }
      if(losses>1) lot=NormalizeDouble(lot-lot*losses/DecreaseFactor,1);
     }
//---- return lot size
   if(lot<0.1) lot=0.1;
   return(lot);
   }

//sumber dari Forex-tsd ea envelope

Idea yg lebih kurang sama. Lot Risk Reductor tu didapati kat Fapturbo EA.
 
Ciri-ciri ea yang baik.... erm...

Good Signal hehehehe :D dan ea yg bleh trade market sideway dan trending dengan gumbira hehehehe :D
 

Live Forex Chart

Currency
Rates
EUR / USD
1.13846
USD / JPY
158.037
GBP / USD
1.32415
USD / CHF
0.82442
USD / CAD
1.41064
EUR / JPY
179.752
AUD / USD
0.70338
Back
Top
Log in Register