|
Expert-Advisors Expert-Advisors für Metatrader 4. |
|
Themen-Optionen | Thema durchsuchen | Ansicht |
|
|||
ließe sich relativ leicht selbst schreiben
Ich tippe mal auf 10-20 Zeilen |
|
||||
Ist leider nicht meine Paradedisziplin.
Daher hoffe ich, etwas fertiges in der Richtung zu finden ... |
|
|||
ich würds dir gerne zusammenschreiben, aber durch Studium hab ich aktuell leider sehr wenig Zeit
|
|
|||
Bitte schön.
Ist aber absolut minimalistisch. Code:
int start() { double LongProfit = 0; double ShortProfit = 0; for(int i = OrdersTotal() - 1; i >= 0; i--) { if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if (OrderType() == OP_BUY && OrderSymbol() == Symbol()) { LongProfit = LongProfit + OrderProfit(); } if (OrderType() == OP_SELL && OrderSymbol() == Symbol()) { ShortProfit = ShortProfit + OrderProfit(); } } } Comment ("Profit Long: ", LongProfit, "\n", "Profit Short: ", ShortProfit); } naranjoe |
Lesezeichen |
Stichworte |
bilanz aller short/long orders, bilanz orders, ea, expert-advisor, metatrader ea, metatrader expert-advisor |
|
|