Jump to content

konorti

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by konorti

  1. I got a huge log file while backtesting with the next error:

    10:22:31 2012.03.13 19:29 EA p2 EURUSD,M5: OrderModify error 130

    this means it tries to modify the TP and SL within the allowed brokers stop level. I will recode to make sure it doesnt try to modify without checking it. I think i will have time till Sunday...

     

    Until I upload a version which has a 500ms sleep in the loop while trying to modify the order (the file will not get so big too soon)

    http://www.4shared.com/file/Amlsjcjo/EA_p2_3.html

  2. hi iwjw,

     

    I partly edited the code with external editor, bad idea. You can see the original code uploaded by Newbee. If I have time will modify the old code again in metaeditor. I changed 2 parts. I duplicated the original ordermodify custom function for live orders with openprice sent, not just zero. This helped for the backtesting log file enlargement, what i had during backtesting as wellnot just as Newbee wrote in first post. As you recommend also actually the ordermodify is called after reselecting the trade in original code as well, and there is a return if select is not successful. It would be good to see exact message how the EA fails as no errors while backtesting. So what I did I changed the statement to opposite to try to modify the order in the case if select is successful. We will see, I dont run this EA live, bactesting seems fine with it.

  3. I modified, same link above. the problem that without info it is hard to identify the problem. I recoded the suspicious part, but theoretically there was no problem in it, I just coded it again in a different way. If it happens again please install total commander and use the lister (F3) to view the big log file. and copy the mentioned part as it would help a lot.
  4. For me the problem existed while backtesting as well. After checking the code it turned out that it tries to modify the sell and buy orders without setting the Openprice. I fiexed that. I changed the code and for me didnt show that ordermodify error when I backtested again (tester/log folder is the place for logs when backtesting).

    There is one orderdelete I will check this weekend what does it do, and what might cause the problem. For first sight it seems that an order which is sell or buy should't reach the Orderdelete as the loop is broken earlier with switching by ordertype. I didnt run it live, so if you still have that part of the log file when started to log the ordedelete error with the preceding part of putting the stop order and when the order went live that would help me a lot.

  5. Ok thanks I will check it. StopLevel can be taken easily from broker, then just you should have the possibility to change extra level for safety.

    For error 130 you have to check your brokers Stops level and then enter the value at StopLevel like "StopLevel = 2.0" (which means Stops level is 20)

    Sometimes you have to set it 0.1 higher when it still shows error 130, but only on backtest.

  6. I have an EA here http://www.4shared.com/file/I2hrq0BW/EA_online.html

    It produces sometimes the failure "Unknown ticket for OrderModify" when trading live and blows the logfile in a few seconds to a huge size of 2GB.

     

    This does not happen using the same live account for backtesting.

    Maybe someone can help and correct it, that this "Unknown ticket for OrderModify" will no longer show up.

     

    I tried. No error message but no trades also. What timeframe and currency?

     

    OK, I did a bit of backtesting longer on M1 EURUSD. For me it gave the error 130 which means that stop orders wanted to be put too close to market price. will check later this week. It didnt even trade.

  7. @konorti I can't do that. It was made with an EA generator. Are you saying it doesn't open any orders ? But the error is quite clear- your broker doesnt support the lot size used. If no orders are opened at all it means for some weird reason your broker doesnt support 0.1 lots, if it does that after a few losses i have no clue what that means cause it should support 0.3 0.9 and 2.7 lot orders as well. Anyway it's clearly a problem with your broker. Ask them about supported lot sizes.

    for a server invalid trades size also if the lot is 0.100000 and not 0.1. This can be programmed easily. I dont know why one or the other server not accept it, but I would say it is easier to reprogram the EA than changing a broker. If you send the code in a PM I will do it

    And about the chart- it doesn't look like renko- looks like constant range bars- which for one thing means that if a bar closes in the other direction it will close with a 10/12 pip loss instead of 22 as it should, quite likely resulting in more losses in a row and blowing the account.

    I run the EA on the offline chart generated by RenkoLiveChart_v3.2.(no change in settings) Maybe it is not visible on the chart but the wicks are the ones that makes the bars overlaping.

    Other question:

    Why is there an algorhytm to open a second buy or sell trade after the first ones with different parameters than the original?

  8. it seems a system with some kind of trade size multiplication (similar to martingale but not double) and there are smaller hedging trades on the other sides. Do you have long term backtest (please post) as these types of EAs can go nicely for longer periods until a sharp move takes the account even if hedged with trades (smallest size in this case).

    http://img861.imageshack.us/img861/1624/screenshot20110610at084.png

  9. There is a problem with lot calculation:

    The history doesnt contain just 3 pieces 0.1 lot loss of sells. Can you please modify the EA so it sends in the error message what lot quantity was tried? I think in the Ordersend you should use Normalizedouble to 1 digit.

    Thanks

    http://img541.imageshack.us/img541/9881/screenshot20110610at074.png

  10. Hi SpacyTrader,

    I see that you are making this EA with quite a bit of enthusiasm. Can you please prepare some documentation (or just a screenshot in first post and a short description) how should it be used and do you have a trading history on demo with it, can you please post it?

    thanks,

    konorti

  11. Has anyone a setting that works reliably? I'm trying the different settings in bt using tickdata (post #1), both lead to margin call in January 2010, even with $100k and 0.1/0.2 lots starting. It goes up to 51.2 Lot (wow :-)

    There is no so-called reliable setting. Please read through the whole thread. Use it on mini account where 0.01/0.02 is a possible trade size. Even using that position size you have to check your account constantly and not trading during news when big spikes occur. Hence you cant do backtest with this version. It should be modified so you could switch on the close all/hibernate function from that chart (simple change in code so you can stop EA from chart and can backtest while visual testing (in mt4 not possible to open EA properties while backtesting), so you can shut down the EA while you see that there is a strong trend starting). But with current version no point to find settings which survives. This is a tool, not an EA.

  12. I share here 2 indicators I made. They are not perfect and not really supported by me as I dont use them. Still it maybe helpful for you.

     

    1st: 1 diagonal line on 2 bars' close value.

    2nd: 2 horizontal line (open of the 1st time corresponding bar, close of the 2nd time corresponding bar)

    it is packed in 1 zip:

    http://www.4shared.com/file/iLM-D9-p/line_indicators.html

     

     

    http://i54.tinypic.com/2r22lfs.png

    ---

    http://i55.tinypic.com/jh4llv.png

  13. Here is it! I had a little break and this seemed simple :) so I coded it for you.

    http://www.4shared.com/file/duWxI7fX/TO2CLS.html

     

    If the 2nd time is later than current time, it will calculate on previous day.

     

    Modified version:

    you can now change the properties of the line.

     

    Someone asked this:

    (2 horizontal line: 1st at an open of a bar, 2nd at a close of a bar, it can be the same bar)

    http://www.4shared.com/file/t4-EcKh5/OCHor.html

     

    Though I am not doing this for "Thanks", but if you like it, you are welcome to do it. Also if you use it someway I would really be happy if you share any knowledge with us. I dont use these indicators nor know anything about the system it was reffered to so I may not be interested to improve it (unless proof of long term live history). sorry.

×
×
  • Create New...