Posts by compuforexpamm
| Previous 1 2 3 4 5 6 7 8 .. 18 Next |
|
It is virtually impossible to compare 2 doubles in MQL4, so your case of Ask==MiddleWhiteLine will just about never be true, even though to you, visually it may 'appear' to be true.
Try giving it a bit of slack, so perhaps check if the MiddleWhiteLine falls between the spread eg :-
if(Ask>=MiddleWhiteLine && Bid<=MiddleWhiteLine)...............etc
Also the sleep command between your orders is superfluous and will cause quote problems. Why is it there? I would just delete it and if you really must leave it there, then do a RefreshRates() before the second order.
Anothe......
|
|
Matter of opinion guys. I am not after that massive trade. I am after more consistent performance, and a specific peeve of mine is winners that are allowed to turn into losers in the name of giving the trade space to breath.
Nevertheless, I will be testing my own trailing stop manager this week. When I am happy with it, I will make it available to those that wish to use it.
|
|
Any plans to incorporate a trailing stop in the basic version? I can use my own trade manager if required......just frustrating to see how the current trade was allowed to come down from around 37 pips profit to the negative that it is now.
|
|
Hi John,
I do mainly asian scalping and I have found that the filtered price feed from instant execution brokers don't work so well. Maybe that has changed in the last year or so but I have found a couple of market execution brokers that work well and I have never felt the need to look back.
The price feed from STP/ECN brokers tend to be more 'raw' and scalpers like this. If you have any doubts about the levels of filtering, have a look at what happens to price feeds at rollover time(5pm EST) and you will get the picture. Compare that with a broker like Jade where you can experience roll......
|
|
double Stoploss = 50;
double Takeprofit = 50;
int start()
{
int ticket = OrderSend(Symbol(),OP_BUY,1.0,Ask,3,0,0,"Order #1",1234,0,Red);
if(ticket == -1) Print("error-",GetLastError());
else OrderModify(ticket,OrderOpenPrice(),Ask-50*Point*10,Ask+50*Point*10,CLR_NONE);
return(0);
}
You are probably dealing with a market execution broker(I don't use IBFX, so I am not sure). That means that you can only enter a stoploss & takeprofit AFTER they return a trade to you. This is simply because you do not know what price you will recieve from them......with mar......
|
|
Paul,
You could always just look at the difference between the balance and the equity.
Of course if you are trading multiple currencies and/or strategies, then by necessity you would have to sort through the various orders using OrderSelect in order to target the trades that should be closed.
|
|
How to create a EA that can open a long and short trade simultaneously? In Programming Nov 09 2010 at 16:44
Just do nothing...........it has the same effect but is cheaper.
|
|
Lol, don't I wish. Nah, its just funds that were deposited in the first place.
|
|
Ben, I have been with them for a year. I have done several withdrawals including one last night of just over $14000. Based on my previous experience with Jade, the money will be back in my bank account by tommorrow.
|
|
Ah, ok, apologies. I mis-understood:-)
I hear you......
|
Share