| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
||||
|
ok I'm asking...
how do I use file functions so that it appends data to the end of the file rather than overwriting it.
http://www.forex-tsd.com/62009-post1150.html please reply on the thread that this link goes to where I normally read. |
|
||||
|
How to retrieve a specified closed order using HistoryTotal() ?
Hi All
![]() is there a way using HistoryTotal function to be able to find a particular order (buy or sell) closed ? I tried with this code but it seems not working : Code:
int hstTotal=HistoryTotal();
for(i=0;i<hstTotal;i++)
{
//---- check selection result
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false)
{
if (Debug==true) Print("Access to history failed with error (",GetLastError(),")");
break;
}
if (OrderType()==OP_BUY && OrderComment()=="LONG")
{
..take some action...
}
if (OrderType()==OP_SELL && OrderComment()=="SHORT")
{
..take some action...
}
}
Code:
Sell: .. .. OrderSend(Symbol(),OP_SELL,Lots,Entry,Slippage,StopLoss,TakeProfit,"SHORT",0,0); .. .. Buy: .. .. OrderSend(Symbol(),OP_BUY,Lots,Entry,Slippage,StopLoss,TakeProfit,"LONG",0,0); .. .. thx a lot ![]() Skyline Last edited by skyline; 11-09-2006 at 08:14 PM. |
|
||||
|
Quote:
Be aware that the broker will append the comment with their own comments on the order for different reasons, and always when then the order is closed by SL or TP. What are the criteria for looking up the trades? Once you defone that then you'll have you solution.
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein |
|
||||
|
Quote:
Anyway i'm trying to explain my problem : in my EA I have different kind of buy (or sell), I have a kind that have to be opened whenever a condition is met also a lot of time in a day (something like that when price penetrate an EMA then an order is placed), and another type that have to be triggered only once per day depending on different conditions based on different EMA. So what I have to do is to let the first kind of buy/sell to open/close orders a lot of time in a day while the second kind of buy/sell orders have to be opened only once a day, so I thought that if I could localize in some way any kind of buy/sell order in history i could solve my problem , but it seems not possible ![]() |
|
|||
|
daily chart values
Quote:
I am trying to get the high, low, open, close for the previous day @ 0 GMT for my EA. It works fine for all days except sunday in MIG & IBFX where it gets values for sunday from saturday and not friday. FXDD gets it crrectly from friday close since it doen't have a new bar for saturday. Its coded as: High[1], Low[1], Close[1] etc. How do I fix the code for sunday so that it gets values only from friday close and not saturday. Please help! |
|
||||
|
Quote:
to answer your question, here's how i would solve the problem. PHP Code:
![]()
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk ![]() ![]() REMEMBER, "Genius is nothing but a greater aptitude for patience." –Benjamin Franklin ![]() ![]() ____________________________________ Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!! http://sufx.core.t3-ism.net/ExpertAdvisorBuilder |
|
||||
|
Quote:
U will find the answer for your question there. Regards Kale
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
|||
|
Thank u
Quote:
Thank u so much. Have a Great day!! |
|
|||
|
Thank u
Quote:
Thank u, have a great day!! |
![]() |
| Bookmarks |
| Tags |
| histogram, forex, ZUP_v1.mq4 |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
|
||||
| Posted By | For | Type | Date | |
| OzFx System:) - Page 639 | This thread | Refback | 06-21-2008 10:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 12:46 PM | |