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
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
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
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
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,
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 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
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
Im a newbie and Im really stuck, I had tried many ways and combined with my programming inexperience, I just cant find a solution to this problem. I want the EA to count how many open and pending orders of each type are on the account, and store the
In the results graph, there are two lines, the blue profit line and the green equity line. many of the tests I do end with the equity line heading to zero near the end, my question is, why is this ? Is it a flaw in the strategy tester
I have one EA placing trades and another closing the trade. They just dont seem to work properly. is there any way around this, that I can have them work properly
This has to be a repost as I've not solved it yet I have tried this code, but I don't know what to do to get it to work void killTrade(int pips, int ticket) { double price = NormalizeDouble(OrderOpenPrice(),Digits); bool reopen = 0;
I have tried this code, but I dont know what to do to get it to work void killTrade(int pips, int ticket) { double price = NormalizeDouble(OrderOpenPrice(),Digits); bool reopen = 0; if(OrderSelect(ticket, SELECT_BY_TICKET)==true) { if(pips <=