← Назад к списку файлов

rrockzz@fxsignalpot.mq4

Поиск по коду файла

#property description "This strategy compares the current price to the closing price of the previous day."
#property description "If the current price is lower than the previous day's closing price, the strategy will look for opportunities to buy."
#property description "If the current price is higher than the previous day's closing price, the strategy will look for opportunities to sell."
#property strict

input double lotsize = 0.10; // lot size

int OnInit()
  {
      // код доступен только после оплаты
   }

void OnDeinit(const int reason)
  {

  }

void OnTick()
  {
      // код доступен только после оплаты
   }

   double recent_close_price = iClose(_Symbol,PERIOD_CURRENT,1); // last close price, since current close price would be the current price
   double current_buy_price = SymbolInfoDouble(_Symbol,SYMBOL_ASK); // current ask price
   double current_sell_price = SymbolInfoDouble(_Symbol,SYMBOL_BID); // current bid price
   double previous_day_closing_price = iClose(_Symbol,PERIOD_D1,1); // previous day's closing price

   d

Показано первые 50% кода (символов: 1611)

Как получить полную версию?

Введите ваш email и нажмите кнопку, чтобы перейти к оплате.