Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

My code for FinWin system

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

    My code for FinWin system

    Hello.
    Does anybody know why i can't get my arrows closer to candles on any European market? On any American market is everything OK.

    1st picture is European market FGBL. Second NQ.
    My code is too long for this post. You can find it text format as a attachment.


    I would be grateful for any help. THANK YOU.

    Thank you so much. GE.
    Attached Files

    #2
    Try replacing all DrawArrow code:

    DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1, Color.Red);

    With:

    DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1*TickSize, Color.Red);

    thereby creating arrows that are set a fixed number of ticks from the bar

    Comment


      #3
      Thanks for this useful advise TAJTrades!
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Hello

        Thank you for your time but it did not work.

        As you can see on my pictures it works on US market, but not on European

        No clue why.

        Thank you for any help.
        Attached Files

        Comment


          #5
          It should work. Try replacing ALL DrawArrow (Up and Down) and DrawText with n*TickSize and vary the value 'n'.
          Attached Files

          Comment


            #6
            Originally posted by thrunner View Post
            It should work. Try replacing ALL DrawArrow (Up and Down) and DrawText with n*TickSize and vary the value 'n'.

            Could you please send me a PM with that code.

            It really doesn't work for me.

            Thank you.

            Comment


              #7
              Originally posted by TAJTrades View Post
              Try replacing all DrawArrow code:

              DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1, Color.Red);

              With:

              DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1*TickSize, Color.Red);

              thereby creating arrows that are set a fixed number of ticks from the bar

              Hello,

              try 1.0 * TickSize.

              Code:
              DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0[COLOR=red]*TickSize[/COLOR], Color.Red);

              Comment


                #8
                Originally posted by cls71 View Post
                Hello,

                try 1.0 * TickSize.

                Code:
                DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0[COLOR=red]*TickSize[/COLOR], Color.Red);
                Thank you for your time, but I can't save it with this

                CS0103 error ....

                Any other idea?

                Comment


                  #9
                  CS0103 is an error about variables declaration.

                  The sentence:
                  Code:
                  DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0[COLOR=red]*TickSize[/COLOR], Color.Red);
                  is correct.

                  I think that your code have an error in other place, but not in DrawArrowDown ...

                  If you post the code maybe I could help you.

                  Comment


                    #10
                    My code attached

                    Originally posted by cls71 View Post
                    CS0103 is an error about variables declaration.

                    The sentence:
                    Code:
                    DrawArrowDown("Down" + CurrentBar, true, 0, High[0] + 1.0[COLOR=red]*TickSize[/COLOR], Color.Red);
                    is correct.

                    I think that your code have an error in other place, but not in DrawArrowDown ...

                    If you post the code maybe I could help you.
                    My code attached
                    Attached Files

                    Comment


                      #11
                      Hi, try using TickSize (remember NinjaScript is case sensitive), then your posted code should work.
                      BertrandNinjaTrader Customer Service

                      Comment


                        #12
                        Originally posted by NinjaTrader_Bertrand View Post
                        Hi, try using TickSize (remember NinjaScript is case sensitive), then your posted code should work.

                        YES!!!!!!!!!!!

                        THANK YOU SO MUCH!!!!

                        IT WORKS!!

                        THANK YOU GUYS!!

                        Have a successful year 2009!!

                        Comment


                          #13
                          Originally posted by genius75 View Post
                          YES!!!!!!!!!!!

                          THANK YOU SO MUCH!!!!

                          IT WORKS!!

                          THANK YOU GUYS!!

                          Have a successful year 2009!!
                          Can somebody post the complete Zip file of the same.

                          Regards

                          Comment


                            #14
                            Originally posted by vrathee View Post
                            Can somebody post the complete Zip file of the same.

                            Regards

                            Hi there.

                            Here is your zip file.
                            Attached Files
                            Last edited by genius75; 01-05-2009, 03:18 AM.

                            Comment


                              #15
                              Great you got it working, a happy 2009 to you as well.

                              To export a NinjaScript file go to File > Utilities > Export NinjaScript.

                              To get rid of any prorgramming errors showing up in your files then, please see this tip - http://www.ninjatrader-support2.com/...ead.php?t=4678
                              BertrandNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by bmartz, 03-12-2024, 06:12 AM
                              5 responses
                              32 views
                              0 likes
                              Last Post NinjaTrader_Zachary  
                              Started by Aviram Y, Today, 05:29 AM
                              4 responses
                              12 views
                              0 likes
                              Last Post Aviram Y  
                              Started by algospoke, 04-17-2024, 06:40 PM
                              3 responses
                              28 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by gentlebenthebear, Today, 01:30 AM
                              1 response
                              8 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by cls71, Today, 04:45 AM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X