tzm: "16:24:42 2010.05.18 06:00 tradefunc EURUSD,H1: open #216 buy 1.00 EURUSD at 1.23629 sl: 1.22330 ok. "
What's not obvious? 16:24:42 | local time (computer) |
2010.05.18 06:00 | current time (server) |
tradefunc | name of your EA |
EURUSD,H1 | chart being tested |
open #216 buy | what |
1.00 | lot size |
at 1.23629 | open price |
sl: 1.22330 | stop loss |
ok. | success or failure |
tzm:
Dear all,
During the EA backtesting, the system outputs several types of information which might be of great value to debug the EA. :
1. the dash line in red or blue, as shown in figure below.
2. The ovals with red or blue arrows inside, also show in the figure below.
3. The information written in the log files, the one that I have interest is: as "16:24:42 2010.05.18 06:00 tradefunc EURUSD,H1: open #216 buy 1.00 EURUSD at 1.23629 sl: 1.22330 ok. "
Hover your mouse over these Objects and their meaning will become clear, or look at them in the Object list (Ctrl + B)
Dear all,
During the EA backtesting, the system outputs several types of information which might be of great value to debug the EA. :
1. the dash line in red or blue, as shown in figure below.
2. The ovals with red or blue arrows inside, also show in the figure below.
3. The information written in the log files, the one that I have interest is: as "16:24:42 2010.05.18 06:00 tradefunc EURUSD,H1: open #216 buy 1.00 EURUSD at 1.23629 sl: 1.22330 ok. "
Can someone provide me a document on comprehending these information? Thanks a lot for your time and consideration.
RaptorUK:
Hover your mouse over these Objects and their meaning will become clear, or look at them in the Object list (Ctrl + B)
Hover your mouse over these Objects and their meaning will become clear, or look at them in the Object list (Ctrl + B)
dear WHRoeder and RaptorUK,
Many thanks for your prompt reply. The bug has been fixed but the performance is very unacceptible. Whatif I can make the equity curve more pretty! .....
tzm:
The bug has been fixed but the performance is very unacceptible.
Whatif I can make the equity curve more pretty! ....
- What bug - there are no mind readers here. Define performance - there are no mind readers here.
- then you will be "more happy!"
Dear WHRoeder,
Thanks a lot for your help and your reminding.Sorry for making the readers mind readers. My bug is: i issued two times of ORERSEND command in my placeorder function.And I have been trying to find out why I buy two contracts by checking the outputs of my EA during back test which is not what i expected.
Thanks a lot for your help and your reminding.Sorry for making the readers mind readers. My bug is: i issued two times of ORERSEND command in my placeorder function.And I have been trying to find out why I buy two contracts by checking the outputs of my EA during back test which is not what i expected.
void PlaceOrderwithSL(string sym, int Type, double Lotz, int MagicNumber=MN,double PendingPrice = 0)//this function will be called in the start()function. // Each call to this function will result in two contracts bought.... // this function will automatically set StopLoss while issue the OrderSend command. { int err; color l_color; double l_price, l_sprice = 0; double SL=0.0; int l_ticket; RefreshRates(); SL=GetSLforTrade(sym, Period(), Type); // Price and color for the trade type if(Type == OP_BUY){ l_price = Ask; l_color = Blue; } if(Type == OP_SELL){ l_price = Bid; l_color = Red; } // Avoid collusions while (IsTradeContextBusy()) Sleep(1000); l_ticket= OrderSend(sym, Type, Lotz, l_price, 5, SL, 0, "", MagicNumber, 0, l_color); //this is the first ordersend for buying a contract. if(l_ticket>0) return;// after adding this line, the EA produces the output that I expected. while (IsTradeContextBusy()) Sleep(1000); //if(Bars>4280 && Bars<4300) Alert("Bars=",Bars,", SL=",SL); l_ticket = OrderSend(sym, Type, Lotz, l_price, 5, SL, 0, "", MagicNumber, 0, l_color); //this is the second ordersend for buying a contract. //if(l_ticket>0) Alert("order send OK!! at Bars=1001"); string stime; stime=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS); //Alert(", time=",stime, ", SL=",SL); //Print(MN +" (OrderSend Error) "+ ErrorDescription(GetLastError())); }
tzm:
Dear WHRoeder,
Thanks a lot for your help and your reminding.Sorry for making the readers mind readers. My bug is: i issued two times of ORERSEND command in my placeorder function.And I have been trying to find out why I buy two contracts by checking the outputs of my EA during back test which is not what i expected.
Dear WHRoeder,
Thanks a lot for your help and your reminding.Sorry for making the readers mind readers. My bug is: i issued two times of ORERSEND command in my placeorder function.And I have been trying to find out why I buy two contracts by checking the outputs of my EA during back test which is not what i expected.
In your code you say it does what you expected . . .
if(l_ticket>0) return; // after adding this line, the EA produces the output that I expected.
RaptorUK:
In your code you say it does what you expected . . .
Dear RaptorUK,
Many thanks for your time and attention. With the line added, the code for buying the second contract cannot be executed...
tzm:
Yes, obviously . . . but it "produces the output that I expected." so you should be happy ? your code contradicts you, do you want one order placed or two ? if two why add the line of code, and if you want two what say . . . "produces the output that I expected." implying it is what you want ? if you ask for help in a totally confusing way then the hep you receive may not be the best . . . and you end up wasting everyones time.
Dear RaptorUK,
Many thanks for your time and attention. With the line added, the code for buying the second contract cannot be executed...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
During the EA backtesting, the system outputs several types of information which might be of great value to debug the EA. :
1. the dash line in red or blue, as shown in figure below.
2. The ovals with red or blue arrows inside, also show in the figure below.
3. The information written in the log files, the one that I have interest is: as "16:24:42 2010.05.18 06:00 tradefunc EURUSD,H1: open #216 buy 1.00 EURUSD at 1.23629 sl: 1.22330 ok. "
Can someone provide me a document on comprehending these information? Thanks a lot for your time and consideration.