fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Is there a way to end the EA and start again ?

    Questions & Answers
    1
    2
    1062
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      guilhermecarva last edited by

      I am having trouble on the second cycle of the EA. The first cycle works fine and after the coditions are met all the orders are closed. But when the EA try to open the orders again and start reading all the conditions again it doesnt follow the rules because it reads the results of the fisrt cyles too.
      So I want to end the EA after all the ordes are closed and strat again right after as if I reattach the EA.
      Or tell me how can I erase the history order before strating the second cycle without using in loop controls.
      I am using Check last winner type, but it checks also the winners from the first cycle.

      1 Reply Last reply Reply Quote 0
      • G
        guilhermecarva last edited by

        Basically what I need is:

        1. open a buy and a sell with same size lot and TP (no SL)
        2. the first one that hits the target opens a Grid with negative grid size. (supose the sell hits the TP it opens a grid buying as the market goes down those buying are triggered increasing the size lot and the TP)
        3. open the same order of the first hit again (continue to open sell orders with same lot size and TP)
        4. When the first buy order (the last opened) hit the TP the EA close all orders and delete all pending.
        5. Start from number 1 again

        So the EA keep opening orders with the trend with same TP and size lot
        And opens opposite orders increasing the size lot and the TP (reversal grid)

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        H
        T
        S
        A
        S
        I
        H
        M
        D
        A

        15
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors