• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

tick size for Initialize()

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

    #31
    Originally posted by outsource View Post
    So this way it could be inside the channel or TickSize outside the channel,whatever appears,for both - either long or short,correct?
    If the expression returns true, that means that the "Close/current price" is within a maximum of one tick outside of the SMA of the Highs and Lows. Period.

    Comment


      #32
      Originally posted by koganam View Post
      If the expression returns true, that means that the "Close/current price" is within a maximum of one tick outside of the SMA of the Highs and Lows. Period.
      So is it applicable for the both sides - Long and Short?The expression you provided creates the tick range,correct? What "if the expression returns true" means?I`m not that good with the C# brogue yet.

      Comment


        #33
        Originally posted by outsource View Post
        So is it applicable for the both sides - Long and Short?The expression you provided creates the tick range,correct? What "if the expression returns true" means?I`m not that good with the C# brogue yet.
        Search engines are very useful, but only if we use them.

        ref: https://msdn.microsoft.com/en-us/library/ms173144.aspx
        https://msdn.microsoft.com/en-us/lib...85(VS.88).aspx

        Comment


          #34
          Originally posted by koganam View Post
          yeah,sure...thanks for the good morning laugh!

          Comment


            #35
            Hello,
            I've actually found a possible way to access TickSize from Initialize()

            #region Variables
            protected double tickSizeForum = 0;
            #endregion Variables

            protected override void Initialize()
            {
            this.tickSizeForum = base.Instrument.MasterInstrument.TickSize;
            }

            and then, being that this is not supported, we check that this actually works

            protected override void OnStartUp()
            {
            if (this.tickSizeForum != base.Instrument.MasterInstrument.TickSize) throw new InvalidOperationException("tickSize taken from Initialize() has changed in OnStartUp()");
            }

            Regards,
            giogio

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by tgn55, Today, 09:14 AM
            0 responses
            5 views
            0 likes
            Last Post tgn55
            by tgn55
             
            Started by mrwarkhan, Yesterday, 03:45 PM
            1 response
            23 views
            0 likes
            Last Post koganam
            by koganam
             
            Started by onevefiefe, Today, 07:42 AM
            0 responses
            4 views
            0 likes
            Last Post onevefiefe  
            Started by J_o_s, Today, 06:09 AM
            0 responses
            11 views
            0 likes
            Last Post J_o_s
            by J_o_s
             
            Started by jeronymite, 03-23-2020, 12:27 AM
            3 responses
            35 views
            0 likes
            Last Post leontancfa  
            Working...
            X