Forum

SendNotification restrictions violation

Lately I have had som problems with the SendNotification function . It has worked fine for years but suddenly it stops working for periods. It looks like its because of the restrictions of max 2 call per secund and not more than 10 calls per minute. I’m trying to find a workaround of this problem

Get time value of last zag and zag

Hello, Could somebody helt me get the time of the last zig and zag value. I have this to find the value: int m5, x5; //Her er det egentlig m, x men jeg førte også på valutaparet x5= 0 ; while (m5< 2 ) { if (zig5> 0 ) zag5=zig5; zig5= iCustom ( NULL , 5

Automatic removal of EA

Hello, Is there a code that automaticly remove only the EA on current chart? I havde tried : PostMessageA( WindowHandle( Symbol (), Period ()), WM_COMMAND, 33050 , 0 ); but it removed the EA on all charts

Creating an Array

Hello, I need some help to create a simple Array(I guess thats what I need). When I get a signal I have stored the time of the signal like this: datetime TimeofCross; TimeOfCross = TimeCurrent(); I get the time of the current signal but I would also like to get the time from the previous signal. How

Needs some helt with the Comment() function

Hello, I have a timer function that works fine but I want a comment in the upper corner of the chart that says someting like this when the EA runs: "Trade allowed between xx and xx" I've tried to add the Comment() function but I cant place it right without errors.. //Timer if (UseTimer

Multiple timeframes and backtesting. Workaround

I have an EA for Period 5 min but in the code I also use daily data like the daily 8 and 21 SMA. I want to backtest my EA but since MT4 cannot backtest multitimeframe I need a workaround for this: I have this daily SMA filter: iMA(Symbol(),PERIOD_D1,8,0,MODE_SMA,PRICE_CLOSE,0) <