Candle Based EA
Page 1 of 733 123 LastLast
Results 1 to 10 of 329

Thread: Candle Based EA

  1. #1
    Enter Long when:
    Current price is Greater than Preceding candle's Top

    Enter Short when:
    Current price is lower Compared to Preceding candle's Reduced

    Exit:
    a) Trailing Stop Loss
    b) Signal in Reverse Way

    TF:
    Higher the Greater. Daily functions best.

    This is actually simple notion, though seems to be rather profitable. There are some major drawdowns, and intervals when this system functions better and other when it runs. I'm searching for an idea to filter some MM rule, or maybe periods. I already tried Grid orders, Stochastic and MA all with lots of distinct inputs. Despite my tries the version works best. Attached you have an EA which you need to compile prior to testing. Except for unprofessional code design, but I do not consider myself professional developer.

    INPUTS:
    TrailingSL = 200; // Trailing Stop Loss set by default to 200 pips (5digit broker)
    BE = true; // Transfer Trailing Stop Loss to Break Even
    DynamicLot = true; // Increases Lot value proportionally to raise account balance
    LOT = 0.01; // Disregard if DynamicLot = true; Set on whatever you want if false.
    SL = 200; // I guess it is apparent,
    TP = 2000; // and this one also

    Have fun and let me know what do you think.
    https://www.forexsoutheast.asia/atta...3340367507.mq4

  2. #2
    I setup this for # 5 min candle however obtained OrderSend error 130
    Quote Originally Posted by ;
    extern double TrailingSL = two;
    extern bool BE = true;
    extern bool DynamicLot = true;

    static datetime new_time = 0;

    extern double LOT = 0.01;
    extern int SL = 5;
    extern int TP = 5;
    Can you check?

  3. #3
    I did put it up the same as you and it works. The difference is I have 5 digit broker and I did put it up the next manner:
    TS: 20 which means 0.00020
    SL: 50 which means 0.00050
    TP: 50 which means 0.00050
    but if you're confident that you have 4 digit broker I don't think it is the situation.

    The problem may lie in accountBalance function based on how small deposit you've set. Try to disable it. Perhaps there's also limitation to your Lot worth, and you broker does not use 0.01 lot increments. It may all depend on where did you get your MT4 from.

    Also placing SL to 5 pips does not operate that much. Together with the very first tick after this order is openned it's going to decrease to two pips because of TS. Try to Boost TS.

    I attempted many different Time lapse, and the higher it is the better it works. I have not found any profitable settings which could work on M5.

    Let me know if it was of any help

  4. #4
    I believe that your default settings is good, I tested with 1 lot dimensions to comprehend maximum utilization. . !!!

    What you believe alter Dynamic Lot to Martingale increment in 1 2 3 4 5 6 7 8 9 ... ?

    Lot increase just when loss, until profit trade happen, because more than 50 percent is win ratio.


  5. #5
    Quote Originally Posted by ;
    [font=Verdana][color=Navy]Input Long when:
    Current price is Greater than Preceding candle's high

    Input Short when:
    Current price is lower Compared to Preceding candle's low

    Exit:
    a) Trailing Stop Loss
    b) Signal in Reverse Way

    TF:
    Higher the better. Daily works.

    This is really simple notion, though appears to be rather profitable. There are some major drawdowns, and intervals when this system functions better and other when it runs. I'm searching for an idea to filter shedding periods, or perhaps...
    this one keeps giving me ordersend error1, ordermodify mistake 130 in back test..did u experience it ??

  6. #6
    Quote Originally Posted by ;
    this one keeps giving me ordersend error1, ordermodify mistake 130 in back test..did u experience it ??
    I am getting exactly the same thing too.

  7. #7
    Quote Originally Posted by ;
    I am getting the identical thing too.
    I thik this man is not busy in this thread..w8ing for his reply

  8. #8
    Sorry I've been busy with Christmas and household lately.

    I changed something in the code. When DynamicLot was set to true it calculated the worth. It didn't have to be although it may have been the case. I never got any issues as MT seemed to fix the lot worth to usable level itself.

    Recorded here you have another variant together with Alerts that will show up from the Journal so you will see exactly what parameters of the order are wrong. Error 130 doesn't explain much.

    Let me understand what it shows you.
    https://www.forexsoutheast.asia/atta...1845728174.mq4

  9. #9
    Quote Originally Posted by ;
    [color=Navy]Sorry I've been busy with Christmas and household lately.

    I changed something in the code. When DynamicLot was set to true it calculated that the value in over two decimal places. It may have been the case but it did not need to be. I never got any problems like this as MT appeared to fix the lot value to usable amount itself.

    Anyways here you have another version together with Alerts that will appear in the Journal so that you will see what parameters of the order are mistaken. Error 130 doesn't explain much.

    Allow me to understand what it...
    Thank you casper c.. Post the results.

  10. #10
    Leandar, I'm not a big fan of martingale though some systems seem to be profitable with appropriate settings, they never worked for me. The best thing onforexsoutheast.asiaI have ever attempted was mGridEA. I didn't have enough time to follow the tread but I made some modifiions on my own and they didn't turn out profitable at a long term. Maybe it wouldn't be a bad idea to take a look on how the tread created. I will do my best to code your idea to CandleBased this weekend. It is worth checking how it may alter the outcome.

    Daily bars work best on the backtests but I'd love to lower the time to H4 or maybe H1. I used to perform 2-3 times greater than the pip gap between day's open and shut on a daily bases when I traded manually. My lack of time to exchange contributed to growing inconsistent egy which then resulted in huge drawdowns, so that I ended up doing EAs. Anyways I think reduced the time more pips to harvest. What do you believe?

    I had been on a train two weeks ago watching electric lines in the backdrop. Divergence between them revealed precise moments before all of them began to move up before hitting the rods. (Does divergence work in nature too?) It made me realise that one of the most effective tools to prepare for powerful turnaround movements is Divergence on RSI. I'm not sure yet how to code this item but I know that it's possible. What do you believe about it? I looked in the charts and it seems it may work even on reduced TFs together with CandleBased.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.