After a long three weeks of work I havebuilt my own custom indicator and am happy with the on screenresults. I have been trying for the last two days to output a returnvalue to an EA without any results. How do I get it to return a value tomy EA like iMA does? FYI my EA is the simple expert...
In his paper http://www.priceactionlab.com/Literature/profitability.pdf Michael Harris represents the profitability rule as : w = pf/(pf+R) where pf = profit factor, R = payoff ratio and w is the win rate. How can I convert this into a code in the expert advisor?Can anyone help?Thanks.
New article The Golden Rule of Traders is published: In order to make profits based on high expectations, we must understand three basic principles of good trading: Know your risk when entering the market; Cut your losses early and allow your profit to run; Know the expectation of your system –...
Hi All, I am new to mql language and took an attempt to create my own EA based on various pdf and forum here. I have managed to built an EA that works in strategy tester but when I put it to work as EA then it does not open any trades. When I then test the same day in strategy tester - trades are...
Please help on building a function like: double BidAtTime (int time) (where time is the number specified the time, detailed to seconds (example 2012 June 15, 14:28:19). If you hesitate to help with the complete coding, then just guide me on the algorithm Description of the idea: BidAtTime...
Hi, I've just changed brokers and my new broker doesn't have a have a MT4 Android (xogee) application. I went ahead and downloaded MetaTrader 4 Mobile by metaquotes and what a disappointment it is!. It's pretty much useless. There's no ability to: Zoom into charts to check the...
How do I have to change below code of that histogram code in order to be able to drag n drop that indicator into an existing cci indicator window? When I do it now it shows: It should be like the above sidewinder indicator at top (yellow, green, red), only a small "line". (shown at bottom of cci,...
Hi, Please pardon the question, if it is too trivial. I've noticed that in MT4, some currencies have data for a particular date and time (in the past) while other currencies don't (i.e. the dates and times don't always correspond). Is there a way to get all currencies to have data for one set of
MetaTrader 4 Client Terminal build 419 Terminal: Fixed display of dialogs in the case of incorrect or corrupted settings of the dialog coordinates. Now the dialogs are never displayed outside screen coordinates.Terminal: Fixed terminal crash during shutdown with one of the dialogs open (list of...
Hi, does anyone know where in general the 'answers' of the trading function are stored: eitheralready hold locally in the client-MT4 or remotely at the server? Especially: OrdersTotal(). Thanks in advance!
Hi All Please help if you can :) This code causes the server to return error 130 for the OrderModify command: double sl; double tp; int dig = Digits; sl = NormalizeDouble(Bid-Stoploss*Points,Digits); tp = NormalizeDouble(Ask+TakeProfit*Points,Digits); str_sl = DoubleToStr(sl...
Hi guys, I could do with a little help if anybody can please. I'm writing a few trade details to a csv file, which is all fine and working how I want. However, when I record the trade close information, I would like it to append to the last line of data if possible. At the moment, it is creating a...
Excuse me, I was wondering whether anyone superior here could enlighten me. Is it possible to make a user-defined array function? If it could be done, we must be able to transfer the array name as a parameter to the function. Could someone give me an example? Thank you so much!
Hello everybody, I'm coding EA which generates SELLSTOP and BUYSTOP orders. When testing in strategy tester I often (not in all cases) receive error 3 "invalid trade parameters" although the parameters are IMHO correct. I added extensive logging into the EA to know all the parameters and here is...
Hello, i am requesting spmeone to add an pop up message alert to this Reversal Fractal indicator , then i will very much thankful to you. I want to receive pop up meassage alert when buy sell arrow appears in the chart . Please help me for this indicator. God bless you. I am waiting for your reply
Hi i recently bought this EA. Ive traded with it for 3 weeks and the live performance is consistent with the below strategy tester report. Im not an expert so i would like to know what some terms like absolute drawdown and relative drawdown mean. Strategy Tester Report Xbug_ultimate AlpariUK-Live...
Good night ;-) I am writing a little oscillator to test short-term trading even in range-bound markets. I am using IMAOnArray() to calculate two thresholds that point out when is the market flat. My problem is that IMAOnArray does not work as I expected. I have read all the documentation and...
if (order_type==OP_SELL) { if(Ask < order_stoploss - 0.00150){ OrderModify(ticket1,order_price,Ask + 0.0005,0,Blue); return ; }} Why am I getting OrderModify error 1 when this executes?
Hello. Can any one add coding on heiken ashi ea under condition to open position place an order on first candle bar. it open postion on 3rd or 4 th bar. if it opens on on first hope the loss will be reduced . looking for help
Please view the following code: //---------------------------------------------------------------------- if (total(OP_BUY)==0) { static int base=0; if (base==0) base = Bid; pendup=NormalizeDouble ( MathRound (base/5)*5 + 3 , 2 ); if...