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:	232
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:	239
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:	274
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:	214
Size:	77.4 KB
ID:	1084983

      Click image for larger version

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

      Click image for larger version

Name:	Screenshot_3.jpg
Views:	226
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:	263
Size:	64.3 KB
ID:	1084989

        Click image for larger version

Name:	Screenshot_5.jpg
Views:	228
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:	214
Size:	198.2 KB
ID:	1085133
            Click image for larger version

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

            Click image for larger version

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

            Click image for larger version

Name:	Screenshot_4.jpg
Views:	266
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 CarlTrading, 03-31-2026, 09:41 PM
                1 response
                43 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                21 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                30 views
                1 like
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                50 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                41 views
                0 likes
                Last Post CarlTrading  
                Working...
                X