Forum

iTime not working as expected

Suppose i start some EA in 1h time frame, and then some where in the code the isNewBar() function gets called, it will Print 28-12-2018 22:00:00 for instance... And then i change the time frame to 1m and then the isNewBar() function keeps printing 28-12-2018 22:00:00 I was expecting something like

Pointer to Array inside class

Hi there I would like to pass to a class constructor a series of Arrays[]& and be able to store its address in my class. Something like this.... class CandleInfo { private : datetime * _time[]; double * _open[]; double * _high[]; double * _low[]; double

Cant change bid line color

Hi all. I'm using next code lines to attempt change bid line color but it doesn't change color. although ask line is working fine. Can you help me. Thank you ChartSetInteger ( NULL , CHART_SHOW_ASK_LINE , True); ChartSetInteger ( NULL , CHART_SHOW_BID_LINE , True); ChartSetInteger ( NULL

How Indicator performs when it's called by an EA

Hi all. So i would like to know how one Indicator performs when it's called by an EA. For instance i have this line of code on OnTick() Function. double Indicator = iCustom(NULL,0,"Indicator",0,1); My indicator works in the following way: First it runs all candles and makes all the necessaries

Error 4029 Invalid array

Hi all. So i have this indicator to calculate Swings it's working just fine in all charts and in all time frames... all but one CHFJPY on 1D time frame. it gives me Error 4029 Invalid Array. what happens is that all calculations are done normally inside OnCalculate() but for some reason i get this

I'm going crazy with OrderModify error 1

I guys! I have checked everything a tons of times and i just can't get it... The Order some times get updated and some times get OrderModify error 1 Please help me! Thank you. Just for information: PipsToTriggerTS = 0.01000 = 100 Pips PipsToLockInTS = 0.00500 = 50 Pips void TrailingStop() { for

Calling script from EA

Hi guys I have made an scrip to give me some information about the Market. Now i'm making an EA and i would like that my EA could call my Script. I read about it and i think i must use #include and i try it but i just cant get it rigth. Can you help me please

Problems with indicator when changing periud

Hi there. I'm having a little problem with my indicator. The indicator itslef it is working just fine. It's Separate window indicator with histogram style, and it's value can be only -1 or 1. What happen is that when i change the periud for exemple from 1H to 5m the first time i do that, it does not

Help with iCustom

Hello. I have made an Custom Indicator (SwingShow) that is working just fine. Now i'm trying to make a ExpertAdvisor based on this Custom Indicator. i have this code OnTick .... Swing = iCustom(Symbol(),PERIOD_CURRENT,"SwingShow",0,0); .... But when i check Swing it does not change, it keeps

Why Desappear

What's wrong with this simple piece of code? In debug it works nicely but when i attach it to the chart the text simply don't appear Tank you... MqlRates Quotes[]; int cont_velas = Bars("EURUSD",PERIOD_MN1); CopyRates("EURUSD",PERIOD_MN1,0,cont_velas,Quotes); CChartObjectLabel InfoGeral;