Page 6 of 14 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 138
  54 54 Attachment(s)    

Thread: Stat_Euclidean_Metric

  1. #51
    Junior Member RMteam's Avatar
    Join Date
    Feb 2009
    Posts
    15

    Default

    Quote Originally Posted by funyoo View Post
    Try these files.
    i`ll try this EA now...

  2. #52
    EDWINHPR
    Guest

    Default this guy is a cheat

    Quote Originally Posted by q8m2002 View Post
    hi
    ineed good ea to use in live account
    He takes EA form the Public and sells them for a price

  3. #53
    Junior Member
    Join Date
    Jan 2009
    Posts
    2

    Default

    Quote Originally Posted by kengen View Post
    Do this if you get this error:

    ArrayInitialize function internal error

    You can eliminate this error by copying the *.dat files into the tester/files/ folder.

    Hope this helps
    Hi, could you upload the .dat? Thanks.

  4. #54

    Default

    Will you please explain what you mean by basic martingale? My version of it is that it doubles after each loss until a win then it starts over...That should be easy enough to code...

    ES


    Quote Originally Posted by funyoo View Post
    It's maybe the martingale. It is not a basic one.

    I have searched several time on the web for the perfect martingale function, but most of the codes use the same logics which are also not basic martingale.

  5. #55
    Member
    Join Date
    Jan 2009
    Location
    Austria
    Posts
    325

    Default

    Quote Originally Posted by ElectricSavant View Post
    Will you please explain what you mean by basic martingale? My version of it is that it doubles after each loss until a win then it starts over...That should be easy enough to code...

    ES
    Yes ES this is the basic martingale version.

    Martingale Extensions, examples:
    - SL on each order, which closes the previous loss order in a sequence . advantages are: less equity, less loss when the sequence fails overall, free money available for more trades
    - quarter buy/sells: example: we have a 1000 pips average range in a year on a pair, if we are current in the quarter 0-250 we only buy (strong buy area, bottom quarter)1 lot, if we in quarter 250-500 we buy (medium bottom buy area)0.5 lots (reduce risk), if we current in the 500-750 area we sell (medium top sell area) 0.5 lots (reduced risk), if we are in the 750-1000 are we sell only with 1 lots (strong sell, top area) - currently mostly buy today
    - half way back: no SL used, after the last trade was a win, we close in profit the win trade, but leave the current loss trades further open, if we hit the next trade in sequence (was the win trade), we open the next trade at the same level as the opened win trade
    - ranging or trending: if we range, we modify the sequence to max trades (5 example, to get not wiped out) and set the SL closer, if we are trending we set the SL wider to max trades 7...
    - parachute martingale trading: if one pair has the max trades (example: 7)limit reached, no one other pair can open a 7th trade in a sequence till the first 7th trade was closed
    - martingale break even: complete in a squence, or per trade (see half way back)
    - stop trading after sequence j/n

    Well i think all this extensions are minimum needed for an advanced martingale.
    Please note: the original martingale was calculated for the red and black fields on the roulette floor!!!! If you play martingale on rows, quarters on roulette, you MUST re-calculate your risk/reward ratio. The same in forex.

    Roulette example
    If you play on red or on black, on 1st row and 2nd quarter combined with a color (red or black) - if loss, take the same color and the 3rd quarter, if loss, take same color and/or 2nd row and 1st quarter (douzen), double always only the rows or quarters! and you will win at the 5th sequence to get break even, if you win at 4th you are a winner - european roulette! (one zero,2.7% advantage for the bank) us roulette (00 double zero, 5,25 advantage for the bank = recalculate) Hazardous is betting only corner bets (4 numbers) which pays 8:1, rows (6 numbers) pays 5:1
    If you play martingale on roulette, the casino security will you hit shortly :-)

    So, basic martingale is simple to code, but with extensions (advanced martingale) not.

    Maybe I have given some suggestions. These are my personal 2 cents! Check your preffered trading style to fit your personal martingale

    regards

    IX
    Last edited by ixbone; 02-17-2009 at 00:34.

  6. #56
    Junior Member
    Join Date
    Jan 2009
    Posts
    19

    Default

    Nice post!

  7. #57
    Junior Member
    Join Date
    Feb 2009
    Posts
    25

    Default

    Thanks funyoo for sharing this EA


    billsechen has a backtest I think there's an error in the backtest
    I tried to put this code into the EA in this place (the code has a red color)

    Code:
        else OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+sl*Point,Bid-tp*Point);}
             if(inverse_position_open_? && Prob_win<=invers_sell_threshold){
             if(HiddenSLTP)OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0);
             else OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-sl*Point,Ask+tp*Point);}
          }
          Prob_win=Euclidean_Metric(base_buy,veٌtor,numbers_of_vectors_buy);
              Alert(Prob_win );
         
          if(MACD_3>=MACD_2 && MACD_2<MACD_1)
          {
             if(close_orders)Close_All_Orders();
    I find Prob_win =0 in the backtest and equal value when I test it on Demo
    The condition of buy and sell depend on Prob_win
    so there's an error happen when I try this EA on the backtest
    May someone give me his opinion about this?
    Quote Originally Posted by billsechen View Post
    this is my result.Thank you.

  8. #58
    Junior Member
    Join Date
    Feb 2009
    Posts
    25

    Default

    Now I understood in the first backtest base=true ,second backtest , base =false
    the result is better now
    Thank u very much about this EA

  9. #59

    Default

    i have known about this ea,in pratically,this ea is no profit,it's a loss ea.

  10. #60
    Junior Member
    Join Date
    Mar 2009
    Posts
    15

    Default

    When I try to back test, only the default settings work, which drains the account to nothing. Every .set file I have tried posted on this forum gives me either error 4501 or error 130. I have put the .dat files in the tester/files section, as well as the experts/files.

Similar Threads

  1. Stat_Euclidean_Metric
    By funyoo in forum Expert advisors live statements
    Replies: 2
    Last Post: 01-31-2009, 19:22

Tags for this Thread

100, 2011, advisor, adx, alpari, alpari uk, average, backtest, backtesting, breakout, broker, brokers, change, channel, check it out, closing, coding, color, copy, demo, donchian, ea works, eas, eurusd, ex4, expert, expert advisor, experts, forex, free, fxopen, gbpjpy, gbpusd, hedge, hedging, historical, how to, indicator, indicators, learn, live, live account, macd, magic, magic number, manual, martingale, metatrader, mq4, mql, mql4, mt4, offer, online, ordersend error 4051, profit, profitable, programmer, programming, real, request, robot, security, sells, server, signals, simple, step by step, stop, stoploss, strategy, system, systems, test, thank you, time, trader, trading, trailing, training, trend

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •