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

Cross - MetaTrader 5용 스크립트

조회수:
8906
평가:
(18)
게시됨:
2020.01.11 10:15
Cross.mq5 (35.33 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Simple code for Candle Cross above or below Conditions..

mt4 version:- https://www.mql5.com/en/code/27596

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()
  {
  if(CopyOpen(Symbol(), PERIOD_CURRENT, 0, 2, Open) <= 0) return;
   ArraySetAsSeries(Open, true);
//Your Buy condition
if(Cross(0,Open[0] > Condition))
     {

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

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

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




Testinator for testing massive combinations of trade setups Testinator for testing massive combinations of trade setups

Welcome to the Binary Testinator. The Purpose of this EA is for testing different Indicators to optimize a trade scenario. Everyone has an opinion on what is the best trade setup, and advice is never ending! Better if you test it out...

Perfect Trend Line 2 Perfect Trend Line 2

Perfect Trend Line 2

Price in polar coordinate system Price in polar coordinate system

Just for experiment and to demonstrate the possibilities of Canvas. The price is drawn in the polar coordinate system by winding circles.

Pseudo-Indicator with Asynchronous Multi-Threaded Calculations Demo Pseudo-Indicator with Asynchronous Multi-Threaded Calculations Demo

This is an indicator w/o buffers which demonstrates parallel multi-threaded calculations in chart objects hosting worker expert adviser.