Forum

Opinion - very successfull EA - $3000 account to $6300 in two weeks (could have been $9000)

Hi I am looking for the opinion of some of the experienced people on here. I have programmed a simple EA, and it seems to work fantastic on a demo account. I know trading live is different, but what I want to know is in what way is it different and could this difference have an effect on my EA

problem with random stop loss values

I have this code before. The StopLoss is set at 30 points at the moment, but when a trade is placed, the stop loss on the trade is anything between 60 and 70 points. Seems very random and I cant work out what is causing this. Can anyone help me with this please ? if (SignalBUY== "true" ) {

How do I retrieve the latest Parabolic SAR value ?

I have this code: double dSAR = iSAR(NULL,0,0.02,0.2,0); Comment("Last SAR Value = ", DoubleToStr(dSAR,5),"\n", "SAR 0 : ",iSAR(NULL,0,0.02,0.2,0) ); The SAR value from the iSAR function shows on the comment as 1.36710, whereas the latest SAR indicator value on screen is 1.36798 It is the value of

MT4 crash

When I apply an EA to my chart, MT4 crashes with this error, can any one tell me how to fix it ? There has been a critical error Time : 2011.04.26 20:11 Program : Client Terminal Version : 4.00 (build: 229, 16 Nov 2010) OS : Windows XP Professional 5.1 Service Pack 3 (Build 2600) Processors : 2 x

Using #property indicator_chart_window

can I use #property indicator_chart_window in an EA, and if not why not and what do I have to do in its place / do to make it work ? I have copied it from a Pivots_daily indicator where it already draws to the main window so why will it not work when being used in an EA ? (in laymans terms please

What does # Define mean ?

I have this in code: #define SIGNAL_NONE 0 #define SIGNAL_BUY 1 #define SIGNAL_SELL 2 Could anyone tell me in laymans terms what this code does please ? thanks in advance

help with code counting types of order please ?

I am trying to get this code to count the different types of order and store the results where I can use them, but it doesnt work. Could anyone help ? double Op_Buy, Op_Sell, Op_BuyStop, Op_SellStop, Op_BuyLimit, Op_SellLimit ; int total = OrdersTotal (); for ( int a=

MT4 Bug ?

I have just been watching MT4 trade and my trailing stop stopped working on Sell orders . I restarted the machine and it works. Is this a bug and can I fix it ? Can I get MT4 for linux ? (Ubuntu)

What is the best way to test my EA ?

What is the best way to test my EA without waiting the whole day for another trade to happen just to check my latest adaption is working or not ? ? I can not use the back tester on MT4