Please help with an EA that can trade on H4 candle
Page 1 of 842 12 LastLast
Results 1 to 10 of 12

Thread: Please help with an EA that can trade on H4 candle

  1. #1
    I need a your help to build easy EA that open a transaction on each H4 candle.
    Conditions: if H4 candle opens:
    When it moves up 7 pip from open price Set the buy order
    When it extends down -7 pip from open price Set the sell order
    And shut the transaction when H4 candle is shut either can it be in loss or profit
    And start again trade using new H4 candle using same conditions

    If possible could be add 2 more choices
    1-Time to trade start and end hours
    2-TP SL

    I'll Be great full to all you

    Thanks And Regards,
    Moti

  2. #2
    Quote Originally Posted by ;
    document
    Hello leastchaos,

    Thank you for your aid to coding my EA as requested. Could I ask you to include two more things please?

    Firstly, my input has been fixed --7 or 7 pip from starting H4 price. Can you make it feasible so that I can change these two inputs separately?

    Secondly, after implementing I thought could it operate for H1 candle as well? Or it could prepare for all time.

    And lastly, could you ease the origin file MQL4 so newbie like me can learn the coding.

    I have attached the EA as you see and following H4 candle will start at a two hours. I will confirm you the outcomes.

    Thanks and Regards,
    Moti


  3. #3
    I added the additional from the function to alter pips and interval.
    Magicstart is a magic no. for ea. you can google it.
    Time end should be 1min before time start for 24 hour ie time start 00:00 timeend 23:59
    https://www.forexforum.co.za/attachm...7660966803.ex4

  4. #4
    Quote Originally Posted by ;
    I added the added in the function to alter pips and interval. Magicstart is a magical no. for ea. you can google it. Time finish should be 1min before time begin for 24 hour ie time begin 00:00 timeend 23:59 file
    Hello leastchaos, I am grateful to you for your time and earning the EA, I attempted I'm working perfect now I am reading my opening #post1 at which I stated (And shut the trade when H4 candle is shut is it in reduction or profit ) within my #post3 once I ask to make a potion so that I can alter the (my input is fixed #8211;7 or 7 pip from opening H4 price. Could you make it feasible so that I can change both of these inputs separately?)

    I forgot about my #post1 now when I use the SL TP when it doesn't reach in time period open candle whilst candle shut it shut the trade as it had been request

    Please can you create it possible?
    1-if I put SL TP to 0 so close the trade when candle is shut either is it in reduction or profit
    2-if I use SL TP like grater than 0 state SL 1 TP 5 and when condition doesn't match live the trade open even candle closes and continue to start alongside trade with new open candle on set pips
    And put on the SL and TP according to inputs

    Sorry to treble you again and again

    And lastly, could you facilitate the origin file MQL4 so newbie like me can find out the coding.

    Thank You

    Regards,
    Moti


  5. #5
    1-if I put SL TP to 0 so close the trade when candle is shut either is it in reduction or profit I believe the ea is already doing this?
    2-if I utilize SL TP for example grater than 0 say SL 1 TP 5 and also when condition does not match live the commerce open even candle closes and continue to start alongside commerce with new open candle on place pips.

    Not sure if that is what you meant
    https://www.forexforum.co.za/attachm...1998019116.ex4

  6. #6
    Quote Originally Posted by ;
    1-if I put SL TP to 0 close the transaction when candle is shut either is it in loss or profit I think the ea is currently doing this? 2-if I utilize SL TP for example grater than 0 say SL 1 TP 5 and when condition does not match live the trade open even candle closes and keep to start alongside trade with new open candle on set pips. Not certain if this is exactly what you meant file
    Hi leastchaos, last EA is not functioning as it should, Better I describe it to prevent confutations due to various changes in petition by me.

    1- EA should work on all time period
    two - Time to exchange start and finish hours
    3-TP SL input option
    4- Lot size input option
    5- Positive Pips disadvantage Pips input option
    I assume all these options you already have made in the EA

    EA Functionality:
    As an example: when Pip Positive Are Set to=7 Pip Negative Are Set to =7

    In this case:
    If new open candle goes 7 pips from the available price EA must open Buy Trade
    If new open candle extends -7 pips from the available price EA must open Sell Trade

    Trade closing Requirements: depending on TP or SL

    Trade Closing Condition 1-Now suppose If TP OR SL input are Set to”0” zero these preceding trade either Buy Or Sell must shut in the time of current candle sticks (does not matter instead trade is winning or in the shedding positions)

    Trade Closing Condition 2- Today suppose If TP OR SL input are Set to”gt; 0” grater than zero in this case Condition 1 to be discounted (I mean to say if SL OR TP is not HIT should not shut the open trades either Buy Or Sell and if following new candle shaped open the new trade According to rules and reside the open trade before hit on the TP OR SL ) and this manner continue the cycle...


    Hope that makes better

    Thank You

    Regards,
    Moti

  7. #7
    made a mistake with one of the conditions. I have not try this out
    https://www.forexforum.co.za/attachm...1458568767.ex4

  8. #8
    Quote Originally Posted by ;
    made a mistake with one of the ailments. I haven't test this out file
    Hello leastchaos, Please would you check - Pips aren't resulting as per inputs and results image are connected

    Thank you for your help

    Regards,
    Moti


  9. #9
    isnt this what is doing? Some brokers dun allow hedge so that you wont be able to sell if u have a buy order opened

  10. #10
    Quote Originally Posted by ;
    isnt this what is doing? Some brokers dun allow hedge so you wont be able to sell if u have a buy order started picture
    Thank you leastchaos, for the kind help I am testing on demo account my be you are right isn't allowing me hedge, any way I'll check all the way maybe thoroughly And will report you by next week.

    Have a fantastic afternoon

    Regards,
    Moti

    Edit: Please would you inform me what exactly are these inputs ? And also how to use them.

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.