Şartname

//+------------------------------------------------------------------+
//| Simple Moving Average Robot |
//+------------------------------------------------------------------+
#property strict

input int MA_Period = 50;
input double LotSize = 0.1;

double MA_Value;

//+------------------------------------------------------------------+
int OnInit()
  {
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
void OnTick()
  {
   MA_Value = iMA(Symbol(), PERIOD_CURRENT, MA_Period, 0, MODE_SMA, PRICE_CLOSE);

   double price = SymbolInfoDouble(Symbol(), SYMBOL_BID);

   // Check if there are open positions
   if (PositionsTotal() == 0)
     {
      // BUY condition
      if (price > MA_Value)
        {
         trade.Buy(LotSize, Symbol());
        }

      // SELL condition
      if (price < MA_Value)
        {
         trade.Sell(LotSize, Symbol());
        }
     }
  }
//+------------------------------------------------------------------+#include <Trade/Trade.mqh>
CTrade trade;

Yanıtlandı

1
Geliştirici 1
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
2
Geliştirici 2
Derecelendirme
(19)
Projeler
24
21%
Arabuluculuk
0
Süresi dolmuş
2
8%
Serbest
3
Geliştirici 3
Derecelendirme
(257)
Projeler
263
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
The basic idea of CRO is to simulate coral colonies that develop and compete for space on a reef, ultimately forming an optimal structure. Each coral in the reef represents a potential solution to the optimization problem under consideration. The reef is modeled as a two-dimensional N×M grid. Each grid cell can either be occupied by a coral or left empty. A coral is a coded solution to an optimization problem. For
Mk 30+ USD
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

Proje bilgisi

Bütçe
1000 - 500000 USD
Son teslim tarihi
to 90 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0