Forum

Basic questions ...

Hi I want to do the following in code 'Don't trade for 30 minutes since my last trade' So if my indicators indicate that I should add to my current trade again then I place trade in the same direction only if 30minutes have past I am doing the following - this code does work yet - it is just in

Daily Profit

Hi I am working on a function to determine whether an ea has hit is daily profit target, but I am unsure if I am doing this right. Specifically when I check the closed orders. All my orders open up as pending orders , does a pending order's ordertype convert from OP_BUYSTOP to OP_BUY when the stop

Help with Send Mail

Hi I am trying to get an EA to send me an email message when it wants to trade. This will call the SendMail() function . The help says "Sends a message to the e-mail set in the Tools->Options->EMail tab." My email is provided through charter.net so I put in smtp server : smtp.charter.net my login

Error Codes

Hi I am getting the error message invalid stops err 130 i.e. I print out my values and they are as follows 2006.06.29 13:15:05 AUDUSD,H1: OrderDetails: SellPrice : 0.731 ,CurrentBid : 0.731 ,stoploss : 0.7319 ,takeprofit : 0.7291 ,slippage : 2 I am using the following to check my sl and tp before

EA works on some charts not on others?

Hi I have an ea that I backtest on all currencies and it buys and sells ok. Now I start forward testing it on these currencies, attatching the ea to each currencies chart. But I am finding the ea totally ignores signals on some charts. So far it has seen signals on 3 charts, but only done what it

Mq4 backtester terrible

Hi I have excellent history data - and when I test a stratergy that buys only once a day with only a tp and sl, I get wildly different results if I test using 1min, 15min or 60min timeframes. I was originally just testing on 1hr timeframe - and was getting excellent results. What a hassle - how

GlobalVariables

Hi Do Global variables retain their value when you shut down metaquotes and restart the machine. In metaeditor help it says 'Global variables are kept in the client terminal within 4 weeks since the last access, then they will be deleted automatically. ' I don't know many people who manage to keep

Indicator for margin level

hi How does one calculate 'margin level'.? I want to open the maximum number of positions I can using different stratergies - but i don't quite know when to stop opening. When 'margin level' = 50%? If I know how to calculate margin level then I can determine what my 'margin level' will be if all my

Please help, splitting a trade

hi Does anyone have code or an ea that splits the trade at certain profit levels, e.i. Enter trade - when 30 pips in profit sell half of trade, when at 50 pips profit sell 30% of original, at 70 sell the last 20%. I am getting myself into a serious knot trying to code this. Any help is greatly

Where is the elite section?

hi I can't find it! I am a subscriber, i haven't logged on to the forum for a while and now I wanted to check the ea leaders, but can't find the path to where the weekly performance review is. And what are these private forums? This forex-tsd is becoming a real exclusive place - pretty much like the