fxDreema

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

    Memory stuff

    Questions & Answers
    2
    23
    5012
    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.
    • E
      edwardseer last edited by

      the on trade event is to count the current closed trade when the trade closed. because the order of the history does not necessarily run in series tats y i had to use once it closed this trade i add this current profit/loss into a variable to not mix it up with the other trades thats running.
      ya i would think there is a simpler way but its like if buy -> hedge -/-> recovery i dun want it to run the 3rd stage whenever the 2nd stage has been run before.
      thanks for your help. i will try to think of how to make it work using trades.
      yes i initially doubted hedge and without it everything is simple but my partner wanted it adamantly so i decided to go along with it and see how it goes but it turned out to be working well so far.

      1 Reply Last reply Reply Quote 0
      • E
        edwardseer last edited by

        if i only want "for each trade" to loop through in order group 1 trades buy and group 4 sell, how do i go about doing it?
        also how do i put the condition for magic number as variable inside, u mentioned is magic start+group. but where do i get the variable for magic start or i can just type in magicstart or something.
        i want it to loop through the past group1 buy and group 4 sell in chronological order and count the number of trades before it reaches a group1 buy
        something like "for each trade" -> condition current trade magic number = magicstart+1 -> true -> break false-> nbuytrade=nbuytrade+1

        1 Reply Last reply Reply Quote 0
        • E
          edwardseer last edited by

          converted them to use comments instead to determine what i want to find. hopefully when i test it out when market start it works as what i wanted it to haha.
          also is there a way to display flag status in comments then i can remove more variables from the ea?

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            Flags are similar to Variables. You can't display their state and I don't remember even thinking about this, but this is a good idea. Where to print such information is another question 🙂 You can try this "Change Status to" thing that each block has.

            Yes, in "For each Trade" you can put multiple Group numbers, separated with comma, like this "1,2,3". This also works for market names.

            If you use the Comment attributes of trades, note that if you have SL or TP and the trade is closed by SL or TP, some information can be appended to the comment by the broker. For example [sl] or [tp].

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

            Online Users

            Z
            T
            B
            A
            P

            11
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors