Forum

trading in a certain time

Can anyone please help me code for my EA to only trade between 7am and 11am /1PM and 4PM GMT. please could you explain the code so I can learn. much appreciated

Simple BOOLEAN FUNCTION HELP

Hi Coders, I am struggling with this simple function.. All I want it to do is look back over the past 10 candles and return true if any of the candles where higher than the upper bollinger band .my error '}' Not all control paths return a value. I just can't see where I am going wrong here. bool

return value of upper bollinger band when High[i] crosses

Hi Fellow coding enthusiasts, I am trying to return the value of the upper bollinger band when the price last crossed it using a function (below) I am checking the code by getting it to comment on the chart what should be the price. not sure were I am going wrong any help appreciated thanks. double

Return highest buy or lowest sell ticket number

Hello Fellow coders, I'm getting myself into a bit of a flap. I am trying to write a function so that it will return the ticket number of my highest buy trade or lowest sell trade, so they can be isolated from the basket and closed. I know I need to find the correct ticket number of the above trades

Colour code chart tabs

Hello fellow traders and coders, I have been playing around with mql4 for some time and do have some coding knowledge but I could do with a nudge in the right direction. I am looking for ways to simplify my trading journal and keep track of trade idea's I have in the pipline. One thing I would like

Multiple time frame scanner

Hello All, I have coded myself a little scanner that looks for my signal and notifies me when it sees one. At the moment I have to have it on all the time frames. There must be a way for it to scan all the time frames from just one chart,is there? I have been looking through code base but can't spot

Couldn't modify the order due to 0 no error

Hi, I seem to have this problem across all my EA's it doesn't effect the performance but it is annouying me. "Couldn't modify the order due to 0 no error". I can't see why it is even running this line of code as it does modify the order. I have put it in a simple buying script so you can see my

SendNotification(Parameters)

Hi, I am sure you used to be able to add a _symbol to SendNotifications as well as the string. in MQL4 REFERENCE it only shows a string as being the parameters. any ideas how to get the notification to tell me which currency pair the notification is when it sends it too your mobile. SendNotification

Drag charts off mt4 platform

Is it possible to drag MT4 charts off the platform and onto other monitors. I am sure I have seen someone offering the code to do this. I can code but not sure where to start with this one. any ideas

Do EA'S really work

I have been trading now for over 10 years and my biggest failure is the psychology. I started to learn to code about 3 years ago and I am still no expert with loads still to learn! In the time that I have been learning I have programmed hundreds of EA's some of which work for a period of time then