Hallo, ich würde gerne in den Code folgendes einfügen.
MA 200 Ansatz 4 Simple open
MA 100 Ansatz 1 Simple Weighted Close
und er soll wenn der schnelle MA den langsamen Kreuzt genau eine Long order auf machen. Kann mir da einer Helfen ? Bin neu im Programmieren und suche einen ansatz.
Code:
//+------------------------------------------------------------------+
//| EA_CROSS.mq4 |
//| Copyright 2016, MetaQuotes Software Corp. |
//|
https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
}
//+------------------------------------------------------------------+