İş tamamlandı
Tamamlanma süresi: 41 dakika
Müşteri tarafından geri bildirim
Geliştirici tarafından geri bildirim
Hello, look at the entire code, check that it is programmed correctly, that there are no functions that are useless! Add a function so that there is only 1 order per currency pair. Currently it can happen that there are 2 or 3 orders per currency pair, I want to limit the number of orders to 1 per currency pair.
Add a code like this example :
int TotalOrders(string symbol="", ulong magic = -1) {
int cnt = 0;
int pos_total = PositionsTotal();
for(int pos =pos_total-1;pos>=0;pos--) {
ulong pos_ticket = PositionGetTicket(pos);
if(PositionSelectByTicket(pos_ticket) && (symbol=="" || PositionGetSymbol(POSITION_SYMBOL)==symbol) && ( magic==-1 || PositionGetInteger(POSITION_MAGIC)==magic) ) {
cnt++;
}
}
return(cnt);
}
it's just an example of what I want, it can be programmed differently.
Yanıtlandı
Arabuluculuk
27
59%
/
37%
Arabuluculuk
13
46%
/
15%
Arabuluculuk
12
58%
/
42%
Arabuluculuk
19
32%
/
47%
Yayınlandı: 14 kod
Benzer siparişler
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
The scanner will scan all currency base on MACD Diverdgent, my strength indicator and my better volume indicator. All this would be across all time frame and all currency pairs
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I need a fully automated trading robot designed to generate consistent profits while strictly controlling risk and minimizing losses. The robot should use a combination of strategies, including trend-following, scalping, and price action, and must be able to adapt to different market conditions such as trending and ranging markets. It should analyze the market using indicators like Moving Averages, RSI, MACD, and
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot