Page 3 of 19 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 181
  49 49 Attachment(s)    

Thread: Belkhayate Expert Advisor

  1. #21

    Default Template and EA Settings?

    Quote Originally Posted by dazrul View Post
    You are most welcome. You can still trade using TF 15M if you wish. I use both ~ 15M & 1H. But would only enter trade if both of them are agreed to each other. Most of the time I use 15M to monitor price action. I normally trade GBPUSD (demo a/c) when London is open. Since belkhayate seems promising as well as i-CAi, so I request both to be integrated. I am grateful to Funyoo on his efforts. Now it's time for us to find the right settings.
    Hi Dazrul,

    Now, I feel much clear about the EA and the filter. Will you attached the new filtered version of EA to 15M and/or 1H chart? Anyway, don't we have to attach the EA to a single chart if we allow the EA to open trades automatically?

    By the way, what template do you use? Do you have any recommendation for the EA settings? I am just starting out, so any suggestion/tip would be greatly appreciated. You seem to know much about the trading system and the EA.

    Thanks,

    Michael

  2. #22

    Default

    Quote Originally Posted by Michaelhryu View Post
    Hi Dazrul,

    Now, I feel much clear about the EA and the filter. Will you attached the new filtered version of EA to 15M and/or 1H chart? Anyway, don't we have to attach the EA to a single chart if we allow the EA to open trades automatically?

    By the way, what template do you use? Do you have any recommendation for the EA settings? I am just starting out, so any suggestion/tip would be greatly appreciated. You seem to know much about the trading system and the EA.

    Thanks,

    Michael
    Hi Michael,

    Since my favourite TF is 15M I would attach the EA to 15M chart -- so my TP & SL are 30pips. My intra day TP is 100~120pips & SL: 50~70pips (if TF is 1H).

    You need not to attach all the required indicators onto the chart, HOWEVER for this EA to be working please make sure that inside ~indicator~ folder the following files exist:
    CandleAverage_v3.ex4
    Center Of Gravity.ex4
    i-Cai.ex4
    Optional: Fibonacci Pivots.ex4

    Then the EA will be working for you like a robot. Since this EA is just developed it is advisable to demo it first. For time being I have yet to find a right settings since previous version is giving a break even.
    Attached Images Attached Images Belkhayate Expert Advisor-benkyalate-major-i-cai-jpg 

  3. #23

    Default A lot size question?

    Quote Originally Posted by funyoo View Post
    Upon the demand of dazrul, I have added a I-CAi 20 filter to the yast77 version.

    Thank you very much for your hard work!

    I am testing the new filtered version EA on my FXDD demo account. I noticed that a position with the lot size of 1.51 was opened although I set the lot size at 0.01. Will you please take a look at the code?

    Michael

  4. #24

    Default

    Michael,

    Please try to change the account type as follows:
    0: Standard account(NorthFinance,MiG,Alpari)
    1: Normal account(FXLQ,FXDD)
    2: InterbankFX's NANO Account

  5. #25

    Default Trade Size Function Disabled?

    Quote Originally Posted by dazrul View Post
    Michael,

    Please try to change the account type as follows:
    0: Standard account(NorthFinance,MiG,Alpari)
    1: Normal account(FXLQ,FXDD)
    2: InterbankFX's NANO Account
    Thanks you, dazrul!

    In fact, I set the account type as 1 (FXDD). FYI, the message on the top left hand corner reads, "lots = 1.51" when running the EA although your screen shot displays "lots=0.1". I suspet that the lot size function on my chart is diabled for some reason.

    Michael

  6. #26

    Default

    Quote Originally Posted by Michaelhryu View Post
    Thanks you, dazrul!

    In fact, I set the account type as 1 (FXDD). FYI, the message on the top left hand corner reads, "lots = 1.51" when running the EA although your screen shot displays "lots=0.1". I suspet that the lot size function on my chart is diabled for some reason.

    Michael

    I've read the following at 6 Digit Forex Quotes and MetaTrader Expert Advisors — Forex Blog

    Many Forex brokers have started to offer 6 digit Forex quotes to via the MetaTrader 4 terminal recently. It has a lot of benefits for the scalping traders and opens up many new trading possibilities for others. But there seems to be a problem with almost all expert advisors that are applied to the MetaTrader 4 platform, which uses 6 digit Forex quotes instead of the more conventional 5 digit format. As the most expert advisors use the "Point" variable for pips to denominate stop-loss and take-profit, there are two major problems with the 6 digit quotes. First, both stop-loss and take-profit values have very strong chances to come to close to the current pair’s price and MT4 will generate an Error 130, if they are to close. Second, the whole strategy embedded into the given EA will stop working properly because all the profits and losses will probably be divided by 10.

    Let’s look at the following example. With a 5 digit quote EUR/USD rate is 1.5703 and one Point in MetaTrader 4 is 0.0001 — a conventional pip for EUR/USD pair. Our expert advisor buys EUR/USD, setting stop-loss at 20 pips — 1.5683, and take profit at 40 pips — 1.5743. Everything goes fine and we win 40 pips when the rate reaches 1.5743. But for a 6 digit quote things are completely different. E.g. the rate above might have been 1.57032 and one Point in your MT4 would have been 0.00001 — ten times less than the conventional pip for EUR/USD. The same expert advisor would have set the stop-loss at 1.57012 and take-profit at 1.57072. Not only 99% of the brokers wouldn’t allow such a close stop-loss and take-profit setting, but if allowed this position wouldn’t be very rational and of course it wouldn’t be according to the initial strategy rules.

    So how to correct this problem without completely rewriting the expert advisor and, of course, without changing a broker (to one with the 5 digit quotes)? First, I’d like to tell you that all MetaTrader expert advisors that are featured on my site have been already modified to work with both 5 and 6 digit quotes. Second, here is the way to make any EA to work properly with 6 digit quotes:

    1. Open the .mq4 of the expert advisor that you want to change in MQL Editor.
    2. Add a new global variable declaration (it should be in the beginning of the code, along with other variable declarations):
    double Poin;
    3. Add the following code to the init() function of the EA. This function is usually present in all EAs (it contains various initialization routines), but if it’s not there, create it and include this code:
    //Checking for unconventional Point digits number
    if (Point == 0.00001) Poin = 0.0001; //6 digits
    else if (Point == 0.001) Poin = 0.01; //3 digits (for Yen based pairs)
    else Poin = Point; //Normal
    4. Replace all further occurrences of "Point„ in the code with “Poin„ (except those in the init() function). This will change the system MT4 variable “Point„ to our declared variable “Poin", which now contains the standard 5 digit pip value.
    5. That’s all. Compile it and you are ready to run it on the 6 digit quotes in MetaTrader. Of course, it will still work with standard 5 digit quotes too.

    p/s. Hopefully it can give you some ideas otherwise we still have to seek help from funyoo or yast77.

  7. #27

    Default

    Attached is the example file.
    Attached Files Attached Files

  8. #28

    Default Money Management Setting

    Quote Originally Posted by dazrul View Post
    Attached is the example file.
    Thanks a million!

    I solved the problem. It was “Money Management”. I should’ve set it to “false” instead of default value “true”.

    Once again, I do appreciate you for the detailed explanation. I was much impressed by your expertise on the EA programming as well as Forex trading in general. I feel, while reading your post, as if I were sitting in a computer science class of some sort. I wish I could understand half of what you wrote.

    Best Regards,

    Michael

  9. #29

    Default

    Quote Originally Posted by Michaelhryu View Post
    Thanks a million!

    I solved the problem. It was “Money Management”. I should’ve set it to “false” instead of default value “true”.

    Once again, I do appreciate you for the detailed explanation. I was much impressed by your expertise on the EA programming as well as Forex trading in general. I feel, while reading your post, as if I were sitting in a computer science class of some sort. I wish I could understand half of what you wrote.

    Best Regards,

    Michael
    Glad that you managed to find the solution. It is useful information for me as well.

    I am learning too as I am not a programmer. I acquire knowledge by sharing information that I have, in turn I get some new knowledge from others. Hopefully we could further fine tune this EA.

    Regards
    Dazrul

  10. #30

    Default Setting up the EA (as recommended by Yast77)

    Excerpt from Forex Factory - View Single Post - my own developed benkyalate system
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Question:
    I trade on 4h timeframe, i must change this : extern int COG_Period = 0; // current timeframe ---- "extern int COG_Period = 4"
    I use oan template, i must change this : extern int m_cog1 = 4; //change with the template you are using. ---- What is the number for oan template?

    Answer:
    COG_Period=0 mean current timeframe, Oan template is for top and bottom dotted line, value is same, you can right click on the line, and then check the value.
    extern int COG_Period = 0;
    extern int bars_back1 = 120; //top dotted line value
    extern int m_cog1 = 4;
    extern int i_cog1 = 0;
    extern double kstd1 = 2.4;
    extern int sName1 = 720;


    extern int bars_back2 = 120; //top solid line value
    extern int m_cog2 = 4;
    extern int i_cog2 = 0;
    extern double kstd2 = 3.4;
    extern int sName2 = 720;


    extern int bars_back3 = 120; //bottom dotted line value
    extern int m_cog3 = 4;
    extern int i_cog3 = 0;
    extern double kstd3 = 2.4;
    extern int sName3 = 720;


    extern int bars_back4 = 120; //bottom solid line value
    extern int m_cog4 = 4;
    extern int i_cog4 = 0;
    extern double kstd4 = 3.4;
    extern int sName4 = 720;

    And this EA is purposely make by my own use, so use at your own risk.
    Regards,

    Yast77
    ~~~~~~~~~~~~~~~~~~~~~~

    Best regards
    Dazrul

