Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing the inputs in the menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing the inputs in the menu

    Hi,

    I have a strategy with a few inputs, which are the position entry prices. Depending on market conditions I change them before starting the strategy. In the basic script in strategy builder the inputs are fixed on exact meanings.
    Click image for larger version

Name:	Screenshot_2.jpg
Views:	227
Size:	55.0 KB
ID:	1084956
    And as I see on the test chart - it works. There are trade markers as you may see.

    Click image for larger version

Name:	Screenshot_1.jpg
Views:	234
Size:	131.7 KB
ID:	1084955
    But if I change the inputs in the start menu (without reprogramming the script in the builder itself) - the new prices do not work. However, the logic of the strategy remains same.

    Click image for larger version

Name:	Screenshot_3.jpg
Views:	270
Size:	97.0 KB
ID:	1084957

    Maybe, because there are commas, but script can read dots... Maybe some other reasons? What may be the problem?

    #2
    Hello Aporshnev,

    Thanks for your post.

    If your strategy is working with the defaults that appear to be set with commas I would expect new values to be treated the same.

    Can you post a screenshot of where the inputs are used in the condition builder?

    Comment


      #3
      Here you go: Set1; Set2; Set3 a so on...

      Click image for larger version

Name:	Screenshot_1.jpg
Views:	209
Size:	77.4 KB
ID:	1084983

      Click image for larger version

Name:	Screenshot_2.jpg
Views:	218
Size:	78.7 KB
ID:	1084984

      Click image for larger version

Name:	Screenshot_3.jpg
Views:	221
Size:	78.7 KB
ID:	1084985

      Comment


        #4
        The logic is associated with the price graterEqual of UserInput wich I call "LEVEL"

        Click image for larger version

Name:	Screenshot_4.jpg
Views:	259
Size:	64.3 KB
ID:	1084989

        Click image for larger version

Name:	Screenshot_5.jpg
Views:	225
Size:	101.5 KB
ID:	1084990

        Comment


          #5
          Hello Aporshnev,

          Thanks for your reply.

          I don't see anything obvious in your conditions that would be an issue.

          What I suggest at this point would be to have the strategy builder print out what values it is working with.

          I've attached a short video that shows a process of building a print statement for debugging purposes. In your case I would suggest printing out the various inputs to see if they match your defaults and then to see that they match when you input the new values.


          Comment


            #6
            Paul, Thnx for the video. It appears that given the logic GreterEqual, I need to place my price levels ascending if I play short, so that the first level should be the closest to the market. If the inputs scheduled descending, then script is confused and doesn`t work...


            Click image for larger version

Name:	Screenshot_1.jpg
Views:	210
Size:	198.2 KB
ID:	1085133
            Click image for larger version

Name:	Screenshot_2.jpg
Views:	240
Size:	112.9 KB
ID:	1085134

            Click image for larger version

Name:	Screenshot_3.jpg
Views:	205
Size:	166.7 KB
ID:	1085135

            Click image for larger version

Name:	Screenshot_4.jpg
Views:	260
Size:	127.2 KB
ID:	1085136

            Comment


              #7
              Depends on what you are doing. Anything being triggered on multiple conditions that should be greater than some values, must be evaluated from the highest to the lowest. That is the only way mathematically and logically that you can ensure that the conditions fall through to lower values. Conversely, conditions triggered by something being lower than values must be evaluated from the lowest to the highest. Keyword: MUST.

              Comment


                #8
                Hello Aporshnev,

                Thanks for your post.

                I agree with member Koganam's reply in post #7.

                The order/sequence must be coded relative to the direction.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                50 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                126 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                69 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                42 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X