Forum

Trying to add a Moving Average to indicator but need help

Can someone see why this does not work? I have added MA's before but this time the indicator will not even load and makes MT4 unresponsive. Any help greatly appreciated. //+------------------------------------------------------------------+ //| Complex_pairs.mq4 | //| SemSemFX@rambler.ru | //|

Small problem with Alert

I know alerts are a popular question and I have read how to do an alert and faithfully followed an example that seemed a good fit for what I seek to do with an indicator I am working on. I have lines that "cross" and assign a value 1 to a "Long" cross and -1 for a "Short" cross. My alert correctly

How do I call the buffers for Bollinger Bands when applied to Previous Indicators Data?

Hello, I have an indicator in a separate window and I apply the default MT4 Bollinger Band indicator in this Window i.e Applied to Previous Indicators Data. It works well for me seeing when the line goes outside the Bollinger Bands. I can see the two sets of data in DataWindow, but I would like to

How do I change the code to automatically correct for an issue of 5digit v 3 digit

Hello, I am still learning and am writing an EA. The simple format of the trade logic is if the absolute value of Open[1] - Close[1] is greater than a defined minimum value open an order. I don't use this in isolation - there are other filter conditions. My big problem is it works fine until I have

A question about which is correct ...

I have tried to find a definitive answer to this query from codebase and e-books I have and am still uncertain about whether these two are functionally identical or if there is an important difference. High[ 1 ] or iHigh ( NULL , 0 , 1 ) I am using High[1] because this is what Forex EA Generator

Can some kind person tell me where I am wrong?

I am trying to solve a problem. **** I have corrected errors based on feedback from Raptor and deVries *** Values from the indicator Long Buffer 0 +ve (iCustom(NULL, NULL, "Signal_Indi",12,0,1) Short Buffer 1 -ve (iCustom(NULL, NULL, "Signal_Indi",12,1,1) For Long I test for "Bulls" Buffer 0 >

Where have I gone wrong?

deleted by request, with apologies. I have an indicator that has a curve type moving average and I applied user definable "bands" above and below the MA. It worked well. I want to modify an indicator that is similar but is a straight line trend indicator. I have added the buffers and it compiles

How to complete this to add moving averages of the indicator values?

Thanks for your help Raptor. I'll keep reading and trying

Fix display of deciimals in Comments

Hello, I am developing an EA and have a display problem. string temp = "Signals\n"; temp = temp + "--------------------------------------\n" + "Up_Op " + UpSignalOpen + "\n" <- example output is 0.12345000000 + "Up_Cl " + UpSignalClose + "\n" <- example output is 0.12345000000 +

Is it possible to append the pair symbol in trade comments for ease or sorting by pair later?

Hello, I am a "newbie" to programming and am enjoying learning, even though it is MT4 stuff. I have made an EA to work off my indicator and trade plan and would like to get the trade comment to include the pair so I can sort easily and see which pairs work well and those that don't. This is the line