Forum

ChartOpen not working with offline charts

I created an offline chart and try to use ChartOpen to open it. I have read that it should work. I even used an indicator given with an article written years ago, and ChartOpen is used to open the offline chart, but the code in the given IndUSDx.mq4 names the chart the same name as symbol offline

Reference a function in EA from library

Is there any way I can reference a function in the EA from my custom library, since there are multiple functions that are customer related functions so must be in EA, but are called in specific places in my code in library no matter what the job? For instance, I have OnTime function, and inside that

MQL4 Replace line in CSV file

So that can I save the important info to me from each trade, I made code to search for the ticket number (first column) while inside a for loop looking at all open orders. The purpose of this code is to try and over write one line in a CSV file with new information for that line/ticket. Once the

array out of range error on previously working indicator

Here is my code that worked before: At top of code: AsianStartBars[14]; AsianEndBars[14]; int k=0; while(k<14) { for(int j=AsianStartBar1;j<iBars(symbol,tf);j++) { if(TimeHour(iTime(symbol,tf,j)) == ChannelStartHour && TimeMinute(iTime(symbol,tf,j)) == 0) { AsianStartBars[k] = j; k++; } } } int

TimeGMT and TimeGMTOffset and Daylight Savings???

RaptorUK told me to not double-post. I understand, but wanted to make a separate thread since I see this as something particularly easy for MetaQuotes to fix if they so desired, and an important subject that IMHO affects sessions, news, pivots, etc., so my original posts can be seen here

FXDD Gold and Silver MarketInfo problem

Hello all, I have been working on this for days, but have been unable to correct my code to get correct mini lot for Gold, without getting zero divide error (where objects don't even show on chart). TO CORRECT TICKVALUE FXDD GIVES YOU: Gold: PairPipValuePerLot = (MarketInfo("XAUUSD"

MT4 program shows manipulation coded in

I figured I would make as simple an EA as possible, after making hundreds of unprofitable EAs over the past year. The Buy and Sell Conditions are simple as can be: if(LastCandleUp == True && ThisCandleUp == True && LastCandleDown == False && ThisCandleDown == False) Order = SIGNAL_BUY;

MT4 program shows manipulation coded in

Instead of everyone having to read and see my proof twice, if you want to know how I have proved manipulation is coded into MT4, then please see: MT4 program shows manipulation coded in - MQL4 forum If you see that post, you will know why many (if not all) expert advisors lose. Manipulation to the

Moving average of Accumulation/Distribution

Does anyone know how to make a second buffer that is a Smooth Moving Average of the first buffer in the Accumulation/Distribution indicator? If so, how can it be done? Visually, what I want to see, I can do manually, but need it coded. To do it manually: 1. Place Accumulation/Distribution indicator