거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Cross - MetaTrader 4용 expert

조회수:
16893
평가:
(16)
게시됨:
2020.01.11 05:29
업데이트됨:
2020.01.11 09:50
Cross.mq4 (5.94 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Simple code for Candle Cross above or below Conditions..

Mt5 version:- https://www.mql5.com/en/code/27597

Note: This is just a sample

Main Function


bool   crossed[2];

//+------------------------------------------------------------------+
int OnInit()
  {
   for (int i = 0; i < ArraySize(crossed); i++)
      crossed[i] = true;
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
void OnTick()
  {
//Your Buy condition
if(Cross(0,Open[0] > Condition))
     {

....//your conditions//...
     
     }

//Your Sell condition
if(Cross(1,Open[0] < Condition))
     {

....//your conditions//...
     
     }
  }
//+------------------------------------------------------------------+
bool Cross(int i, bool condition)
  {
   bool ret = condition && !crossed[i];
   crossed[i] = condition;
   return(ret);
  }


Safe Trend Scalp Safe Trend Scalp

Safe Trend Scalp is an automatic robot that trades with automatic Trend lines that ea crated with market history.

volatility_Bar volatility_Bar

volatility, flat

Dynamic Stop Loss Dynamic Stop Loss

Dynamic Stop-Loss is a tool for traders who trade without a stop-loss. It gives the traders a trick to trade as if there is no stop-loss but actually using one.

Set Stoploss and Takeprofit at same level for multiple orders Set Stoploss and Takeprofit at same level for multiple orders

Let's say we have 20 open orders on one symbol and want to set takeprofit or stoploss for all of them at the same level(price) .The script selects all open orders of the symbol and can modify stoploss or takeprofit or both at the desired level (price). If the input parameters are left to zero , the stop or the takeprofit are left unchanged .