Similar Threads

  1. The BEST Expert Advisor on the market, WallStreet Expert Advisor
    By Jacob Godly in forum Commercial expert advisors
    Replies: 0
    Last Post: 03-21-2013, 13:05
  2. Enable/Disable Expert advisor Button By Expert advsior
    By Trint in forum Ideas for expert advisors
    Replies: 1
    Last Post: 10-18-2010, 10:41
  3. Expert Advisor
    By cesarz18 in forum Ideas for expert advisors
    Replies: 0
    Last Post: 09-17-2009, 16:51
  4. Belkhayate Expert Advisor
    By fxtester in forum Expert advisors live statements
    Replies: 1
    Last Post: 06-18-2009, 21:32
  5. i-CAi Expert Advisor
    By funyoo in forum Expert advisors live statements
    Replies: 1
    Last Post: 12-02-2008, 10:58

Tags for this Thread

100, add, advisor, alpari, analysis, average, backtest, backtesting, bands, broker, brokers, candle, change, channel, check it out, closing, coding, color, currency pairs, custom indicator, demo, ea programming, ea works, eas, elite, eur, eur/usd, eurusd, ex4, expert, expert advisor, expert advisors, experts, fibonacci, forex, forex blog, forex brokers, forex trading, free, free ea, gbpjpy, gbpusd, gold, hedge, high, historical, how to, index, indicator, indicators, live, low, macd, magic, magic number, managed, martingale, metatrader, metatrader4, mq4, mql, mt4, news, offer, price action, profit, profitable, programmer, programming, real, repaint, request, review, robot, rsi, scalping, sells, short term, signal, signals, simple, sma, stop, stoploss, strategy, study, support, system, test, thank you, time, trader, trading, trading system, trend, usd

Posting Permissions

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