Search results

  1. U

    money management and lotoptimize

    Yes,without pending orders,but I am an newbie,don't know the detail about you say in #10.Show the process would more appreciation!:)
  2. U

    money management and lotoptimize

    How to get the balance or accountfreemargin before the lastest trade happend.I wanna compare the lastest accountfreemargin with the previous one's value,that could help me confirm lot.
  3. U

    money management and lotoptimize

    TKS! Initial balance I mean is the deposit money of account.Whether array could be used for it or not?e.g. array[0] stands the lastest balance,array[n-1] stands the initial balance, or array[1] stands balance before the lastest trade happend.This is only a hypothesis,actually,I hardly know array...
  4. U

    money management and lotoptimize

    Fixed fractional risk method is my target,but if couldn't get the initial balance value,this is impossible to achieve.Are you sure only" set it manually "this way? TKS!
  5. U

    money management and lotoptimize

    yes,I mean the initial balance,but problem now is I don't know how to describe the initial balace(also means:how to get this value?)
  6. U

    money management and lotoptimize

    I try to use these code to manage my money,but an problem is I don't know how to descirbe my initital money(priniciple) .my method is cotrol lot :use priniciple 's maximumrisk+3 times about of profit(or loss)'s maximunrisk as lot,it profit>0,it will enlarge,otherwise,the vise. double...
  7. U

    why add position's strategy is fail?

    the whole code is the same as the add.mq4 attchment here are some new parts. the core question is the open order and TS order couldn't take effects when meets codition,all of them only run after close one order under "CalculateCurrentOrders(Symbol())<2" but...
  8. U

    why add position's strategy is fail?

    Hi gurus here,my ea couldn't add position correctly,before it run add positon's code, it would close the former order, //here is my sell condition if (m1<m3-0.00005) { ticket1=OrderSend(Symbol(),OP_SELL,1,Bid,5,Ask+1050*Point,0,"SELL#1",MAGICMA,0,Red);return; /*it will open...
  9. U

    profitable ea couldn't increase position pls gurus point out method.

    Z-score seems too complex for me,simple strategy is more suitable. Theoretically speaking, each order is divided,it will not influence the next order and shouldnot be affected by the previous one.so,I am thinking whether modify the lossing strategy or not.
  10. U

    decrease factor's algorithm

    is modify like this? if(CalculateCurrentOrders(Symbol())<1&&(m1<m3-0.0003)) {ticket1=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,5,Ask+105*Point,0,"SELL#1",MAGICMA,0,Red); return; } if(CalculateCurrentOrders(Symbol())<2&&(m1<m4-0.0005))...
  11. U

    profitable ea couldn't increase position pls gurus point out method.

    It's great! Now it could run follow my intent.:) However,I also found another problem about position cotrol. You see,like my code it will largen position after profiting,otherwise, the vice. It could make two bad results:1,after continuous profit, the first lossing order's position would be...
  12. U

    decrease factor's algorithm

    no error,no warning. It seems this is connected with the code if(CalculateCurrentOrders(Symbol())<1) when it is modified with“<2”,TS() could takes effect(sorry,not make effect ). however,under "<2" ,I found the the first open condition as follow: if (m1<m3-0.0003) {...
  13. U

    decrease factor's algorithm

    TKS! another problem:I wanna add Trailing stop for my code as follow: void TS(double ts=550) { bool res = false; int total = OrdersTotal(); for(int i = 0;i<total;i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) ==false) continue; if(OrderSymbol()==Symbol() &&...
  14. U

    decrease factor's algorithm

    I am sure running the newer version.sickeningly,I even got different result by different Version of MT4,but all of them are wrong. Enviod,I am appreciating for show your MT4's downloading address.
  15. U

    decrease factor's algorithm

    unconsciously, I found just the model will affect order's lots. using the add.mq4,all other factors are same,(eurusd, m5 ,01.01.2011-26.03.2011)but under each tick model, the log's 77-78 line will get as the attachment.(lot is 2.1) gurus can contrast the openprice model 's report I attached in...
  16. U

    decrease factor's algorithm

    thank you for your help to show the cycle correctly,but now when I backtracking EURUSD on 01.01.2011-03.26.2011 M5 the starting balance is 50,000 by add.mq4,it produce some results amazing me again. I modified the decrease factor=3,and if(losses>=1)...
  17. U

    profitable ea couldn't increase position pls gurus point out method.

    on eurusd (01.1.2011-03.26.2011 M5) openprice model, you can try it,would open 6 orders on Jan 4 15:30-16:05 and 20 orders on Jan 14 12:20-14:20 ^^^
  18. U

    profitable ea couldn't increase position pls gurus point out method.

    2. Modify it like this: if (CalculateCurrentOrders(Symbol())<2) CheckForOpen(); This way it will open only 2 positions max. I modify it as the 2 method,but I found it would open several orders during Jan/3/ 2011 and other time on EUR/USD,I don't know why. :mad:
  19. U

    decrease factor's algorithm

    the trade log is produced by DecreaseFactor=10,and the starting balance is 50,000. lot=NormalizeDouble(AccountFreeMargin()*MaximumRis k/500.0,1); My question I have listed in 3# tks!
  20. U

    decrease factor's algorithm

    I have attached the modifycc.mq4 in here http://www.earnforex.com/forum/f13/profitable-ea-couldnt-increase-position-pls-gurus-point-out-method-6631/ just the same file. TKS!:p