Forum

Date Conversions

i've been away from metrader 4 for a while, so my coding is a little rusty, while creating an indicator, reason has arisen to convert a distance between two datetime variable into a number of bars , i think i may have it, but i'm not so sure about subtraction of datetimes, will these expressions do

High CCI

Hi all. I was recently experimenting with the highest function and the icci function. what i am intending to do is to find the highest point of the cci back about 6 bars, starting one bar back. it compiles perfectly, but the problem is that when i run it through the tester i get weird numbers, which

How far can you go?

i've seen several threads on this forum about where history can be imported. alpari data bank. badongo. and the new mt4 build. but none of them have i seen go back futher than 2001, (noting i haven't seen the new build of mt4 so i don't know) here's the question. is there anywhere i can get history

Recalling functional errors

i am still working on programming good friday. but i happilly announce i am on the last step! (horray!) i constantly have been double checking to make sure that this function has been spitting out the correct dates, but time and time again i get up to three diffrent dates each year, after

Problems calling variables from functions

I'm builing an ea I can use over and over to make new ea from a standard format. When I was recently inputting a holiday safety feature for interbankfx i created long ago, I decided to experiment a little with using functions . Now, no matter what i do when i try to call two variables, (DayOff, and

Some coding assistance please

i'm working to program a counter that will count when the moon is full to automate when good friday occurs, and as i was flowing through my river of thought, i encountered a dam. the method i'm taking seems simple enough to me, i've just never worked with code this way before. in order to count the

EA In Development: Current Progress, The Channel Detector

i have attatched a code i call "My Second Strategytester", because it is a test revie of my secondly developed strategy, (called "38 ema magnet") It started out fairly simple, from the expert advisor builder, but afterwards, (thank goodness i had the blessing) a friend of mine tutored me in c+

Alarm of profit

hey guys! what do you think of this strategy

Any experts on coding???

i have built an ea, using a 38 EMA, i noticed the moving average acts like a spining magnet on the EUR/USD, the price bounces away than comes back, i built this strategy to go off of that. (and it has a trailing stop of 10 pips) i was wondering if anyone knew a code i could use to make a swap when

The Day-Off Safety Detector

Thanks to the help from many people who have viewed the ask thread, i have created a Succesfull Safety feature for when interbankfx stops working, (which i learned about on July 4'rth) I made it to be the next best thing to finding a new broker. Here are the codes for the setup guide, a simple ea i