fxDreema

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

    Check trades count not working properly, allows too many trades with multiple charts open

    Questions & Answers
    2
    4
    1661
    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.
    • I
      Implosion last edited by

      Compare = ">";
      CompareCount = 3;
      GroupMode = "group";
      Group = "";
      MarketMode = "market";
      Market = CurrentSymbol();
      BuysOrSells = "both";
      LimitsOrStops = "both";
      Seems 'market' should equal 'all markets' if "any market" is specified in the logic block.

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

        Those are the default values. Each block was made by 1 class in the output code and some parameters are set in the constructor, but the values might be changed from the instance of the class - this is somewhere else in the code.

        So the problem might be something else.

        1 Reply Last reply Reply Quote 0
        • I
          Implosion last edited by

          How can you have Market = CurrentSymbol();
          When the logic block specifies Any Market?
          I suppose the most important point is: Does Any Market in this logic block mean "Any forex pair you have the EA running with the same magic number? If not can you provide an example?

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

            I already said that, but you are showing me piece of code that comes from the constructor of a class. These values are some initial values and they could be changed. The actual values are written in other place, for example:

            // Block 2 (Check trades count)
            class Block1: public MDL_CheckTradesCount<string,int,string,string,string,string,string,string>
            {
            
            	public: /* Constructor */
            	Block1() {
            		__block_number = 1;
            		__block_user_number = "2";
            		_beforeExecuteEnabled = true;
            		// Block input parameters
            		MarketMode = "all";
            	}
            
            	public: /* Callback & Run */
            	virtual void _callback_(int value) {
            	}
            
            	virtual void _beforeExecute_()
            	{
            		Market = CurrentSymbol();
            	}
            };
            

            Here you can see this: MarketMode = "all";

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

            Online Users

            H
            G

            9
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors