Forum

OrderModify error 1

Hi guys I have been working hard to get an EA send Alerts and it seems to work just fine. Now I am working to make the EA place trades but everytime I try to set an automatic Trailing Stop feature it just doesn´t work. I receiving these codes: OrderModify error 1 I know it means that OrderModify

Can´t find the reason why OrderModify Error 4051 is happening

Hi guys, I just can´t find why my EA is showing this error when I use the Trailing Stop option. I am attaching here the code where I call the function Trailing Stop and then the function itself After that I am showing the messsages from the Alerts That I have inserted in the code In short, The

How to apply EMA to an RSI indicator

Hi Sir I am wondering if there is a way to code a MA indicator applied to another indicator, in this case I want to apply it to the results of an RSI indicator. At the MT4 platform, you can add a Moving Average to any indicator, just open the MA indicator and select the option - Apply to: Previos

error at compilation when adjusting to 5 digit broker

Hi Guys I am trying to adjust my EA to a 5 digit broker but can't get it done. I am using this code (see SRC below) to convert my Digits to a 5 digit broker but when I compile the code I get the following errors '.' - semicolon expected pips - struct or class type expected I really don't know what

Bad historical data

Can someone help me here? I just cleared all *.hst files in my PC, loaded m1 data from Dukascopy (I am backtesting at an ECN Trader), but couldnt make the script period_converter work. My screen turned white, I couldn´t see any bars on EURUSD whatsoever, so I am pretty shure that I cleaned

Problem with lot size calculation when USD not base neither terms currency

PLease check this code I am using to calculate lot sizes for EURUSD: double Lots= NormalizeDouble ( AccountBalance ()*Risk/ 100000 / Digits /Trail_Stop/ 10 , 2 ); it seems to work well because my Account Balance is in USD. So in this case, because USD is the terms currency it works well. I use this

TestGenerator: unmatched data error (volume limit 240778 at 2012.10.25 00:00 exceeded)

Hi there I can´t get my EA work on GOLD at an ECN trader (FX Open for instance). The EA managed to open 1 order but after short time, when there is the need to open another order (in this case an opposite one) The Tester shuts down an displays the following message on the diary 2012.11.04 23:26:06