Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
Thank you.
Sergey Golubev:
Ok Thanks, have you read my question?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
in MQL5 when i set this EA on MT5 in H1 and it' changes automatically timeframe (to Daily) and reset after some milliseconds. So the chart seems crazy. Not all computers have this problem, i have an i7-6700HQ where there is no problem, but on my aruba VPS and some computer there is this problem.
Thanks so much
The code is this:
//+------------------------------------------------------------------+
//| EAProvaMTF.mq5 |
//| Copyright 2018, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
double massimo = iHigh( _Symbol, PERIOD_D1, 0 );
double minimo = iLow( _Symbol, PERIOD_D1, 0 );
double open = iOpen( _Symbol, PERIOD_D1, 0 );
Print( massimo + " " + minimo + " "+ open );
}
//+------------------------------------------------------------------+