Wednesday 30 January 2013

perintah untuk membuat TARGET PROFIT BEP gimana caranya..??

BEP (titik gak untung dan gak rugi)
Rumusnya = (Jumlah perkalian Orderopenprice dengan orderlots)/jumlah orderlots

contoh dibuat dalam fungsi

double Bep( int tipe)
{
double price = 0, lot = 0;
for (int ord_pos = OrdersTotal() - 1; ord_pos >= 0; ord_pos--) {
Sleep(1);
if (!OrderSelect(ord_pos, SELECT_BY_POS, MODE_TRADES)) continue;
if (OrderSymbol() != Symbol() ) continue;
if (tipe != OrderType()) continue;
price += OrderOpenPrice() * OrderLots();
lot += OrderLots();
}

if (lot > 0) {
price = NormalizeDouble(price / lot, Digits);
}

return (price);
}


http://jumforex.blogspot.com/2013/01/belajar-membuat-ea-sederhana-23-average.html

1 comment:

  1. ForexTrendy is an advanced software capable of recognizing the most reliable continuation chart patterns. It scans through all the charts, on all time frames and analyzes every possible breakout.

    ReplyDelete